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

Web search keys

List Org Web Search Keys

get

List the caller's organization's web search and fetch 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/web-search-keys
GET /api/v1/organizations/me/web-search-keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "api_base": "text",
      "archived_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "is_org_default": true,
      "kind": "search",
      "last4": "text",
      "name": "text",
      "options": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "organization_id": "123e4567-e89b-12d3-a456-426614174000",
      "provider": "text",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "usable": true
    }
  ]
}

Create Org Web Search Key

post

Add a search or fetch key to the caller's organization. Organization owners and admins only.

A new key serves no workspace until the organization makes it its default for the key's kind, or a workspace pins it. Until then each workspace keeps the key it uses, or the deployment's instance.

Authorizations
Otari-KeystringRequired

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

Body

What a caller sends to add a key. The service keeps only its ciphertext and last4.

api_basestring · max: 1024 · nullableOptional

The provider's endpoint, when not its own. Must be https when the key carries an API key.

api_keystring · min: 1 · nullableOptional

Required unless the provider takes no key.

kindstring · enumOptional

Whether the key serves the search tool or the fetch tool, and enrichment. Fixed once created.

Default: searchPossible values:
namestring · max: 255Required

How the organization tells this key apart from its others.

providerstring · max: 255Required

The provider the key is for: one the provider catalog, GET /api/v1/search-tools/providers, lists for the key's kind, other than searxng, or tavily or brave for a search key.

Responses
201

Successful Response

application/json

One key as the API shows it: never the key itself, only last4.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
kindstring · enumRequiredPossible values:
last4string · nullableOptional
namestringRequired
organization_idstring · uuidRequired
providerstringRequired
updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when this deployment cannot decrypt the stored key, so no call uses it. It is still listed, because replacing or deleting it is what fixes it.

post/api/v1/organizations/me/web-search-keys
POST /api/v1/organizations/me/web-search-keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "api_key": "<your Exa API key>",
  "kind": "search",
  "name": "production",
  "provider": "exa"
}
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "kind": "search",
  "last4": "text",
  "name": "text",
  "options": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true
}

Update Org Web Search Key

patch

Rename a key, replace its secret, or change its api_base or options. Organization owners and admins only.

Its kind and provider are fixed. A new api_base on a key that holds a secret needs that secret in the same request, api_key and any masked options entry, since the next call sends it to the new host. Clearing api_base needs neither.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Body

A partial update: only what is set is applied, and null clears api_base or options.

kind is fixed once a key is created, so sending it is refused.

api_basestring · max: 1024 · nullableOptional
api_keystring · min: 1 · nullableOptional
namestring · max: 255 · nullableOptional
Responses
200

Successful Response

application/json

One key as the API shows it: never the key itself, only last4.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
kindstring · enumRequiredPossible values:
last4string · nullableOptional
namestringRequired
organization_idstring · uuidRequired
providerstringRequired
updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when this deployment cannot decrypt the stored key, so no call uses it. It is still listed, because replacing or deleting it is what fixes it.

patch/api/v1/organizations/me/web-search-keys/{key_id}
PATCH /api/v1/organizations/me/web-search-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "api_base": "text",
  "api_key": "text",
  "name": "text",
  "options": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "api_base": "text",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "created_at": "2026-01-01T00:00:00.000Z",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "is_org_default": true,
  "kind": "search",
  "last4": "text",
  "name": "text",
  "options": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "provider": "text",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "usable": true
}

Delete Org Web Search Key

delete

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
204

Successful Response

No content

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

No content

Archive Org Web Search Key

post

Take a key out of use. 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

One key as the API shows it: never the key itself, only last4.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
kindstring · enumRequiredPossible values:
last4string · nullableOptional
namestringRequired
organization_idstring · uuidRequired
providerstringRequired
updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when this deployment cannot decrypt the stored key, so no call uses it. It is still listed, because replacing or deleting it is what fixes it.

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

Set Org Default Web Search Key

post

Make a key the organization's default of its kind, in place of the previous one.

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

One key as the API shows it: never the key itself, only last4.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
kindstring · enumRequiredPossible values:
last4string · nullableOptional
namestringRequired
organization_idstring · uuidRequired
providerstringRequired
updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when this deployment cannot decrypt the stored key, so no call uses it. It is still listed, because replacing or deleting it is what fixes it.

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

Unset Org Default Web Search Key

delete

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

Idempotent: a key that is not the default is returned unchanged. With no default, a workspace that pinned no key uses the deployment's instance for that kind.

Authorizations
Otari-KeystringRequired

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

Path parameters
key_idstring · uuidRequired
Responses
200

Successful Response

application/json

One key as the API shows it: never the key itself, only last4.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
kindstring · enumRequiredPossible values:
last4string · nullableOptional
namestringRequired
organization_idstring · uuidRequired
providerstringRequired
updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when this deployment cannot decrypt the stored key, so no call uses it. It is still listed, because replacing or deleting it is what fixes it.

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

Restore Org Web Search Key

post

Put an archived key back in use. 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

One key as the API shows it: never the key itself, only last4.

api_basestring · nullableOptional
archived_atstring · date-time · nullableOptional
created_atstring · date-timeRequired
idstring · uuidRequired
is_org_defaultbooleanRequired
kindstring · enumRequiredPossible values:
last4string · nullableOptional
namestringRequired
organization_idstring · uuidRequired
providerstringRequired
updated_atstring · date-time · nullableOptional
usablebooleanRequired

False when this deployment cannot decrypt the stored key, so no call uses it. It is still listed, because replacing or deleting it is what fixes it.

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

List Workspace Web Search Keys

get

The organization's keys as this workspace sees them, and which of each kind it uses.

Any member of the workspace may read it. is_effective is decided across every key, not only this page, and search_provider and fetch_provider say what the workspace's searches and fetches run on.

Authorizations
Otari-KeystringRequired

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

Path parameters
workspace_idstring · uuidRequired
Query parameters
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

Every live key of the organization, not only this page.

deployment_fetch_toolstring · nullableOptional

The name of the deployment's fetch tool, which the workspace's fetches run on when no key serves them, whether or not one does now: builtin_fetch for the built-in fetcher.

deployment_search_toolstring · nullableOptional

The name of the deployment's search tool, which the workspace's searches run on when no key serves them, whether or not one does now. Null when the deployment has none.

fetch_providerstring · nullableOptional

The provider the workspace's fetch tool runs on, and the enrichment of its search hits unless the search's instance names a fetch instance of its own: its effective fetch key's, else the deployment's default fetch instance's, which is builtin for the built-in fetcher.

search_providerstring · nullableOptional

The provider the workspace's searches run on: its effective search key's, else the deployment's default search's. Null when nothing searches for it.

get/api/v1/workspaces/{workspace_id}/web-search-keys
GET /api/v1/workspaces/{workspace_id}/web-search-keys HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "disabled": true,
      "is_default": true,
      "is_effective": true,
      "is_org_default": false,
      "kind": "search",
      "last4": "text",
      "name": "text",
      "org_web_search_key_id": "123e4567-e89b-12d3-a456-426614174000",
      "provider": "text",
      "usable": true,
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "deployment_fetch_tool": "text",
  "deployment_search_tool": "text",
  "fetch_provider": "text",
  "search_provider": "text"
}

Set Workspace Web Search Key Override

patch

Pin a key as this workspace's own for its kind, or turn it off for this workspace.

Organization owners and admins, or this workspace's owners and admins. Answers with the list's first page.

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 flag keeps its value.

Pinning a key re-enables it and unpins the workspace's other key of its kind, and turning a key off unpins it. Sending both flags true is refused. Both false deletes the override.

disabledboolean · nullableOptional
is_defaultboolean · nullableOptional
Responses
200

Successful Response

application/json
countintegerRequired

Every live key of the organization, not only this page.

deployment_fetch_toolstring · nullableOptional

The name of the deployment's fetch tool, which the workspace's fetches run on when no key serves them, whether or not one does now: builtin_fetch for the built-in fetcher.

deployment_search_toolstring · nullableOptional

The name of the deployment's search tool, which the workspace's searches run on when no key serves them, whether or not one does now. Null when the deployment has none.

fetch_providerstring · nullableOptional

The provider the workspace's fetch tool runs on, and the enrichment of its search hits unless the search's instance names a fetch instance of its own: its effective fetch key's, else the deployment's default fetch instance's, which is builtin for the built-in fetcher.

search_providerstring · nullableOptional

The provider the workspace's searches run on: its effective search key's, else the deployment's default search's. Null when nothing searches for it.

patch/api/v1/workspaces/{workspace_id}/web-search-keys/{key_id}
PATCH /api/v1/workspaces/{workspace_id}/web-search-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "is_default": true
}
{
  "count": 1,
  "data": [
    {
      "disabled": true,
      "is_default": true,
      "is_effective": true,
      "is_org_default": false,
      "kind": "search",
      "last4": "text",
      "name": "text",
      "org_web_search_key_id": "123e4567-e89b-12d3-a456-426614174000",
      "provider": "text",
      "usable": true,
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "deployment_fetch_tool": "text",
  "deployment_search_tool": "text",
  "fetch_provider": "text",
  "search_provider": "text"
}

Reset Workspace Web Search Key Override

delete

Return this workspace to inheriting the key. Idempotent. Answers with the list's first page.

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
countintegerRequired

Every live key of the organization, not only this page.

deployment_fetch_toolstring · nullableOptional

The name of the deployment's fetch tool, which the workspace's fetches run on when no key serves them, whether or not one does now: builtin_fetch for the built-in fetcher.

deployment_search_toolstring · nullableOptional

The name of the deployment's search tool, which the workspace's searches run on when no key serves them, whether or not one does now. Null when the deployment has none.

fetch_providerstring · nullableOptional

The provider the workspace's fetch tool runs on, and the enrichment of its search hits unless the search's instance names a fetch instance of its own: its effective fetch key's, else the deployment's default fetch instance's, which is builtin for the built-in fetcher.

search_providerstring · nullableOptional

The provider the workspace's searches run on: its effective search key's, else the deployment's default search's. Null when nothing searches for it.

delete/api/v1/workspaces/{workspace_id}/web-search-keys/{key_id}
DELETE /api/v1/workspaces/{workspace_id}/web-search-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "data": [
    {
      "disabled": true,
      "is_default": true,
      "is_effective": true,
      "is_org_default": false,
      "kind": "search",
      "last4": "text",
      "name": "text",
      "org_web_search_key_id": "123e4567-e89b-12d3-a456-426614174000",
      "provider": "text",
      "usable": true,
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "deployment_fetch_tool": "text",
  "deployment_search_tool": "text",
  "fetch_provider": "text",
  "search_provider": "text"
}

Last updated

Was this helpful?