API keys
Generated from api/openapi.yaml (OpenAPI 3.1). Base URL: https://api.teemli.com. Auth: Authorization: Bearer <token or tml_ API key>. Errors are application/problem+json; writes accept an Idempotency-Key header.
Public API keys (personal and service), scopes, rate limits
My API keys (admins can list service keys)
Section titled “My API keys (admins can list service keys)”GET /v1/orgs/{org}/api-keysAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
kind |
query | personal, service |
Responses
200Keys — object403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem
Create a key (the token is shown once)
Section titled “Create a key (the token is shown once)”POST /v1/orgs/{org}/api-keysAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
name (required) |
string | |
kind |
personal, service |
|
scopes (required) |
array of string | |
expires_in_days |
integer \ | null |
rate_limit_per_min |
integer |
Responses
201Created.tokenis shown only now. — object403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem422Invalid input — Problem
The scopes a key can have, and whether API access is on
Section titled “The scopes a key can have, and whether API access is on”GET /v1/orgs/{org}/api-keys/scopesAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Responses
200Scopes — object
Rename a key or change its rate limit
Section titled “Rename a key or change its rate limit”PATCH /v1/orgs/{org}/api-keys/{id}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
name |
string | |
rate_limit_per_min |
integer |
Responses
200The key — ApiKey404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Revoke a key (at once)
Section titled “Revoke a key (at once)”DELETE /v1/orgs/{org}/api-keys/{id}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
204Revoked404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Every key in the organisation (admins; metadata only)
Section titled “Every key in the organisation (admins; metadata only)”GET /v1/orgs/{org}/admin/api-keysAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Responses
200Keys — object403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem
Revoke anyone’s key (admins)
Section titled “Revoke anyone’s key (admins)”DELETE /v1/orgs/{org}/admin/api-keys/{id}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Responses
204Revoked403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem