Web search keys
List the caller's organization's web search and fetch keys. Organization owners and admins only.
Enter your API key here (sent as Otari-Key header).
Include archived keys.
falseNumber of records to skip
0Maximum number of records to return
100Successful Response
Validation Error
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
}
]
}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.
Enter your API key here (sent as Otari-Key header).
What a caller sends to add a key. The service keeps only its ciphertext and last4.
The provider's endpoint, when not its own. Must be https when the key carries an API key.
Required unless the provider takes no key.
Whether the key serves the search tool or the fetch tool, and enrichment. Fixed once created.
searchPossible values: How the organization tells this key apart from its others.
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.
Successful Response
One key as the API shows it: never the key itself, only last4.
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.
Validation Error
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
}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.
Enter your API key here (sent as Otari-Key header).
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.
Successful Response
One key as the API shows it: never the key itself, only last4.
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.
Validation Error
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 an archived key. Organization owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
No content
Validation Error
DELETE /api/v1/organizations/me/web-search-keys/{key_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
Take a key out of use. Organization owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
One key as the API shows it: never the key itself, only last4.
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.
Validation Error
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
}Make a key the organization's default of its kind, in place of the previous one.
Organization owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
One key as the API shows it: never the key itself, only last4.
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.
Validation Error
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
}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.
Enter your API key here (sent as Otari-Key header).
Successful Response
One key as the API shows it: never the key itself, only last4.
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.
Validation Error
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
}Put an archived key back in use. Organization owners and admins only.
Enter your API key here (sent as Otari-Key header).
Successful Response
One key as the API shows it: never the key itself, only last4.
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.
Validation Error
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
}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.
Enter your API key here (sent as Otari-Key header).
Number of records to skip
0Maximum number of records to return
100Successful Response
Every live key of the organization, not only this page.
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.
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.
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.
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.
Validation Error
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"
}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.
Enter your API key here (sent as Otari-Key header).
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.
Successful Response
Every live key of the organization, not only this page.
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.
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.
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.
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.
Validation Error
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"
}Return this workspace to inheriting the key. Idempotent. Answers with the list's first page.
Enter your API key here (sent as Otari-Key header).
Successful Response
Every live key of the organization, not only this page.
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.
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.
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.
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.
Validation Error
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?
