Organization keys
List the caller's own API keys in their active organization, newest first.
Only keys billed to the caller's own user: an operator-minted key assigned to them is theirs to see here, and nobody else's key ever is. Naming a workspace outside their organization lists nothing rather than refusing, so the filter reports no more than the unfiltered read does. An owner or admin also sees the organization's service keys, which they manage.
Enter your API key here (sent as Otari-Key header).
0100Only keys in this workspace.
Successful Response
Response model for key information.
falsefalseValidation Error
GET /api/v1/organizations/me/keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
[
{
"allowed_models": [
"text"
],
"allowed_tools": [
"text"
],
"capture_agent_telemetry": true,
"config_name": "text",
"created_at": "text",
"end_user_budget_id": "text",
"end_user_budget_ids": [
"text"
],
"exclude_from_budget": true,
"expires_at": "text",
"id": "text",
"is_active": true,
"is_organization_service_key": false,
"is_service_key": true,
"key_name": "text",
"key_prefix": "text",
"key_suffix": "text",
"last_used_at": "text",
"max_end_users": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"operator_disabled": false,
"reject_user_mismatch": true,
"user_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}
]Create an API key owned by the caller, in a workspace they may see.
The member-scoped counterpart of POST /api/v1/keys: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin, who see every workspace). A viewer of the workspace is refused with 403. The secret is returned once.
A service key is the organization's rather than the caller's: only an organization owner or admin may create one, its end-user budgets must be this organization's, and it is owned by a user minted for it alone.
Enter your API key here (sent as Otari-Key header).
Create-key body for the member surface.
Deliberately not CreateKeyRequest: it carries no user_id (the owner
is the caller, or one of the key's own for a service key) and no
exclude_from_budget (a member must not exempt their own spend from
enforcement). A field it does not take is refused rather than dropped.
Model allow-list: null = any model your user default allows, [] = deny all, or canonical instance:model entries. A key can only narrow your own model access, never broaden it.
Tool allow-list for POST /api/v1/search and /api/v1/fetch: null = inherit your own, [] = no tool, or search and fetch tool names ('*' for every tool). A key can only narrow your own tool access.
Per-key override of the deployment-wide capture_agent_telemetry setting: null (default) inherits it, true always stores this key's coding-agent telemetry, false always discards it.
Budget of this organization each end user this key creates is capped at, unless the request names another with Otari-End-User-Budget. Null leaves end users capped only by this key's own ceiling.
Budgets of this organization a request may start a new end user on by naming one in Otari-End-User-Budget. Null allows end_user_budget_id alone. When both are set, end_user_budget_id must be on the list.
Optional expiration timestamp
When true, a request may name an end user in its 'user' field. Each end user is created on first use and billed to its own budget, while this key's own ceiling caps all of them together. Only an organization owner or admin may create one. It belongs to the organization rather than to you: every owner or admin manages it, and its end users are reachable from no other key. Fixed once the key exists.
falseOptional name for the key
Most live end users this service key may have. A request that would create one more is refused with 403 and end_user_limit_reached; deleting end users frees room. Null is 10000: an organization's service key always has a cap.
Per-key override of the deployment-wide reject_user_mismatch setting: null (default) inherits it, true always rejects a request naming a different 'user', false always accepts it. Spend binds to your own user either way.
Workspace this key belongs to, which must be one you may see in your active organization. Omitted means that organization's default workspace, refused when you are not a member of it.
Successful Response
Response model for creating a new API key.
falseValidation Error
POST /api/v1/organizations/me/keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 373
{
"allowed_models": [
"text"
],
"allowed_tools": [
"text"
],
"capture_agent_telemetry": true,
"end_user_budget_id": "text",
"end_user_budget_ids": [
"text"
],
"expires_at": "2026-01-01T00:00:00.000Z",
"is_service_key": false,
"key_name": "text",
"max_end_users": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reject_user_mismatch": true,
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}{
"allowed_models": [
"text"
],
"allowed_tools": [
"text"
],
"capture_agent_telemetry": true,
"created_at": "text",
"end_user_budget_id": "text",
"end_user_budget_ids": [
"text"
],
"exclude_from_budget": true,
"expires_at": "text",
"id": "text",
"is_active": true,
"is_organization_service_key": false,
"is_service_key": true,
"key": "text",
"key_name": "text",
"key_prefix": "text",
"key_suffix": "text",
"max_end_users": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reject_user_mismatch": true,
"user_id": "text"
}Update one of the caller's own API keys, or one of the organization's service keys for an owner or admin.
Enter your API key here (sent as Otari-Key header).
Update-key body for the member surface.
The operator's UpdateKeyRequest minus exclude_from_budget, for the
reason the create body gives. The tri-state fields follow the same
model_fields_set idiom: absent = unchanged, null = clear to inherit,
a value = pin it. is_service_key is accepted only unchanged, and
max_end_users takes no null: an organization's service key always has a
cap, so null is refused with 400.
Successful Response
Response model for key information.
falsefalseValidation Error
PATCH /api/v1/organizations/me/keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 335
{
"allowed_models": [
"text"
],
"allowed_tools": [
"text"
],
"capture_agent_telemetry": true,
"end_user_budget_id": "text",
"end_user_budget_ids": [
"text"
],
"expires_at": "2026-01-01T00:00:00.000Z",
"is_active": true,
"is_service_key": true,
"key_name": "text",
"max_end_users": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reject_user_mismatch": true
}{
"allowed_models": [
"text"
],
"allowed_tools": [
"text"
],
"capture_agent_telemetry": true,
"config_name": "text",
"created_at": "text",
"end_user_budget_id": "text",
"end_user_budget_ids": [
"text"
],
"exclude_from_budget": true,
"expires_at": "text",
"id": "text",
"is_active": true,
"is_organization_service_key": false,
"is_service_key": true,
"key_name": "text",
"key_prefix": "text",
"key_suffix": "text",
"last_used_at": "text",
"max_end_users": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"operator_disabled": false,
"reject_user_mismatch": true,
"user_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Delete (revoke) one of the caller's own API keys.
Enter your API key here (sent as Otari-Key header).
Successful Response
No content
Validation Error
DELETE /api/v1/organizations/me/keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
List the identities that may authenticate as a key, oldest first.
The caller's own key, or for the deployment operator any key in their active organization. Includes any rule the operator gave the key on /api/v1/keys, which member_managed tells apart.
Enter your API key here (sent as Otari-Key header).
Successful Response
A federation rule of an API key.
Whether a member gave the rule to their own key: it then matches only in the token exchange.
Validation Error
GET /api/v1/organizations/me/keys/{key_id}/federation-rules HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
[
{
"api_key_id": "text",
"audience": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"email": "text",
"id": "text",
"issuer": "text",
"member_managed": true,
"subject": "text"
}
]Let an OpenID Connect identity token stand in for a key, through the token exchange.
Needs federation_member_rules, else 403, and an organization owner or admin acting on their own key, or the deployment operator on any key in their active organization, else 403. The issuer may be any https URL; its signing keys are fetched only from a public host. The rule matches only in POST /api/v1/oauth/token naming its id, never as a bare identity token, so it lets a workload act as this key and no other: a rule naming another tenant's workload gives that workload nothing it did not ask for. A rule this key already holds answers 409.
Enter your API key here (sent as Otari-Key header).
An OpenID Connect identity that may authenticate as the key, in place of its secret.
A token matches when it is signed by issuer, names audience among its audiences, and carries each of
subject and email that the rule sets; an email matches only when the token marks it verified. At least
one of the two is required.
A value the token's 'aud' must contain.
The token's verified 'email', when the rule names one. Compared without regard to case.
The token's 'iss'. On an operator's rule, one of the deployment's federation_issuers; on a member's own key, any https issuer, whose discovery document and signing keys are fetched only from a public host.
The token's 'sub', when the rule names one.
Successful Response
A federation rule of an API key.
Whether a member gave the rule to their own key: it then matches only in the token exchange.
Validation Error
POST /api/v1/organizations/me/keys/{key_id}/federation-rules HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"audience": "https://otari.example.com",
"email": "hackbot-api@my-project.iam.gserviceaccount.com",
"issuer": "https://accounts.google.com"
}{
"api_key_id": "text",
"audience": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"email": "text",
"id": "text",
"issuer": "text",
"member_managed": true,
"subject": "text"
}Remove a federation rule from a key. Tokens it matched stop with the next request.
The caller's own key whatever their role, or for the deployment operator any key in their active organization. Works whether or not federation_member_rules is on, so a rule can always be taken back.
Enter your API key here (sent as Otari-Key header).
Successful Response
No content
Validation Error
DELETE /api/v1/organizations/me/keys/{key_id}/federation-rules/{rule_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
Rotate the secret of one of the caller's own API keys, in place.
Same contract as the operator's rotate: the row keeps its identity, the new raw key is returned once, and the previous secret stops authenticating immediately with no grace window.
Enter your API key here (sent as Otari-Key header).
Successful Response
Response model for creating a new API key.
falseValidation Error
POST /api/v1/organizations/me/keys/{key_id}/rotate HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"allowed_models": [
"text"
],
"allowed_tools": [
"text"
],
"capture_agent_telemetry": true,
"created_at": "text",
"end_user_budget_id": "text",
"end_user_budget_ids": [
"text"
],
"exclude_from_budget": true,
"expires_at": "text",
"id": "text",
"is_active": true,
"is_organization_service_key": false,
"is_service_key": true,
"key": "text",
"key_name": "text",
"key_prefix": "text",
"key_suffix": "text",
"max_end_users": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"reject_user_mismatch": true,
"user_id": "text"
}Last updated
Was this helpful?
