For the complete documentation index, see llms.txt. This page is also available as Markdown.

Organization keys

List Own Keys

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
skipintegerOptionalDefault: 0
limitinteger · min: 1 · max: 1000OptionalDefault: 100
workspace_idstring · uuid · nullableOptional

Only keys in this workspace.

Responses
200

Successful Response

application/json

Response model for key information.

allowed_modelsstring[] · nullableRequired
allowed_toolsstring[] · nullableRequired
capture_agent_telemetryboolean · nullableRequired
config_namestring · nullableOptional
created_atstringRequired
end_user_budget_idstring · nullableRequired
end_user_budget_idsstring[]Required
exclude_from_budgetbooleanRequired
expires_atstring · nullableRequired
idstringRequired
is_activebooleanRequired
is_organization_service_keybooleanOptionalDefault: false
is_service_keybooleanRequired
key_namestring · nullableRequired
key_prefixstring · nullableRequired
key_suffixstring · nullableRequired
last_used_atstring · nullableRequired
max_end_usersinteger · nullableOptional
operator_disabledbooleanOptionalDefault: false
reject_user_mismatchboolean · nullableRequired
user_idstring · nullableRequired
workspace_idstring · uuidRequired
get/api/v1/organizations/me/keys
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 Own Key

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

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.

allowed_modelsstring[] · nullableOptional

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.

allowed_toolsstring[] · nullableOptional

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.

capture_agent_telemetryboolean · nullableOptional

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.

end_user_budget_idstring · nullableOptional

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.

end_user_budget_idsstring[] · max: 100 · nullableOptional

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.

expires_atstring · date-time · nullableOptional

Optional expiration timestamp

is_service_keybooleanOptional

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.

Default: false
key_namestring · nullableOptional

Optional name for the key

max_end_usersinteger · nullableOptional

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.

reject_user_mismatchboolean · nullableOptional

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_idstring · uuid · nullableOptional

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.

Responses
200

Successful Response

application/json

Response model for creating a new API key.

allowed_modelsstring[] · nullableRequired
allowed_toolsstring[] · nullableRequired
capture_agent_telemetryboolean · nullableRequired
created_atstringRequired
end_user_budget_idstring · nullableRequired
end_user_budget_idsstring[]Required
exclude_from_budgetbooleanRequired
expires_atstring · nullableRequired
idstringRequired
is_activebooleanRequired
is_organization_service_keybooleanOptionalDefault: false
is_service_keybooleanRequired
keystringRequired
key_namestring · nullableRequired
key_prefixstring · nullableRequired
key_suffixstring · nullableRequired
max_end_usersinteger · nullableRequired
reject_user_mismatchboolean · nullableRequired
user_idstring · nullableRequired
post/api/v1/organizations/me/keys
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 Own Key

patch

Update one of the caller's own API keys, or one of the organization's service keys for an owner or admin.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
key_idstringRequired
Body

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.

allowed_modelsstring[] · nullableOptional
allowed_toolsstring[] · nullableOptional
capture_agent_telemetryboolean · nullableOptional
end_user_budget_idstring · nullableOptional
end_user_budget_idsstring[] · max: 100 · nullableOptional
expires_atstring · date-time · nullableOptional
is_activeboolean · nullableOptional
is_service_keyboolean · nullableOptional
key_namestring · nullableOptional
max_end_usersinteger · nullableOptional
reject_user_mismatchboolean · nullableOptional
Responses
200

Successful Response

application/json

Response model for key information.

allowed_modelsstring[] · nullableRequired
allowed_toolsstring[] · nullableRequired
capture_agent_telemetryboolean · nullableRequired
config_namestring · nullableOptional
created_atstringRequired
end_user_budget_idstring · nullableRequired
end_user_budget_idsstring[]Required
exclude_from_budgetbooleanRequired
expires_atstring · nullableRequired
idstringRequired
is_activebooleanRequired
is_organization_service_keybooleanOptionalDefault: false
is_service_keybooleanRequired
key_namestring · nullableRequired
key_prefixstring · nullableRequired
key_suffixstring · nullableRequired
last_used_atstring · nullableRequired
max_end_usersinteger · nullableOptional
operator_disabledbooleanOptionalDefault: false
reject_user_mismatchboolean · nullableRequired
user_idstring · nullableRequired
workspace_idstring · uuidRequired
patch/api/v1/organizations/me/keys/{key_id}
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 Own Key

delete

Delete (revoke) one of the caller's own API keys.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
key_idstringRequired
Responses
204

Successful Response

No content

delete/api/v1/organizations/me/keys/{key_id}
DELETE /api/v1/organizations/me/keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

List Own Federation Rules

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
key_idstringRequired
Responses
200

Successful Response

application/json

A federation rule of an API key.

api_key_idstringRequired
audiencestringRequired
created_atstring · date-timeRequired
emailstring · nullableRequired
idstringRequired
issuerstringRequired
member_managedbooleanRequired

Whether a member gave the rule to their own key: it then matches only in the token exchange.

subjectstring · nullableRequired
get/api/v1/organizations/me/keys/{key_id}/federation-rules
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"
  }
]

Create Own Federation Rule

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
key_idstringRequired
Body

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.

audiencestring · min: 1 · max: 512Required

A value the token's 'aud' must contain.

emailstring · min: 3 · max: 320 · nullableOptional

The token's verified 'email', when the rule names one. Compared without regard to case.

issuerstring · min: 1 · max: 512Required

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.

subjectstring · min: 1 · max: 255 · nullableOptional

The token's 'sub', when the rule names one.

Responses
201

Successful Response

application/json

A federation rule of an API key.

api_key_idstringRequired
audiencestringRequired
created_atstring · date-timeRequired
emailstring · nullableRequired
idstringRequired
issuerstringRequired
member_managedbooleanRequired

Whether a member gave the rule to their own key: it then matches only in the token exchange.

subjectstring · nullableRequired
post/api/v1/organizations/me/keys/{key_id}/federation-rules
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"
}

Delete Own Federation Rule

delete

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
key_idstringRequired
rule_idstringRequired
Responses
204

Successful Response

No content

delete/api/v1/organizations/me/keys/{key_id}/federation-rules/{rule_id}
DELETE /api/v1/organizations/me/keys/{key_id}/federation-rules/{rule_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Rotate Own Key

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
key_idstringRequired
Responses
200

Successful Response

application/json

Response model for creating a new API key.

allowed_modelsstring[] · nullableRequired
allowed_toolsstring[] · nullableRequired
capture_agent_telemetryboolean · nullableRequired
created_atstringRequired
end_user_budget_idstring · nullableRequired
end_user_budget_idsstring[]Required
exclude_from_budgetbooleanRequired
expires_atstring · nullableRequired
idstringRequired
is_activebooleanRequired
is_organization_service_keybooleanOptionalDefault: false
is_service_keybooleanRequired
keystringRequired
key_namestring · nullableRequired
key_prefixstring · nullableRequired
key_suffixstring · nullableRequired
max_end_usersinteger · nullableRequired
reject_user_mismatchboolean · nullableRequired
user_idstring · nullableRequired
post/api/v1/organizations/me/keys/{key_id}/rotate
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?