Search — the passages that answer a question, with their document, section and pages.
On this pageResources for AI
- Resources for AI
- An API key, or your own sign-in
- What the API covers
- The shape of a request
- Endpoints
- Import documents
- POST /ingest
- GET /jobs/{job_id}
- Search
- POST /search
- Folders and what they hold
- GET /folders
- GET /folders/summary
- Read documents
- GET /documents/{id}/metadata
- GET /documents/{id}.pdf
- GET /entitlement
- Errors
- 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
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
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
}
import os, requests
AS = "https://hippocampusmcp.thalius.ai" # the sign-in server
API = "https://hippocampus.thalius.ai/api/v1"
token = requests.post(f"{AS}/oauth/token",
auth=(os.environ["CLIENT_ID"], os.environ["CLIENT_SECRET"]),
data={"grant_type": "client_credentials"}).json()["access_token"]
r = requests.post(f"{API}/search", headers={"Authorization": f"Bearer {token}"},
json={"query": "What is our promotion policy?"})
print(r.json()["sources"]) {
"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
GET /jobs/{job_id}
Search
Search
Search returns the passages that answer a question, each with its document, section and pages. Your AI writes the answer.
POST /search
Browse
Folders and what they hold
GET /folders
GET /folders/summary
Read
Read documents
GET /documents/{id}/metadata
GET /documents/{id}.pdf
GET /entitlement
When a call fails
Build on your documents
A free account, no card. Create an API client and make your first search.