Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Brain — API reference

The account's Infinite Brain: answers with citations from mail, documents, contacts and memory, hybrid knowledge search, organizational memory and the knowledge graph. AI answers are paid in AI credits.

← All groups
POST /api/v1/brain/ask

Ask the Brain a question

Out of credits answers 402 `{error: {code: "insufficient_credits", …}, citations}` (the matching records still come back); a read-only account 402 `billing_read_only`.

Scope: brain:read · uses AI credits · Idempotency-Key · brain.ask

Request body application/json
microbrains [string] Microbrain keys to focus on (sales, legal, finance …)
question * string
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

BrainAnswer

ai_error string | null
answer string
citations [BrainCitation]
fields

BrainCitation

date string | null
freshness string | null
item_id string | null
memory_type string | null
n integer The number used in the answer
origin string | null
snippet string
source_id string | null
source_type string
title string | null
verified boolean | null
credits number Credits spent
engine string
id string | null
microbrains [string]
space_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 `invalid`

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/brain/remember

Store something in organizational memory

Scope: brain:write · Idempotency-Key · brain.remember

Request body application/json
text * string What to remember
type "semantic" | "decision" | "commitment" | "procedural" | "organizational" | "relationship" Default semantic
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

id string (uuid)
remembered boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 `invalid`

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/graph/entities/{id}

An entity's relations, with validity periods

Scope: graph:read · paginated · brain.entity

ParameterInTypeDescription
id *pathstring (uuid)The entity id
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 422 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
relations * [object]
fields
from string
to string
type string
valid_from string | null
valid_to string | null
verification string | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

422 `invalid`

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)