APIDiscovery

Get the authenticated profile

GET
/api/v1/me

Authorization

bearerAuth profile.read
headerAuthorizationBearer <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

Response Body

Profile, role, effective permissions, and credential scopes.

application/json
  1. response
data*
Example Request
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"      ]    }  }}