Users
The authenticated user record.
Credentials
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
/selfReturns 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
| Field | Type | Description |
|---|---|---|
team_id | string | Resolve include_team against this team instead of the user's primary_team. |
include_team | boolean | 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
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | team_id names a team you do not belong to. |
429 | object | API key usage-plan rate limit exceeded. |