Get the authenticated caller
Returns the user the API key belongs to, the team the key is bound to, and the user’s role in that team. Useful for confirming which workspace a key points at without having to store that mapping separately on the caller.
Request
Section titled “Request”No path parameters. No request body.
Response
Section titled “Response”200 OK:
| Field | Type | Description |
|---|---|---|
user.id | string | User ID of the API key’s owner. |
user.name | string | Display name. |
user.email | string | Email address. |
user.image | string | null | Avatar URL, or null if not set. |
organization.id | string | ID of the team the API key is bound to. |
organization.name | string | Team name. |
organization.role | string | The caller’s role in the team (e.g. owner, admin, member). |
Example response
Section titled “Example response”Errors
Section titled “Errors”| Status | Body | When |
|---|---|---|
404 | { "error": "Membership not found." } | The API key’s owner is no longer a member of the bound team. |