APIDiscovery

Get the authenticated profile

GET
/api/v1/me

Authorization

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

In: header

Scope: profile.read

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/me"
{  "data": {    "id": "string",    "username": "string",    "displayName": "string",    "role": {      "id": "string",      "name": "string"    },    "isOwner": true,    "permissions": [      "string"    ],    "credential": {      "kind": "apiKey",      "scopes": [        "string"      ]    }  }}