CogLake User Guide
Agent access

API reference

Use the authenticated REST surface for search, documents, originals, graph traversal, and administration.

The REST API uses the same tenant, role, source-ACL, and sensitive-data checks as the product interface and MCP server. Use OAuth for interactive clients and a scoped API key for service integrations.

Base URL

https://your-coglake.example/api

Send credentials as a bearer token:

Authorization: Bearer YOUR_SCOPED_TOKEN

Core resource groups

ResourceTypical purposeMinimum scope
/retrieval/searchPermission-aware hybrid search and explanationssearch:read
/retrieval/answerCited answers over visible evidencesearch:read
/documents/:idRead one permitted document by stable IDknowledge:read
/documents/:id/original-linkRequest a short-lived authenticated original linkknowledge:read
/graph/*Inspect or traverse visible document relationsknowledge:read
/knowledge/*Work with permitted internal workspaces and filesknowledge:read or knowledge:write

Administrative endpoints require their matching administration scopes. Do not issue broad administration scopes to search-only agents.

Errors and limits

  • 401 means the credential is missing, expired, or invalid.
  • 403 means the caller, role, source ACL, or data policy denies the action.
  • 404 is also used when revealing the existence of a hidden object would disclose information.
  • 409 reports stable quota or lifecycle conflicts.
  • 429 includes a retry boundary when a request budget is exhausted.

Direct document IDs never bypass authorization. Original files are delivered through the authenticated API rather than exposing object-storage credentials.

For agent tooling and OAuth discovery, continue with API and MCP connection.

On this page