# Reference

The API is described by an OpenAPI 3 document, generated from the application's routes so it cannot fall out of step with them:

**[/docs/api/openapi.json](https://tailcove.dev/docs/api/openapi.json)**

Load it into any OpenAPI tool (Swagger UI, Postman, Insomnia, a client generator). Each operation lists the ability a token needs
(`x-abilities`), its path and body schema, the `Idempotency-Key` header on a `POST`, and the error shapes. It says nothing about any team's data.

## Ids

Every id the API gives or takes is an opaque string: a short prefix for what the thing is, then a ULID, for example
`src_01jbx5q8k7m3n2p4r6s8t0v1w3` for a source, `mon_…` for a monitor, `alr_…` for an alert, `inc_…` for an incident,
`sch_…` and `pol_…` for an on-call schedule and an escalation policy, `usr_…` for a person. Store and compare them as strings; never parse
them as numbers or build one by hand. A thing named by an id that was not issued is a `404`, like one of another team.
