Search Knowledge
Find the passages that best answer q in the organization's searchable documents, best first. agentId searches exactly what that Agent can find; knowledgeDocumentIds limits the search to those documents. Paused, deleted and not-yet-indexed documents are never searched. Read a whole document with get_knowledge_document and expand=content.
- Scopes: any one of
raiz:knowledge:read,raiz:knowledge:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: read-only; safe to retry
- Limits: request body up to 32 KB, response up to 1 MB
- CLI:
arbol raiz knowledge search· MCP tool:raiz_knowledge_search
POST
https://api.getarbol.com/v1/raiz/knowledge/searchAuthorization
Request body JSON required
- knowledgeDocumentIdsoptionalarray ofstring
Search only these documents (intersected with the Agent's, when both are given).
pattern: ^(?:kdc_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))|(?:con)_(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
Returns
200
Successful operation.
400
INVALID_INPUT: The request does not match the published schema.INVALID_CURSOR: The cursor is malformed or belongs to a different list.
404
NOT_FOUND: The requested operation does not exist.RESOURCE_NOT_FOUND: The requested resource does not exist in this organization.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.