Thalius
On this pageResources for AI
  1. Resources for AI
  2. An API key, or your own sign-in
  3. What the API covers
  4. The shape of a request
  5. Endpoints
  6. Import documents
  7. POST /ingest
  8. GET /jobs/{job_id}
  9. Search
  10. POST /search
  11. Folders and what they hold
  12. GET /folders
  13. GET /folders/summary
  14. Read documents
  15. GET /documents/{id}/metadata
  16. GET /documents/{id}.pdf
  17. GET /entitlement
  18. Errors
  19. Build on your documents

API reference

Every public endpoint, in one place

Import, search and read your documents from your own code. Base URL: https://hippocampus.thalius.ai/api/v1

On every plan, Free included.

Resources for AI

  • Coding agent

    Your coding agent (Claude, Cursor, Codex or another) reads our skill file and sets up Hippocampus in your project by itself.

  • Postman

    Every endpoint as a Postman collection, with the API-key sign-in set up.

  • OpenAPI 3.1

    Client generators, Swagger UI and other API tools read every endpoint from this file, in the standard format.

  • Chat assistants

    Your chat assistant (ChatGPT, Claude or Gemini) answers questions about the API from our docs, all in one file.

Authentication

An API key, or your own sign-in

Every call sends Authorization: Bearer <token>. There are two ways to get one, and each reaches only what it may read.

API client (API key) Your own sign-in
For A program with no person behind it A script that acts as you
Create A workspace admin, in Settings → Workspace → API clients: a name and scopes; the id and secret are shown once Sign in once in the browser, with the device flow
Sees Only the folders shared with the client What you may read
Token 15 minutes, from the id and secret 1 hour, refreshed; sign in again every 30 days
Scopes read, or read and ingest read, or read and ingest

The surface

What the API covers

Search — the passages that answer a question, with their document, section and pages.

Import — add a document to a folder and follow the job.

Browse and read — list folders, read a folder's summary, a document's details or its original PDF.

Your workspace — the plan and credits.

Errors — one shape for every failure.

Example

The shape of a request

Create an API client in Settings → Workspace → API clients and share a folder with it. Then get a token and search.

AS=https://hippocampusmcp.thalius.ai   # the sign-in server

TOKEN=$(curl -s -X POST $AS/oauth/token -u "$CLIENT_ID:$CLIENT_SECRET" \
  -d grant_type=client_credentials | jq -r .access_token)

curl -s -X POST https://hippocampus.thalius.ai/api/v1/search -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "What is our promotion policy?"}'
{
  "sources": [
    {
      "doc_id": "8c1f0e4a-…",
      "document_title": "Corporate Policy",
      "leaf_title": "7.3 Promotion",
      "heading_path": ["7 Careers and development", "7.3 Promotion"],
      "start_page": 41,
      "end_page": 41,
      "text": "7.3.1 An employee may be considered for promotion after at least 12 months…",
      "document_changed": false
    }
  ],
  "folder_summary": null
}

Reference

Endpoints

Base URL https://hippocampus.thalius.ai/api/v1. Every call sends Authorization: Bearer <token>; reading needs the read scope, importing needs ingest. A call reaches only what its token may read.

Import

Import documents

Add one document per call. It is read, split into sections and summarised, then filed in the folder you name. A job tracks the work.

POST /ingest

Add one document to a folder, as raw bytes. Needs ingest.

Query

  • folder_name — the folder; missing folders are created. Required.
  • filename — the file's name, which sets its type. Required.

Body the file's bytes, Content-Type: application/octet-stream. Up to 25 MiB: .pdf, .docx, .pptx, .xlsx, .md, .markdown, .txt, .text.

Returns 202 with job_id, status, folder_name and files.

curl -s -X POST "https://hippocampus.thalius.ai/api/v1/ingest?folder_name=Policies&filename=travel-policy.pdf" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @travel-policy.pdf
{
  "job_id": "j_7f2c…",
  "status": "queued",
  "folder_name": "Policies",
  "files": [{ "filename": "travel-policy.pdf", "accepted": true }]
}

GET /jobs/{job_id}

Follow an import this connection started. Poll until done is true.

Path

  • job_id — from POST /ingest.

Returns job_id, status, done, progress_percent, total_files, successful, failed and results: per file filename, document_id, success, skipped, duplicate, reason, folder_name.

cURL
curl -s https://hippocampus.thalius.ai/api/v1/jobs/$JOB_ID -H "Authorization: Bearer $TOKEN"
{
  "job_id": "j_7f2c…",
  "status": "completed",
  "done": true,
  "progress_percent": 100,
  "total_files": 1,
  "successful": 1,
  "failed": 0,
  "results": [{ "filename": "travel-policy.pdf", "document_id": "5b7d2c90-…", "success": true, "folder_name": "Policies" }]
}

POST /search

Find the passages that answer a question.

Body (JSON)

  • query — the question or the words to find. Required.
  • folder_name — search inside one folder.
  • document_ids — 1 to 50 documents to search in.
  • tags and tag_mode (all or any) — only tagged documents.

Returns sources: for each passage doc_id, document_title, leaf_title (the section), heading_path, start_page, end_page, text and document_changed; and folder_summary, or null.

curl -s -X POST https://hippocampus.thalius.ai/api/v1/search -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "What is our promotion policy?", "folder_name": "Policies"}'
{
  "sources": [
    {
      "doc_id": "8c1f0e4a-…",
      "document_title": "Corporate Policy",
      "leaf_title": "7.3 Promotion",
      "heading_path": ["7 Careers and development", "7.3 Promotion"],
      "start_page": 41,
      "end_page": 41,
      "text": "7.3.1 An employee may be considered for promotion after at least 12 months…",
      "document_changed": false
    }
  ],
  "folder_summary": null
}

Browse

Folders and what they hold

GET /folders

The folders you can see.

Returns folders: their paths.

cURL
curl -s https://hippocampus.thalius.ai/api/v1/folders -H "Authorization: Bearer $TOKEN"
{
  "folders": ["Policies", "Policies/Travel", "Reports/2026"]
}

GET /folders/summary

What a folder holds, as written at import, without running a search.

Query

  • folder_name — the folder path. Required.

Returns status (ok, none or unavailable) and folder_summary: folder, title, description, content, truncated and questions it can answer.

cURL
curl -s "https://hippocampus.thalius.ai/api/v1/folders/summary?folder_name=Policies" -H "Authorization: Bearer $TOKEN"
{
  "status": "ok",
  "folder_summary": {
    "folder": "Policies",
    "title": "Group policies",
    "description": "The rules on employment, conduct, travel and data protection.",
    "content": "…",
    "truncated": false,
    "questions": ["What is our promotion policy?", "Who approves travel?"]
  }
}

Read

Read documents

GET /documents/{id}/metadata

A document's details.

Path

  • id — the document id, e.g. doc_id from a search.

Returns doc_id, title, tags and created_at.

cURL
curl -s https://hippocampus.thalius.ai/api/v1/documents/$DOC_ID/metadata -H "Authorization: Bearer $TOKEN"
{
  "doc_id": "8c1f0e4a-…",
  "title": "Corporate Policy",
  "tags": ["policy", "hr"],
  "created_at": "2026-10-02T09:47:00Z"
}

GET /documents/{id}.pdf

The document's original PDF.

Path

  • id — the document id.

Returns the file, application/pdf.

cURL
curl -s -o corporate-policy.pdf https://hippocampus.thalius.ai/api/v1/documents/$DOC_ID.pdf -H "Authorization: Bearer $TOKEN"

GET /entitlement

The workspace's plan and credits: package, meter (credits granted, spent and when they renew) and spending_paused when credits run out.

cURL
curl -s https://hippocampus.thalius.ai/api/v1/entitlement -H "Authorization: Bearer $TOKEN"

When a call fails

Errors answer {"error": "<code>", "message": "<sentence>"}, with retry_after where there is one and field when a field was refused.

Status error What to do
400 invalid_request Fix the field named in field
401 unauthorized, invalid_token, session_too_old Send a token, get a new one, or sign in again
403 insufficient_scope Adding documents needs ingest: use a client made with Read and import, or sign in again with scope read ingest
403 spending_paused Credits are used up; do not retry
404 not_found Nothing there you can read
409 document_changed The document changed; search again
429 rate_limited, too_many_running Wait retry_after seconds
502, 503 upstream_error, unavailable Try again later
{
  "error": "invalid_token",
  "message": "The token has expired. Get a new one."
}

Build on your documents

A free account, no card. Create an API client and make your first search.