Me
Get the authenticated principal
Returns the API key presented on the request, together with the active organization, the abilities currently in effect, and the projects you may act in.
/api/v1/me
The response carries four top-level keys: organization, abilities, projects, and api_key. The abilities array is taken directly from the API key's grants.
Response
The authenticated principal
| Field | Type | Description |
|---|---|---|
| organization | Organization | The active organization the API key is bound to. |
| abilities | string[] | The abilities currently in effect for the request, taken from the API key itself. |
| projects | Project[] | The projects in the active organization that the caller may act in. |
| api_key | ApiKeyMetadata | Metadata describing the API key used on the request. |
API key metadata
| Field | Type | Description |
|---|---|---|
| id | integer | The unique ID of the API key. |
| name | string | The label you gave the key when you created it. |
| last_used_at | datetime | When the key was last used to authenticate a request, or |
| created_at | datetime | When the key was created. |