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

Provider keys

List Org Provider Keys

get

List the caller's organization's provider keys. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Query parameters
include_archivedbooleanOptional

Include archived keys.

Default: false
skipintegerOptional

Number of records to skip

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of records to return

Default: 100
Responses
200

Successful Response

application/json
countintegerRequired
get/api/v1/organizations/me/provider-keys
GET /api/v1/organizations/me/provider-keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "api_base": "text",
      "archived_at": "2026-01-01T00:00:00.000Z",
      "client_args": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "created_at": "2026-01-01T00:00:00.000Z",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "is_org_default": true,
      "last4": "text",
      "name": "text",
      "offered_count": 1,
      "organization_id": "123e4567-e89b-12d3-a456-426614174000",
      "provider": "text",
      "serving_count": 1,
      "slug": "text",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "usable": true,
      "zero_data_retention": false
    }
  ]
}

Create Org Provider Key

post

Create a provider key in the caller's organization. Organization owners and admins only.

Everything the provider lists on the new credential is offered at once, so a key starts with its real catalog rather than an empty list an admin retypes by hand. A provider that will not say (no listing endpoint, unreachable, credential refused) yields a key with no models rather than a failed create: the credential may still be right for dispatch, and models can be added by name. The response is the key either way; the models are read back through GET /{key_id}/models.

Authorizations
Otari-KeystringRequired

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

Body

What a caller sends to create a key.

The plaintext key is never stored as sent: the service encrypts it (services/secret_box.py) and keeps only the ciphertext and last4, the same convention providers.ProviderCredential already uses.

api_basestring · max: 1024 · nullableOptional
api_keystring · nullableOptional
namestring · max: 255Required
providerstring · max: 255Required
slugstring · max: 64 · nullableOptional

The name requests reach a key with a custom base URL by, as in <slug>:<model>. Only such a key has one, and once set it never changes. Left out, it is made from the key's name.

zero_data_retentionbooleanOptional

The organization's declaration that the provider account behind this key keeps no prompt or completion data. The catalog shows it and filters on it; nothing is enforced on it.

Default: false
Responses
201

Successful Response

application/json

The API-facing shape. Never carries the key, only whether one is set.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
last4string · nullableOptional
namestringRequired
offered_countintegerRequired

How many models the organization offers on this key. Zero means the key has never been refreshed, so it is unnarrowed and reaches whatever its provider serves.

organization_idstring · uuidRequired
providerstringRequired
serving_countintegerRequired

How many of the offered models have their serving switch on. A key offering models and serving none refuses every request through it until one is switched on.

slugstring · nullableOptional

What requests name this key by, as in <slug>:<model>, for a key with a custom base URL. Absent for a key reached as <provider>:<model>.

updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when the stored credential cannot be decrypted on this deployment, so the key supplies nothing at dispatch and the catalog withholds its provider. A row this deployment cannot read is still listed, because deleting or replacing it is what fixes it.

zero_data_retentionbooleanOptionalDefault: false
post/api/v1/organizations/me/provider-keys
POST /api/v1/organizations/me/provider-keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 163

{
  "api_base": "text",
  "api_key": "text",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "name": "text",
  "provider": "text",
  "slug": "text",
  "zero_data_retention": false
}
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "last4": "text",
  "name": "text",
  "offered_count": 1,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "serving_count": 1,
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true,
  "zero_data_retention": false
}

Update Org Provider Key

patch

Change a key's name, credential, base URL, or client args. Organization owners and admins only.

A new base URL on a key that holds a credential needs that credential in the same request, api_key and any masked client_args entry, since the next call sends it to the new host. Clearing the base URL needs neither.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Body

A partial update. Every field is optional; only what is set is applied.

api_basestring · max: 1024 · nullableOptional
api_keystring · nullableOptional
namestring · max: 255 · nullableOptional
zero_data_retentionboolean · nullableOptional
Responses
200

Successful Response

application/json

The API-facing shape. Never carries the key, only whether one is set.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
last4string · nullableOptional
namestringRequired
offered_countintegerRequired

How many models the organization offers on this key. Zero means the key has never been refreshed, so it is unnarrowed and reaches whatever its provider serves.

organization_idstring · uuidRequired
providerstringRequired
serving_countintegerRequired

How many of the offered models have their serving switch on. A key offering models and serving none refuses every request through it until one is switched on.

slugstring · nullableOptional

What requests name this key by, as in <slug>:<model>, for a key with a custom base URL. Absent for a key reached as <provider>:<model>.

updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when the stored credential cannot be decrypted on this deployment, so the key supplies nothing at dispatch and the catalog withholds its provider. A row this deployment cannot read is still listed, because deleting or replacing it is what fixes it.

zero_data_retentionbooleanOptionalDefault: false
patch/api/v1/organizations/me/provider-keys/{key_id}
PATCH /api/v1/organizations/me/provider-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "api_base": "text",
  "api_key": "text",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "name": "text",
  "zero_data_retention": true
}
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "last4": "text",
  "name": "text",
  "offered_count": 1,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "serving_count": 1,
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true,
  "zero_data_retention": false
}

Delete Org Provider Key

delete

Permanently delete an archived key. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

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

Archive Org Provider Key

post

Archive a key. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

The API-facing shape. Never carries the key, only whether one is set.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
last4string · nullableOptional
namestringRequired
offered_countintegerRequired

How many models the organization offers on this key. Zero means the key has never been refreshed, so it is unnarrowed and reaches whatever its provider serves.

organization_idstring · uuidRequired
providerstringRequired
serving_countintegerRequired

How many of the offered models have their serving switch on. A key offering models and serving none refuses every request through it until one is switched on.

slugstring · nullableOptional

What requests name this key by, as in <slug>:<model>, for a key with a custom base URL. Absent for a key reached as <provider>:<model>.

updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when the stored credential cannot be decrypted on this deployment, so the key supplies nothing at dispatch and the catalog withholds its provider. A row this deployment cannot read is still listed, because deleting or replacing it is what fixes it.

zero_data_retentionbooleanOptionalDefault: false
post/api/v1/organizations/me/provider-keys/{key_id}/archive
POST /api/v1/organizations/me/provider-keys/{key_id}/archive HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "last4": "text",
  "name": "text",
  "offered_count": 1,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "serving_count": 1,
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true,
  "zero_data_retention": false
}

List Org Provider Key Available Models

get

Ask the provider what it serves on this key's stored credential.

Dials the upstream on every call rather than caching: the caller is a model picker, opened rarely and entitled to a current answer. The credential never leaves the process; only model names come back. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

What the provider says it serves on this key's stored credential.

Failure is a field rather than a status: an unreachable upstream, or a provider with no model listing, is an answer about the provider rather than about this request, and the form still has to render (with a plain text box) when the list cannot be fetched.

discovery_unsupportedbooleanOptionalDefault: false
errorstring · nullableOptional
modelsstring[]Optional
providerstringRequired
get/api/v1/organizations/me/provider-keys/{key_id}/available-models
GET /api/v1/organizations/me/provider-keys/{key_id}/available-models HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "discovery_unsupported": false,
  "error": "text",
  "models": [
    "text"
  ],
  "provider": "text"
}

Set Org Provider Key Default

post

Make a key the organization's default for its provider. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

The API-facing shape. Never carries the key, only whether one is set.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
last4string · nullableOptional
namestringRequired
offered_countintegerRequired

How many models the organization offers on this key. Zero means the key has never been refreshed, so it is unnarrowed and reaches whatever its provider serves.

organization_idstring · uuidRequired
providerstringRequired
serving_countintegerRequired

How many of the offered models have their serving switch on. A key offering models and serving none refuses every request through it until one is switched on.

slugstring · nullableOptional

What requests name this key by, as in <slug>:<model>, for a key with a custom base URL. Absent for a key reached as <provider>:<model>.

updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when the stored credential cannot be decrypted on this deployment, so the key supplies nothing at dispatch and the catalog withholds its provider. A row this deployment cannot read is still listed, because deleting or replacing it is what fixes it.

zero_data_retentionbooleanOptionalDefault: false
post/api/v1/organizations/me/provider-keys/{key_id}/default
POST /api/v1/organizations/me/provider-keys/{key_id}/default HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "last4": "text",
  "name": "text",
  "offered_count": 1,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "serving_count": 1,
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true,
  "zero_data_retention": false
}

Unset Org Provider Key Default

delete

Stop a key being the organization's default for its provider. Organization owners and admins only.

Idempotent: a key that is not the default is returned unchanged. With no default, a request that names no instance gets the provider's earliest-created key the workspace has not disabled.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

The API-facing shape. Never carries the key, only whether one is set.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
last4string · nullableOptional
namestringRequired
offered_countintegerRequired

How many models the organization offers on this key. Zero means the key has never been refreshed, so it is unnarrowed and reaches whatever its provider serves.

organization_idstring · uuidRequired
providerstringRequired
serving_countintegerRequired

How many of the offered models have their serving switch on. A key offering models and serving none refuses every request through it until one is switched on.

slugstring · nullableOptional

What requests name this key by, as in <slug>:<model>, for a key with a custom base URL. Absent for a key reached as <provider>:<model>.

updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when the stored credential cannot be decrypted on this deployment, so the key supplies nothing at dispatch and the catalog withholds its provider. A row this deployment cannot read is still listed, because deleting or replacing it is what fixes it.

zero_data_retentionbooleanOptionalDefault: false
delete/api/v1/organizations/me/provider-keys/{key_id}/default
DELETE /api/v1/organizations/me/provider-keys/{key_id}/default HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "last4": "text",
  "name": "text",
  "offered_count": 1,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "serving_count": 1,
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true,
  "zero_data_retention": false
}

List Org Provider Key Models

get

List the models offered on one key, each with the rate it currently serves at.

Organization owners and admins only. count is the total rather than the page length, so a client knows whether another page is owed.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Query parameters
skipintegerOptional

Number of records to skip

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of records to return

Default: 500
typeany of · nullableOptional

Only models of this kind; unknown for those no source names a kind for

string · enumOptionalPossible values:
or
const: unknownOptional
Responses
200

Successful Response

application/json

One page of a key's offered models, and how many there are in total.

count is the total of the kind asked for, and type_counts how many of each kind the key offers, unknown for a model of no known kind.

countintegerRequired
get/api/v1/organizations/me/provider-keys/{key_id}/models
GET /api/v1/organizations/me/provider-keys/{key_id}/models HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "cache_read_price_per_million": 1,
      "cache_write_price_per_million": 1,
      "created_at": "2026-01-01T00:00:00.000Z",
      "enabled": true,
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "input_price_per_million": 1,
      "model": "text",
      "org_provider_key_id": "123e4567-e89b-12d3-a456-426614174000",
      "output_price_per_million": 1,
      "price_source": "organization",
      "pricing_id": "123e4567-e89b-12d3-a456-426614174000",
      "type": "chat",
      "unit": "token",
      "updated_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "type_counts": {
    "ANY_ADDITIONAL_PROPERTY": 1
  }
}

Add Org Provider Key Model

post

Offer one model by name, for a backend whose models cannot be listed.

Carries no rate: an organization's rates are written through /api/v1/organizations/me/pricing, so a price set here and a price set there could not disagree about what a request costs. The offer seeds the community default like any other, and a model nothing prices arrives disabled. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Body

Offer one model on a key, for a backend whose models cannot be listed.

modelstring · max: 255Required
Responses
201

Successful Response

application/json

One offered model, with the rate the caller's organization is charged for it.

price_source says which rung of services.pricing_service answered: organization for a rate an admin set, defaults for the community-maintained rate this surface seeded or the models.dev fallback, deployment for the deployment's own price list, and None when nothing prices the model yet. pricing_id names the organization's own row where there is one, so a client can edit that rate without re-deriving the key. unit says what the rates are per, as on a pricing row: token, request or image, so a per-request rate is not read as a per-token one. type is the kind of model, from models.dev, and None when it does not know.

cache_read_price_per_millionnumber · nullableOptional
cache_write_price_per_millionnumber · nullableOptional
created_atstring · date-timeRequired
enabledbooleanRequired
idstring · uuidRequired
input_price_per_millionnumber · nullableOptional
modelstringRequired
org_provider_key_idstring · uuidRequired
output_price_per_millionnumber · nullableOptional
price_sourcestring · enum · nullableOptionalPossible values:
pricing_idstring · uuid · nullableOptional
typestring · enum · nullableOptionalPossible values:
unitstring · enumOptionalDefault: tokenPossible values:
updated_atstring · date-time · nullableOptional
post/api/v1/organizations/me/provider-keys/{key_id}/models
POST /api/v1/organizations/me/provider-keys/{key_id}/models HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "model": "text"
}
{
  "cache_read_price_per_million": 1,
  "cache_write_price_per_million": 1,
  "created_at": "2026-01-01T00:00:00.000Z",
  "enabled": true,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "input_price_per_million": 1,
  "model": "text",
  "org_provider_key_id": "123e4567-e89b-12d3-a456-426614174000",
  "output_price_per_million": 1,
  "price_source": "organization",
  "pricing_id": "123e4567-e89b-12d3-a456-426614174000",
  "type": "chat",
  "unit": "token",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Refresh Org Provider Key Models

post

Ask the provider again and offer whatever is newly listed.

Additive only: nothing already offered is removed or switched off, because delisting a model is a decision the serving switch owns and an upstream hiccup must not empty a catalog. New models follow the offer rule, seeded with the community default rate and disabled when nothing prices them. A rate this surface seeded and nobody has changed moves to today's default. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

What a refresh did: what it newly offered, what it repriced, and the list's new size.

Failure is a field rather than a status, for the reason OrgProviderAvailableModelsPublic gives: the list is still standing, and the panel renders the reason beside it.

addedstring[]Required
countintegerRequired
discovery_unsupportedbooleanOptionalDefault: false
errorstring · nullableOptional
repricedstring[]Required
post/api/v1/organizations/me/provider-keys/{key_id}/models/refresh
POST /api/v1/organizations/me/provider-keys/{key_id}/models/refresh HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "added": [
    "text"
  ],
  "count": 1,
  "discovery_unsupported": false,
  "error": "text",
  "repriced": [
    "text"
  ]
}

Set Org Provider Key Model Enabled

patch

Turn one offered model's serving switch on or off. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
model_idstring · uuidRequired
Body

Whether the runtime serves this model. The only field an update may change.

A rate is not here: an organization's rates live in organization_model_pricing and are written through /organizations/me/pricing, so a price set on this surface and a price set on that one could not disagree.

enabledbooleanRequired
Responses
200

Successful Response

application/json

One offered model, with the rate the caller's organization is charged for it.

price_source says which rung of services.pricing_service answered: organization for a rate an admin set, defaults for the community-maintained rate this surface seeded or the models.dev fallback, deployment for the deployment's own price list, and None when nothing prices the model yet. pricing_id names the organization's own row where there is one, so a client can edit that rate without re-deriving the key. unit says what the rates are per, as on a pricing row: token, request or image, so a per-request rate is not read as a per-token one. type is the kind of model, from models.dev, and None when it does not know.

cache_read_price_per_millionnumber · nullableOptional
cache_write_price_per_millionnumber · nullableOptional
created_atstring · date-timeRequired
enabledbooleanRequired
idstring · uuidRequired
input_price_per_millionnumber · nullableOptional
modelstringRequired
org_provider_key_idstring · uuidRequired
output_price_per_millionnumber · nullableOptional
price_sourcestring · enum · nullableOptionalPossible values:
pricing_idstring · uuid · nullableOptional
typestring · enum · nullableOptionalPossible values:
unitstring · enumOptionalDefault: tokenPossible values:
updated_atstring · date-time · nullableOptional
patch/api/v1/organizations/me/provider-keys/{key_id}/models/{model_id}
PATCH /api/v1/organizations/me/provider-keys/{key_id}/models/{model_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "enabled": true
}
{
  "cache_read_price_per_million": 1,
  "cache_write_price_per_million": 1,
  "created_at": "2026-01-01T00:00:00.000Z",
  "enabled": true,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "input_price_per_million": 1,
  "model": "text",
  "org_provider_key_id": "123e4567-e89b-12d3-a456-426614174000",
  "output_price_per_million": 1,
  "price_source": "organization",
  "pricing_id": "123e4567-e89b-12d3-a456-426614174000",
  "type": "chat",
  "unit": "token",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Remove Org Provider Key Model

delete

Stop offering one model. Its rate and its history stay. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
model_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/organizations/me/provider-keys/{key_id}/models/{model_id}
DELETE /api/v1/organizations/me/provider-keys/{key_id}/models/{model_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

Refresh Org Provider Key Model Pricing

post

Move every rate this surface seeded onto today's community default.

The other half of the refresh above, without the dial: re-reading community rates is cheap and asking a provider for its whole catalog is not, so an admin who only wants the price move does not wait on an upstream. A rate an admin has since set is left alone, and a model that arrived unpriced is offered a rate and switched on if one has appeared. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

What a refresh did: what it newly offered, what it repriced, and the list's new size.

Failure is a field rather than a status, for the reason OrgProviderAvailableModelsPublic gives: the list is still standing, and the panel renders the reason beside it.

addedstring[]Required
countintegerRequired
discovery_unsupportedbooleanOptionalDefault: false
errorstring · nullableOptional
repricedstring[]Required
post/api/v1/organizations/me/provider-keys/{key_id}/pricing/refresh
POST /api/v1/organizations/me/provider-keys/{key_id}/pricing/refresh HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "added": [
    "text"
  ],
  "count": 1,
  "discovery_unsupported": false,
  "error": "text",
  "repriced": [
    "text"
  ]
}

Restore Org Provider Key

post

Restore an archived key. Organization owners and admins only.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

The API-facing shape. Never carries the key, only whether one is set.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
last4string · nullableOptional
namestringRequired
offered_countintegerRequired

How many models the organization offers on this key. Zero means the key has never been refreshed, so it is unnarrowed and reaches whatever its provider serves.

organization_idstring · uuidRequired
providerstringRequired
serving_countintegerRequired

How many of the offered models have their serving switch on. A key offering models and serving none refuses every request through it until one is switched on.

slugstring · nullableOptional

What requests name this key by, as in <slug>:<model>, for a key with a custom base URL. Absent for a key reached as <provider>:<model>.

updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when the stored credential cannot be decrypted on this deployment, so the key supplies nothing at dispatch and the catalog withholds its provider. A row this deployment cannot read is still listed, because deleting or replacing it is what fixes it.

zero_data_retentionbooleanOptionalDefault: false
post/api/v1/organizations/me/provider-keys/{key_id}/restore
POST /api/v1/organizations/me/provider-keys/{key_id}/restore HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "client_args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "last4": "text",
  "name": "text",
  "offered_count": 1,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "serving_count": 1,
  "slug": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true,
  "zero_data_retention": false
}

List Workspace Provider Keys

get

The effective view of every key visible to this workspace. Any member of the workspace may read it.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
Responses
200

Successful Response

application/json
get/api/v1/workspaces/{workspace_id}/provider-keys
GET /api/v1/workspaces/{workspace_id}/provider-keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "allowed_models": [
        "text"
      ],
      "disabled": true,
      "is_default": true,
      "is_effective_default": true,
      "is_effective_enabled": true,
      "org_provider_key_id": "123e4567-e89b-12d3-a456-426614174000",
      "usable": true,
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
      "zero_data_retention": false
    }
  ]
}

Set Workspace Provider Key Override

patch

Pin or disable a key for this workspace. Organization owners/admins or this workspace's owners/admins.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
key_idstring · uuidRequired
Body

Tri-state: an omitted field leaves that flag unchanged.

Both fields false, whether that is the merged result or a value sent explicitly, is a no-op the service deletes rather than stores: absence of a row already means full inheritance from the organization default. Setting one true auto-resolves the other when they would otherwise conflict (pinning re-enables a disabled key; disabling un-pins a pinned one); sending both true explicitly is refused.

disabledboolean · nullableOptional
is_defaultboolean · nullableOptional
Responses
200

Successful Response

application/json

The effective view for one workspace+key: raw override flags plus the resolution.

allowed_modelsstring[]Required
disabledbooleanRequired
is_defaultbooleanRequired
is_effective_defaultbooleanRequired
is_effective_enabledbooleanRequired
org_provider_key_idstring · uuidRequired
usablebooleanRequired
workspace_idstring · uuidRequired
zero_data_retentionbooleanOptionalDefault: false
patch/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}
PATCH /api/v1/workspaces/{workspace_id}/provider-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "disabled": true,
  "is_default": true
}
{
  "allowed_models": [
    "text"
  ],
  "disabled": true,
  "is_default": true,
  "is_effective_default": true,
  "is_effective_enabled": true,
  "org_provider_key_id": "123e4567-e89b-12d3-a456-426614174000",
  "usable": true,
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "zero_data_retention": false
}

Reset Workspace Provider Key Override

delete

Remove this workspace's override, reverting to full inheritance. Idempotent.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}
DELETE /api/v1/workspaces/{workspace_id}/provider-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

List Workspace Provider Key Model Restrictions

get

List this workspace's model allow-list for a key. Empty means every model is allowed.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
key_idstring · uuidRequired
Responses
200

Successful Response

application/json
modelsstring[]Required
get/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models
GET /api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "models": [
    "text"
  ]
}

Add Workspace Provider Key Model Restriction

post

Narrow this workspace's allow-list for a key to include one more model. Idempotent.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
key_idstring · uuidRequired
Body
modelstring · max: 255Required
Responses
201

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

post/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models
POST /api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "model": "text"
}
{
  "message": "text"
}

Remove Workspace Provider Key Model Restriction

delete

Remove one model from this workspace's allow-list for a key. Idempotent.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
key_idstring · uuidRequired
modelstringRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models/{model}
DELETE /api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models/{model} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

Last updated

Was this helpful?