Applications API¶
Groups multiple sources under a single application (e.g. payments-api) with an environment and a host allow-list.
Endpoint Summary¶
| Method | Path | Description |
|---|---|---|
GET |
/api/applications |
List applications (with enrichment) |
GET |
/api/applications/{app_id} |
Get a single application |
POST |
/api/applications |
Create an application |
DELETE |
/api/applications/{app_id} |
Delete application + linked sources/data |
List Applications¶
Returns applications ordered by name, enriched with:
| Enrichment | Description |
|---|---|
sources |
Names of linked sources |
unique_events |
Count of unique events across those sources |
[
{
"id": "3f3d2d5a-…",
"name": "payments-api",
"environment": "prod",
"hosts": ["payments-01", "payments-02"],
"sources": ["prom-prod"],
"unique_events": 482113
}
]
Get Application¶
Same enrichment as the list endpoint for a single UUID.
Errors
| Code | HTTP | When |
|---|---|---|
| — | 404 | Application not found |
Create Application¶
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Unique name |
environment |
string | no | dev, staging, prod, … |
hosts |
string[] | no | Host allow-list |
Errors
| Code | HTTP | When |
|---|---|---|
application_name_conflict |
409 | Same name already exists |
Delete Application¶
Cascades:
- Events for all linked sources
- Alerts for all linked sources
- The sources themselves
- The application row
Related¶
- Sources API — sources reference
application_id - Logs API — filter events by application