DocsAPI referenceAPI keys

API keys

Create, list and revoke team API keys.

Credentials

Credentials stay in this browser tab (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

GET
/teams/{id}/keys

Lists 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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
idrequiredstring
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.

https://api.indexone.io/teams/33a36e74-b36a-4a50-9a99-edeff5144a43/keys

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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403Error
You are not a member of this team.
429object
API key usage-plan rate limit exceeded.

Create an API key

POST
/teams/{id}/keys

Creates 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.

Authorization: id token

Path parameters

FieldTypeDescription
idrequiredstring
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.

https://api.indexone.io/teams/33a36e74-b36a-4a50-9a99-edeff5144a43/keys

Example response

{
"id": "k3n8qz1p42",
"value": "8Kd0Wq3mZa7Yr1Xu5Tv9Bc2Ne6Lp4Hs0Gj8Fd3R",
"created_at": "2026-07-21",
"enabled": true
}

Errors

FieldTypeDescription
401Error
The id token is missing, invalid or expired (unauthenticated).
402Error
Your plan's key limit is reached.
403Error
You are not a member of this team.

Revoke an API key

DELETE
/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 {}.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
idrequiredstring
Team id.
key_idrequiredstring
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`).

https://api.indexone.io/teams/33a36e74-b36a-4a50-9a99-edeff5144a43/keys/k3n8qz1p42

Example response

{
"id": "k3n8qz1p42"
}

Errors

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403Error
You are not a member of this team.
429object
API key usage-plan rate limit exceeded.