API keys
Create, list and revoke team API keys.
Credentials
sessionStorage) and are sent only to https://api.indexone.io. They are cleared when the tab closes.Create, list and revoke the team's API Gateway keys. Keys carry the usage-plan rate limit.
List a team's API keys
/teams/{id}/keysLists every API Gateway key registered against the team.
Key values are returned in plaintext (the handler passes includeValues=True), so this response is credential material: never log it, cache it or render it outside an authenticated screen.
Path parameters
| Field | Type | Description |
|---|---|---|
idrequired | string | Team id. |
curl -X GET "https://api.indexone.io/teams/33a36e74-b36a-4a50-9a99-edeff5144a43/keys" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Team id.
Example response
[{"id": "k3n8qz1p42","value": "8Kd0Wq3mZa7Yr1Xu5Tv9Bc2Ne6Lp4Hs0Gj8Fd3R","created_at": "2026-03-11","enabled": true},{"id": "m7ta4bx915","value": "2Qp6Rn8Vs1Mj4Ck7Zw0Ye5Ta3Bu9Hd6Lx2Pg4W","created_at": "2026-06-30","enabled": false}]
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 | You are not a member of this team. |
429 | object | API key usage-plan rate limit exceeded. |
Create an API key
/teams/{id}/keysCreates an API Gateway key for the team and attaches it to the usage plan that carries the rate limit. The plaintext key is in the value field of the response, and GET /teams/{id}/keys returns it again later, so it is not a show-once secret.
This route needs only the id token, so an account made through the API can mint its team's first key. The caller must be a member of the team, and the plan caps how many keys a team holds.
Path parameters
| Field | Type | Description |
|---|---|---|
idrequired | string | Team id. |
curl -X POST "https://api.indexone.io/teams/33a36e74-b36a-4a50-9a99-edeff5144a43/keys" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Team id.
Example response
{"id": "k3n8qz1p42","value": "8Kd0Wq3mZa7Yr1Xu5Tv9Bc2Ne6Lp4Hs0Gj8Fd3R","created_at": "2026-07-21","enabled": true}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The id token is missing, invalid or expired ( unauthenticated). |
402 | Error | Your plan's key limit is reached. |
403 | Error | You are not a member of this team. |
Revoke an API key
/teams/{id}/keys/{key_id}Deletes the key at API Gateway, immediately invalidating it everywhere. Deleting a key that does not exist is not an error — the handler swallows the exception and returns {}.
Path parameters
| Field | Type | Description |
|---|---|---|
idrequired | string | Team id. |
key_idrequired | string | The key's id (not its value). |
curl -X DELETE "https://api.indexone.io/teams/33a36e74-b36a-4a50-9a99-edeff5144a43/keys/k3n8qz1p42" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Team id.
The key's `id` (not its `value`).
Example response
{"id": "k3n8qz1p42"}
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 | You are not a member of this team. |
429 | object | API key usage-plan rate limit exceeded. |