APIDiscovery
Get the authenticated profile
GET
bearerAuth profile.readheader
AuthorizationBearer <API key or OAuth 2.1 access token>Send Authorization: Bearer <credential>. Create API keys in AirTrail Security settings. OAuth clients use authorization code with PKCE S256 and a resource identifier matching /api/v1.
Scope: profile.read
Profile, role, effective permissions, and credential scopes.
application/json- response
data*curl -X GET 'https://your-instance.example/api/v1/me'Example Response
{ "data": { "id": "string", "username": "string", "displayName": "string", "role": { "id": "string", "name": "string" }, "isOwner": true, "permissions": [ "string" ], "credential": { "kind": "apiKey", "scopes": [ "string" ] } }}Discover API capabilities GET
Previous Page
List visible flights GET
Returns flights in deterministic descending order by flight date, then descending ID. Results are cursor-paginated. Start without a cursor, then pass the returned `page.nextCursor` value unchanged as `cursor` to fetch the next page. When `page.nextCursor` is `null`, the response is the last page. Cursors are opaque and must not be decoded or constructed by clients.
