DocsAPI referenceUsers

Users

The authenticated user record.

Credentials

Credentials stay in this browser tab (sessionStorage) and are sent only to https://api.indexone.io. They are cleared when the tab closes.

The authenticated user's own record, including team membership.

Get the authenticated user

GET
/self

Returns the caller's user record, resolved from the sub claim of the Cognito id token — there is no user-id parameter, you always get yourself. Also stamps last_active on the record. Use include_team=true to avoid a follow-up GET /teams/{id}: the full team record (subscription, members, workflows, deliveries, datasets) is attached as team_data.

x-api-key
Authorization: id token

Query parameters

FieldTypeDescription
team_idstring
Resolve include_team against this team instead of the user's primary_team.
include_teamboolean
Attach the full team record as team_data.
curl -X GET "https://api.indexone.io/self" \
-H "x-api-key: YOUR_API_KEY" \
-H "Authorization: YOUR_ID_TOKEN"

Try it

Resolve `include_team` against this team instead of the user's `primary_team`.

Attach the full team record as `team_data`.

https://api.indexone.io/self?team_id=33a36e74-b36a-4a50-9a99-edeff5144a43&include_team=true

Example response

{
"id": "7dcd221e-4cf4-4cb5-845e-32efc1803ee6",
"email": "quant@example.com",
"firstname": "Ada",
"lastname": "Lovelace",
"primary_team": "33a36e74-b36a-4a50-9a99-edeff5144a43",
"teams": {
"33a36e74-b36a-4a50-9a99-edeff5144a43": {
"admin": true,
"primary": true
}
},
"created_at": "2025-11-02 09:14:33",
"last_active": "2026-07-21 08:02:11"
}

Errors

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403Error
team_id names a team you do not belong to.
429object
API key usage-plan rate limit exceeded.