The same text as Markdown, for AI agents and other systems: https://deep-thought.cloud/api/reference.md · API overview

Deep Thought Cloud API reference

Last updated: 2026-10-20, server 2.37.221. Overview: https://deep-thought.cloud/en/api/. This file: https://deep-thought.cloud/api/reference.md (Markdown, for people and for AI agents).

Deep Thought Cloud turns recordings and documents into a searchable knowledge base: transcripts, speakers, summaries, people and organisations, actions and insights. This reference covers what an integration needs: authentication, uploading, waiting for processing, and reading the results. It is a curated subset of the API; everything not listed here is internal or may change without notice.

Contents

  1. Basics
  2. Authentication
  3. Plans
  4. Rate limits
  5. Errors
  6. Quick start
  7. Uploading
  8. Processing status
  9. Reading
  10. Meeting notetaker
  11. MCP
  12. Endpoint summary

Basics

Base URL https://api.deep-thought.cloud/api/v1
Format JSON in and out, except uploads (multipart/form-data)
Times ISO-8601, UTC
Transport HTTPS only

Every path below is relative to the base URL. A source (a recording, document or text) is identified by its key, called source_id or cache_key in responses (for example DOC_20261001_044444_0367b3dd_82afbf5d).

Authentication

Send a token on every request:

Authorization: Bearer <token>

Device token (use this today)

A device token starts with dtd_. Deep Thought issues it for your account; it is shown once, so store it as a secret. It does not expire by default and can be revoked at any time in the Web App under Settings, Devices. Revocation takes effect on the next request.

A device token carries scopes:

Scope Allows
kb:read Every GET request in this reference, and POST /search
kb:write Everything else: uploads, tags, actions, the meeting notetaker. Implies kb:read
graph:read The knowledge graph: how people, organisations and topics connect (the MCP tools get_entity_neighborhood and graph_search). Not implied by kb:read or kb:write; asked for when the token is issued

A request outside the token’s scopes answers 403 {"error": "insufficient_scope", "required": ["kb:write"], ...}. A token with only kb:read cannot upload and cannot use POST /chat.

API keys (Enterprise, coming)

API keys are built for server integrations and will replace device tokens for them: one key per system, scoped, revocable, created by an account owner or admin in the Web App. A key looks like dtk_<key_id>_<secret> and is sent the same way (Authorization: Bearer dtk_...). They are not switched on yet and no date is set. When they are, moving from a device token to a key changes only the token you send.

Passwords from scripts are being retired

Signing in with e-mail and password (POST /auth/login) and HTTP Basic are for the Deep Thought apps. Do not build an integration on them. Using them from a script is being retired for every plan: the planned dates are a notice on 2026-10-16 and the end on 2026-11-16. From the end date a script gets 401 {"error": "basic_auth_retired"} or 401 {"error": "password_login_app_only"}. Until then such responses may carry Deprecation and Sunset headers.

Plans

Each feature belongs to a plan: Free, Premium or Enterprise. The endpoints below are marked with the lowest plan that includes them. A request for a feature your plan does not include answers 402 with {"error": "plan_required", "plan": "premium", "feature": "<feature>"}. The current plan contents are published, without authentication, at GET /public/plans and GET /public/features.

Plan Includes (API view)
Free Audio and video upload, transcripts, speakers, tags, listing and reading your sources
Premium Free, plus text, document and image upload, summaries and structured extraction, people and organisations, actions, insights and verticals, semantic search and chat, MCP, the meeting notetaker
Enterprise Premium, plus API keys for your own systems (when switched on), integrations, multi-user accounts

Rate limits

Limits are counted per client IP address and per endpoint, in fixed windows:

Endpoints Limit
Authenticated requests, /sources/upload included 50 per second
Sign-in requests (/auth/*) 5 per minute

Every response carries the current state:

Header Meaning
X-RateLimit-Limit The limit for this endpoint in the current window
X-RateLimit-Remaining Requests left in the window
X-RateLimit-Reset When the window resets, in Unix epoch seconds
Retry-After Seconds to wait before retrying

Over the limit the answer is 429 with a Retry-After header and {"error": "rate_limit_exceeded", "retry_after": <seconds>, "limit": "50 per 1 second"}. Wait at least retry_after seconds before the next request.

Errors

An error answers with an HTTP status and a JSON body with an error field: a short code (plan_required) or a sentence. Many add message. Read the status code first.

Status Meaning What to do
400 The request is malformed or a required field is missing Fix the request
401 No token, an unknown or revoked token Check the Authorization header
402 plan_required: the feature is not in your plan See Plans
403 insufficient_scope (token scopes), or not_allowed (owner or admin only) Use a token with the scope
404 Not found, or not yours. For a source key, see the key can change
409 Conflict, for example a duplicate
413 The file is larger than the upload limit (250 MB). Refused before it reaches the API, so the body may not be JSON Split or compress the file
415 The file type is not accepted, or its content does not match its extension (file_validation_failed)
429 rate_limit_exceeded Wait Retry-After seconds
5xx A server-side problem. 503 may carry Retry-After Retry with backoff

Quick start

Upload a recording, wait for the transcript, fetch it. Set DT_TOKEN to your token first.

export DT_TOKEN="dtd_..."          # your token; never commit it
API=https://api.deep-thought.cloud/api/v1

# 1. Upload. A new file answers 202 with a task_id.
TASK=$(curl -s -X POST "$API/sources/upload" \
  -H "Authorization: Bearer $DT_TOKEN" \
  -F "file=@meeting.m4a" -F "language=sv" -F "tags=customer-x" \
  -F "content_source=meeting" \
  -F 'content_source_metadata={"meeting_started_at":"2026-10-08T09:00:00Z"}' \
  | jq -r '.task_id // empty')

# 2. Wait for the source key, then for the transcript.
until KEY=$(curl -s "$API/sources/tasks/$TASK" -H "Authorization: Bearer $DT_TOKEN" \
    | jq -r '.result.cache_key // .cache_key // empty') && [ -n "$KEY" ]; do sleep 10; done

until [ "$(curl -s "$API/sources/$KEY/status" -H "Authorization: Bearer $DT_TOKEN" \
    | jq -r '.status.transcription.status')" = "completed" ]; do sleep 30; done

# 3. Fetch the source: transcript, title, summary and extraction.
curl -s "$API/sources/$KEY" -H "Authorization: Bearer $DT_TOKEN" \
  | jq '.result | {title: .llm_title, text: (.diarization_text_named // .diarization_text // .text)}'

If the upload answers {"status": "duplicate_upload", "cache_key": ...} instead, the account already has this file and cache_key is its key; skip to step 2’s second loop.

Uploading

POST /sources/upload

multipart/form-data. Scope kb:write.

Field Required Description
file Yes The file. At most 250 MB
language No Language hint, for example sv or en. Default: detected. A hint, not an order: when the recording is 30 seconds or longer and the detection is confident that another language is spoken, the detected language wins and the recording is transcribed in that language, never translated. A shorter recording keeps the hint
tags No Comma-separated tags, for example customer-x,q4
content_source No What the source is: meeting, voice_memo, interview, phone_call, lecture, presentation, podcast or email. Any other value is ignored
content_source_metadata No A JSON object, at most 16 KB, stored with the source. Malformed JSON or a larger value is ignored, never refused. The keys that are read: client_recording_started_at (when your recorder started), meeting_started_at / source_datetime (when the meeting was; both are under Dating a source below) and, with content_source=meeting, meeting_title and participants
user_context No Free text about the recording: who is in it, what it is about, the setting. At most 4,000 characters; longer is cut, never refused. The same field as PATCH /sources/<id>/metadata, but read by the first processing (the quick title and summary, deep extraction and chapters), so no reprocess is needed. With content_source=meeting, a meeting_title and participants in content_source_metadata are hints for the title and the people. Audio uploads; a video upload ignores it for now
material_role No derived marks the upload as material made from your other sources (a write-up, a deck, a PDF you sent on). Absent, empty or input is an ordinary source, exactly as before. On upload, text, documents and images only (Premium); see Material made from your own sources
derived_from No Which series run the material was built on: a JSON object {"scope": "<scope>", "run_id": "...", "input_hash": "..."} (each value text; other keys are dropped; at most 4,096 characters). Take the three values from GET /series/<scope>/deliveries: scope, run_id and input_hash at the top level of its answer (the scope’s current run). Used to tell you later that the material is stale. Only with material_role=derived
produced_by No Free text about who or what made the material (“weekly summary, v2”); at most 300 characters. Shown as label in the deliveries list. Only with material_role=derived

File types and plans

Kind Extensions Plan
Audio .mp3, .m4a, .wav, .aac, .flac, .ogg, .opus, .webm, .caf, .qta Free
Video (the audio is transcribed) .mp4, .m4v, .mov, .mkv, .avi, .webm Free
Text .md, .markdown, .txt, .vtt Premium
Documents .pdf, .docx, .doc Premium
Images (text is read from the image) .jpg, .jpeg, .png, .gif, .webp, .heic, .heif Premium

.caf is Apple Core Audio (a voice message from Messages) and .qta an Apple Voice Memos recording. A text file that contains code (a pasted snippet in meeting notes, for example) is still accepted as text. Below Premium a text, document or image upload answers 402 with "feature": "non_audio_sources".

Dating a source. By default a source is dated by its own metadata (an embedded recording time, or a date in the file name), else by the upload time. To give the date yourself, for example when you upload a meeting after the fact, send:

content_source=meeting
content_source_metadata={"meeting_started_at": "2026-10-08T09:00:00Z"}

meeting_started_at is ISO-8601 in UTC, with the Z; a value without an offset is read as UTC. This works for audio, video, text and documents. The source’s date is then returned as recording_started_at, and recording_time_source says which rule set it (treat an unknown value as “the upload date”). The source list is still ordered by upload time.

When your app did the recording. If you are uploading something you recorded yourself (a capture app, your own recorder), send the moment it started instead:

content_source_metadata={"client_recording_started_at": "2026-10-16T06:30:29Z"}

ISO-8601, UTC with the Z or with an offset. This is read before every other date, including a file’s embedded stamp and meeting_started_at, because your recorder is the only thing that knows when a recording started when the upload happens minutes or hours later: queued offline, resumed, or sent when the network came back. started_at and recorded_at are accepted as the same field; prefer the explicit name.

It is believed within bounds: a start later than the upload (more than five minutes of clock drift), a recording that would still be running at the upload, or a start more than 30 days before the upload is ignored, and the source is dated by the next rule, and recording_time_source then says which. Nothing is refused and nothing fails; the date is simply not taken from a clock that cannot be right.

Send it only for a recording your app made. For a file imported from somewhere else, send nothing and let the file’s own metadata date it.

The size limit. GET /info reports the limit that is enforced: limits.max_file_size in bytes (262144000) and limits.max_file_size_mb ("250MB"). GET /auth/user-limits reports the same number for your account. A larger file answers 413.

Response. A new file answers 202:

{"status": "queued", "task_id": "abc123-def456", "queue_position": 3,
 "estimated_wait_time": 300, "filename": "meeting.m4a"}

It carries no source key yet; get it from GET /sources/tasks/<task_id>. A file the account already holds answers {"status": "duplicate_upload", "cache_key": "...", "transcription_status": "...", "title": "..."}.

POST /sources is the same endpoint under a second path.

Material made from your own sources

Material that you or we made from your recordings (a write-up for a customer, a deck, a PDF you sent on) can be attached to the tag it belongs to without ever being read as if it were one of your own sources. Mark it with material_role=derived when you upload it, or afterwards with PATCH /sources/<source_id>/material.

A derived source is stored with its file and a text for display and download. It is never read as evidence: not by a series, a search, a question on a tag or a case page. A source uploaded as derived is not run through the analysis (its aci_status is skipped_derived) and is not mailed to you. A source you mark later with PATCH keeps the aci_status it had and whatever was extracted from it earlier; it is no longer read as evidence. Either way it is listed, with what became of it, by GET /series/<scope>/deliveries for every scope its tags select, so give it the tag of the series it belongs to.

curl -s -X POST "$API/sources/upload" -H "Authorization: Bearer $DT_TOKEN" \
  -F "file=@summary.pdf" -F "tags=q4" -F "material_role=derived" \
  -F 'derived_from={"scope":"acme-tag-q4","run_id":"...","input_hash":"..."}' \
  -F "produced_by=weekly summary"

On upload, a text, document or image answers 402 with "feature": "non_audio_sources" below Premium, and that check comes first. Upload errors carry the code in error_code (error holds a sentence): 400 bad_material_role (a value other than input or derived, a derived_from that is not a JSON object, or derived_from / produced_by sent without material_role=derived) and 400 derived_needs_document (an upload of audio or video is a recording, not material). A service credential without the upload scope gets 403 material_role_not_allowed; this applies only to service credentials.

Material delivered by a consultant. A consultant who works on your account with a service credential (an agreement you have made, and a consultant link you have created for the tag) uploads derived material with one more field, built_on_run: the run_id of the series run the material was built on (or derived_from.run_id, which is used when built_on_run is absent). It is required for a service credential: without it the upload answers 400 built_on_run_required. On your account the upload also needs an active link for the tag it carries: without one it answers 403 consultant_link_required. The delivery is still derived material: never evidence, never an input to a series. The deliveries list says who delivered it.

PATCH /sources/<source_id>/material (kb:write, your own sources). Marks a source you already hold as derived, for example a write-up you uploaded earlier. There is no plan gate and no check of the kind of source on this route: any source of yours can be marked, including a recording.

curl -s -X PATCH "$API/sources/$KEY/material" -H "Authorization: Bearer $DT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"material_role": "derived", "produced_by": "weekly summary"}'

The body is {"material_role": "derived", "derived_from"?: {...}, "produced_by"?: "..."}. The answer is 200 {"id": "...", "material_role": "derived", "changed": true}; changed is false when the source already was derived (derived_from and produced_by are then ignored). It goes one way only: material_role: "input" for a derived source answers 409 derived_stays_derived, and for an ordinary source 200 with changed: false (leaving out material_role reads as input). Marking a source removes it from the search index and changes what the series that included it reads, so the scope shows as stale until its next run. Errors carry the code in error: 400 bad_material_role (with message), 401, 404 not_found, 409 derived_stays_derived, and 403 material_role_not_allowed for a service credential without the upload scope (only service credentials).

Processing status

GET /sources/tasks/<task_id>

The upload task. status is pending, processing, completed (with result, which carries cache_key) or failed (with error). Poll it until you have the source key.

GET /sources/<source_id>/status

Where each processing stage of a source stands:

{"success": true, "cache_key": "DOC_...",
 "status": {
   "transcription":  {"status": "completed"},
   "llm_extraction": {"status": "completed"},
   "aci":            {"status": "pending", "processed": false},
   "diarization":    {"status": "completed", "speaker_count": 3},
   "semantic_index": {"status": "pending", "indexed": false}}}

Each stage is pending, processing or completed. The transcript is ready when transcription.status is completed; aci is the structured extraction (Premium) and finishes later. The Free plan never runs aci, so do not wait for it there.

Polling advice. Poll every 15 to 30 seconds, not faster. Processing time grows with the recording’s length and the queue; for a long recording, wait minutes rather than seconds before the first status call. Respect Retry-After on a 429. There is no push notification of completion today: poll.

GET /sources/<source_id>/aci-status

kb:read. Where the structured extraction (aci) of one source stands, and whether all of the text was read. On the Free plan there is no extraction to wait for (see above).

{"success": true, "cache_key": "DOC_...",
 "status": {
   "aci_processed": true, "aci_processing": "complete", "aci_status": "partial",
   "extraction_complete": false, "chunks_total": 6, "chunks_failed": [2, 3],
   "incomplete_reason": "chunks_unread", "waiting_for_key": null,
   "retrigger_count": 0, "last_trigger_reason": null, "tag_context_version": "a1b2c3d4",
   "last_processed_at": "Mon, 19 Oct 2026 14:02:11 GMT", "is_processing": false,
   "current_tags": ["customer-x"]}}
aci_status Meaning for a client
pending Queued or running. Poll again
success Extracted. If extraction_complete is false the gap is named below
partial Extracted, but a part of the text could not be read, or the full extraction gave way to the simpler one. It has data: treat it as readable and show the gap, do not treat it as “no data”
waiting_for_key Your own provider key failed (waiting_for_key names provider and reason). It resumes by itself once the key works
held_for_boundary Held because the account’s processing boundary does not allow any provider for the step. It is retried by itself
deferred Not run, on purpose: for example a duplicate, or a source that waits for a tag
skipped_derived A source uploaded as derived material: never analysed, by design. A source marked derived later keeps the status it had
skipped Finished without an extraction, for example because there was too little text
error The extraction failed
null Not started

extraction_complete is true when all of the text was read, false when a part was not, and null for a source extracted before this was recorded (it claims nothing). chunks_total is the number of parts the text was cut into and chunks_failed the 0-based indices of the parts that could not be read. incomplete_reason is a short code whenever the status is partial: chunks_unread when parts could not be read, unified_unparsed and similar when the full extraction gave way to the simpler one; otherwise null.

The rest describes the run: retrigger_count is how many times the analysis was started again (for example after a tag change) and last_trigger_reason why; tag_context_version identifies the version of your tags the analysis used; last_processed_at is when it finished; current_tags are the source’s tags. last_processed_at is an HTTP date (older sources: ISO 8601 text). is_processing says that a run has been started on the source and can stay true after the run has finished, so read aci_processing and aci_status for the state.

Errors: 401, and 404 for a source that is not found or not yours, with "error": "The requested transcription was not found or you don't have access to it".

The key can change

When transcription finishes, a source can be stored under a new DOC_... key and the upload’s key then answers 404. Use the key from the task result (result.cache_key), and on a 404 for a source you just uploaded, upload the same file again: it answers duplicate_upload with the current key, without processing it twice.

Reading

All reads need kb:read.

Sources

GET /sources (Free). Your sources, newest upload first.

Parameter Description
limit Default 50, at most 100
before Paging: pass the previous page’s next_cursor to get older items
after A cursor: only items newer than it (for refreshing)
tag One tag. _untagged returns sources without tags
kind recording, video, document, email, podcast, integration or other
content_source For example meeting or voice_memo
client The uploading client, for example api or record-me-mac
person A speaker’s person_id (from GET /speakers/persons)
since A date, YYYY-MM-DD: only sources uploaded on or after that day
until A date, YYYY-MM-DD: only sources uploaded on or before that day
include_deleted true to include sources in the Trash
has_note true: only sources with a note; false: only sources without one (see The note on a source)
note_contains Text in the note, case-insensitive, at most 200 characters

The response is {"files": [...], "count": n, "has_more": bool, "next_cursor": "..."}. Page by passing next_cursor as before until has_more is false.

since and until are inclusive, count days in Swedish time (Europe/Stockholm) and filter on the upload time, not on recording_started_at; either can be left out. A malformed date, an unknown kind or a malformed content_source answers 400.

GET /sources/<source_id> (Free). One source in full, under result: the transcript and everything extracted from it.

Field Contents Plan
text The plain transcript Free
diarization_text The transcript with speaker labels (SPEAKER_00, …) Free
diarization_text_named The transcript with speaker names, where they are known Free
diarization_speakers_named Label to name map Free
original_filename, language, duration, tags, content_source, recording_started_at Metadata Free
agent_note The note on the source, or null (see below) Free
llm_title, llm_keywords Title and keywords Free
llm_summary Summary Premium
people, organizations, locations Who and what is mentioned Premium
actions Actions and decisions found in the source Premium

For “who said what”, read diarization_text_named, then diarization_text, then text.

GET /sources/<source_id>/info (Free). Metadata only, without the transcript; cheaper for lists.

POST /sources/<source_id>/tags, DELETE /sources/<source_id>/tags (Free, kb:write). Body {"tags": ["customer-x"]}.

Exporting a source

GET /sources/<source_id>/export (Free, kb:read). One source as a file to download.

Parameter Description
format Required: txt, md (Markdown), docx (Word) or srt (subtitles)
content transcript (default), summary or both. srt takes only transcript

The answer is the file itself, with Content-Disposition: attachment and the source’s title as the file name (filename* carries a title with non-ASCII letters):

format Content-Type
txt text/plain; charset=utf-8
md text/markdown; charset=utf-8
docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
srt application/x-subrip

A file starts with the title, the date, the duration and the speakers by name. The transcript comes by speaker turn with a [hh:mm:ss] time where the source has timings; the summary comes with the decisions and action items found in the source. srt has one numbered cue per stretch of speech, the speaker’s name in front.

Errors: 400 with invalid_format, invalid_content or srt_needs_timestamps (the source has no timings, for example a pasted text); 404 as for GET /sources/<source_id>; 409 with not_ready while the transcript is still being made.

curl -s -OJ "$API/sources/$KEY/export?format=docx&content=both" -H "Authorization: Bearer $DT_TOKEN"

Where a source was processed

GET /sources/<source_id>/processing (Free, kb:read). Where each processing step of one source ran: the country, the operator and the host, and whether the step ran on the first choice or on a fallback. On every plan. The place is stored when the step runs; it is never worked out afterwards from today’s configuration.

{
  "source_id": "DOC_20261011_101500_0367b3dd_82afbf5d",
  "steps": [
    {"step": "transcription",
     "where": {"country": "SE", "operator": "own_hardware", "host": "Stockholm GPU server (card 0)"},
     "first_choice": true, "escalated": false, "model": "...", "at": "2026-10-11T10:16:02+00:00"},
    {"step": "summary",
     "where": {"country": "SE", "operator": "berget", "host": "Berget (Sweden)"},
     "first_choice": true, "escalated": false, "model": "...", "at": "2026-10-11T10:17:40+00:00"}
  ],
  "complete": true,
  "not_recorded": []
}
Field Contents
source_id The source’s key
steps One entry per step and place, oldest first. Steps an AI model performs are listed once per step, place, model and first choice or fallback, with the latest time. Only attempts that did the work are listed
steps[].step transcription, diarisation (speaker identification), embedding (search index), meeting_recording (the meeting notetaker), quick_extraction, extraction, summary, translation, chat, insights, vision (images and PDF pages), tagging, or analysis (any other AI step)
steps[].where.country Where the step ran: an ISO 3166-1 alpha-2 code, or EU
steps[].where.operator Who runs the machine: own_hardware, berget, openrouter, openai, anthropic, groq or recall
steps[].where.host A label for the place, for example Stockholm GPU server (card 0). Never an address
steps[].where.note Optional. A sentence the place needs, for example how the meeting notetaker’s provider stores and processes the audio
steps[].first_choice true when the step ran on the first provider it was meant for
steps[].escalated true when the step moved to a fallback
steps[].model The model or engine, or null
steps[].at When the step ran (ISO-8601, UTC), or null
complete false when a step ran without a record of where
not_recorded The steps that ran without a record, by the names above. Every step of a source processed before 11 October 2026 is not recorded, nor are a few paths not yet covered

The answer is sent with Cache-Control: no-store. Errors: 404 as for GET /sources/<source_id> (another account’s source is not found); 500 with processing_unavailable when the record could not be read.

curl -s "$API/sources/$KEY/processing" -H "Authorization: Bearer $DT_TOKEN"

The note on a source

Each source has one free-text note, shared by everyone in the account. Assistants and systems use it to record what they have done with a source, so the next run can skip it:

processed by core-skills transcript 2026-10-10 → vault note meetings/261010-weekly.md

The note is agent_note on GET /sources/<source_id> and on every row of GET /sources, or null when there is none:

{"text": "processed by …", "updated_at": "2026-10-10T12:34:56Z",
 "updated_by_user": "anna", "updated_by_client": "mcp"}

updated_by_client is mcp, api, web, ios, android, mac or other.

GET /sources/<source_id>/note (kb:read). {"source_id": "...", "agent_note": {...} | null, "max_length": 2000}.

PUT /sources/<source_id>/note (kb:write). Body {"text": "..."}. Replaces the note; an empty text clears it. At most 2000 characters; control characters are removed. Answers {"status": "updated" | "cleared" | "unchanged", "source_id": "...", "agent_note": {...} | null}. 400 invalid_text, 400 note_too_long (with max_length), 404 not_found, 429 rate_limited (60 writes a minute per user; retry_after in seconds).

curl -s -X PUT "$API/sources/$SOURCE/note" -H "Authorization: Bearer $DT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "processed by my-tool 2026-10-10 → ticket 4711"}'
curl -s "$API/sources?has_note=false&limit=20" -H "Authorization: Bearer $DT_TOKEN"

Writing the note changes nothing else: the source is not reprocessed and its status, dates and e-mail stay as they are. The last ten writes are kept on the server. Not to be confused with POST /sources/<source_id>/notes, which appends to a separate list.

Search and chat

POST /search (Premium). Semantic search across your sources. Allowed with kb:read.

{"query": "what was decided about the launch date", "n_results": 5, "tag_filter": ["customer-x"]}

n_results is at most 20. Each result carries transcription_id (the source key), title, text (the matching passage) and score.

POST /chat (Premium, kb:write). A question answered from your sources, with the sources it used. Body {"message": "...", "tag_scope": "customer-x", "conversation_id": "..."}; tag_scope and conversation_id are optional (send the returned conversation_id back to continue a conversation). The answer is message.content, the sources message.sources.

Tags and speakers

Endpoint Plan Returns
GET /tags Free The tags used on your sources
GET /tags/definitions Free Your tag definitions, with usage counts
GET /speakers/persons Free The people your account knows by voice: person_id, display_name, aliases, doc_count
GET /transcriptions/<source_id>/speakers Free The speakers of one source and suggested names

People, organisations and topics

Endpoint Plan Returns
GET /entities Premium People, organisations, projects and topics across your sources. Filters type, tag
GET /entities/<entity_id> Premium One of them: name, aliases, type, how often it appears
GET /entities/<entity_id>/related Premium What it is connected to, and the sources it appears in

Insights and verticals

Endpoint Plan Returns
GET /insights Premium Insights: how a tag’s content has developed over time. Filters tag_slug, status
GET /insights/<insight_id> Premium One insight
GET /contexts Premium Your verticals: the running picture of each tag, feed and person
GET /contexts/<scope_type> Premium The verticals of one type: tag, feed or person
GET /contexts/<scope_type>/<scope_key> Premium One vertical in full, with its summary
GET /contexts/<scope_type>/<scope_key>/synthesis Premium What the vertical’s documents say together (kind, detail=summary|full)
GET /series Premium The scopes with a synthesis (the whole account, a series, a tag), with schedule and last run
GET /series/<scope> Premium One scope’s synthesis (kind, detail=summary|full|deep; deep is the deep-dive page’s data in both languages), with the people over time: who was ahead, who followed, who thinks alike
GET /series/<scope>/export Premium The raw data behind a synthesis, as a file to download: every statement the insights are built from (id, date, document, speaker, text, which pattern), the patterns with their insight status, the people and the terms. format=md|json|csv (markdown is written to be read or pasted into a chat), lang=sv|en, include= a comma list of statements,patterns,people,terms,status,agenda,deliveries (all of them when left out; agenda and deliveries appear only when the scope has an agenda or deliveries). Your own scopes and documents only; 404 when the scope has no synthesis; 413 with a hint above the size limit. A statement is the extraction’s wording of the recording, not a verbatim quote. An action or a decision carries who owns it and how that is known, see Owners and evidence in a statement; deliveries is a section present only when the scope has deliveries
GET /series/<scope>/deliveries Premium The material made from the scope and attached to its tag, and what became of it: see Deliveries of a series
POST /series/<scope>/deliveries/<source_id> (also PATCH) Premium Record that one of them was delivered or replaced (owner or admin). It remembers; it sends nothing
GET /series/<scope>/readiness Premium What seems missing or wrong in a scope’s material before it runs. Read-only, no model: see Readiness of a series
GET /series/readiness?spec= Premium The same for a scope that is not on the schedule yet (spec as for /series/preview)
GET /series/<scope>/history Premium The scope’s runs, newest first: how the picture changed over time (replaces the automatic insight chains)
GET /series/compare?scope=&scope= Premium Several of your scopes side by side on the same codebook: which pattern they all carry, which belongs to one of them, and where a pattern is in the codebook but under the document floor. scope= two to eight times, kind= a comma list. Read from the stored runs - no model, nothing written, no scope re-run, and each scope carries the time of the run it was read from. A kind is compared only across scopes that share a codebook; one that uses another is named instead of mixed in
GET /series/people Premium People who speak in more than one of your scopes (the same name; not a confirmed identity)
GET /series/preview?spec= Premium Where things stand for a scope now: open commitments, decisions, each person’s report, what blocks, questions, releases, goals, figures, who is involved. Computed without a model, nothing stored, your own documents (entity:<name>|<alt>, person:<name>, term:<word>, tag:<slug>, account; 413 over preview.max_documents)
POST /series Premium Put a scope on the schedule and run it now ({"spec": "tag:<slug>"}; owner or admin), or run it once without following it ({"spec": …, "follow": false}; any member, a few per hour, 429 above)
DELETE /series/<scope> Premium Take it off the schedule (what it learned is kept)
POST /series/<scope>/run Premium Run it now ({"relock": true} after a change of plan or processing boundary; owner or admin). A member refreshes a followed scope or one they asked for
GET /series/<scope>/roles Premium The role groups of a scope and which roles are in them
POST /series/<scope>/roles Premium Change them: {"op": "rename"|"move"|"merge"|"add", ...} (owner or admin)
GET /series/<scope>/codebooks Premium The patterns the scope groups by, per kind, with their history
POST /series/<scope>/codebooks/<kind> Premium Change them: {"op": "rename"|"hide"|"restore"|"merge"|"add"|"fork", ...} (owner or admin)

Deliveries of a series

Material made from a series’ sources (see Material made from your own sources) is listed apart from the series’ own statements, with what became of it.

GET /series/<scope>/deliveries (Premium, kb:read). <scope> is the scope value that GET /series returns (the scope’s slug, for example acme-tag-q4), not the spec. The route has no plan gate; below Premium there is nothing to read, so the answer is empty or 404. It lists the derived sources that the scope’s selection reaches (for a tag scope, the ones carrying the tag), newest first:

{"scope": "acme-tag-q4", "run_id": "...", "input_hash": "...",
 "deliveries": [
   {"id": "DOC_...", "title": "Weekly summary", "label": "weekly summary, v2",
    "state": "delivered", "date": "2026-10-19T09:30:00", "recipient": "the customer's project lead",
    "delivered_by": "anna", "file": "summary.pdf",
    "derived_from": {"scope": "acme-tag-q4", "run_id": "...", "input_hash": "..."},
    "supersedes": [], "stale": false}]}

state is draft (the default for new material), delivered or superseded. date is when it was delivered, else when it was made, as a UTC timestamp. delivered_by is the user who uploaded it or made the latest mark. run_id and input_hash at the top are the scope’s current run: these are the values to put in derived_from when you attach new material. stale is true when derived_from.input_hash differs from the scope’s input now, that is, when the material was built on an older picture than the one the scope has now; it is false when that cannot be told (no derived_from, or a scope too large to compare). deliveries is [] when there is none. A delivery made by a consultant also carries "delivery": {"provider": "...", "assignment": "...", "delivered_at": "2026-10-19T09:30:00", "built_on_run": "...", "link_id": "..."} (provider and assignment are the party and purpose of the link you created; link_id is the link that allowed it; the object is absent for material that did not come from a consultant). Errors carry the code in error: 401, 404 (not found: the scope has no synthesis, or it is not yours), 500 deliveries_failed.

Consultant link. A service credential that acts on your account reads or writes nothing there until you allow it: the owner or an admin of the account creates a link for one tag, a named party and a purpose, with an end date of at most 90 days (POST /account/consultant-links, from a signed-in session) and can withdraw it at any time (DELETE /account/consultant-links/<id>); the next request is refused. Without an active link that covers the tag, a request answers 403 consultant_link_required. A link records the processing the consultant uses (local, sweden, eu or world) so that you can see it; the platform does not check the consultant’s tools against it, which is for the agreement to say.

POST /series/<scope>/deliveries/<source_id>, also PATCH (Premium, kb:write, the account’s owner or an admin). Records what happened to one derived source. It remembers; it sends nothing. Body {"state"?: "draft" | "delivered" | "superseded", "to"?: "free text", "at"?: "2026-10-19T09:30:00Z", "supersedes"?: ["DOC_..."]}, at least one field. at is ISO 8601 in UTC (a trailing Z; send UTC, an offset is dropped, not converted). delivered stamps the time unless at is given; supersedes names derived sources that this one replaces and marks them superseded (at most 50 ids). to is free text, at most 300 characters. The answer is the delivery row as above with "stale": null. Errors have error and a message: 400 bad_request (a bad state or at, supersedes that is not a list of ids, or no field at all), 401, 403 not_allowed, 404 (no synthesis for the scope, or source_id is not a derived source of it), 500 mark_failed.

curl -s -X POST "$API/series/acme-tag-q4/deliveries/$KEY" -H "Authorization: Bearer $DT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"state": "delivered", "to": "the customer'"'"'s project lead"}'

GET /series/<scope>/export?include=deliveries (or no include) adds the same list as a deliveries section; it is present only when the scope has some, so an export without any is unchanged.

Readiness of a series

Before a scope runs, or when its picture looks thin, ask what seems missing or wrong in its material. Nothing is changed, no model is called and nothing is stored.

GET /series/<scope>/readiness for a scope on the schedule (<scope> as for deliveries: the scope value of GET /series), and GET /series/readiness?spec= for one that is not yet (spec is tag:<slug>, account, person:<name> and the other forms of GET /series/preview?spec=) (Premium, kb:read; no plan gate on the route, and below Premium there is nothing to read). Here spec is the scope’s name, not a path value.

{"spec": "myaccount:tag:q4", "ready": true,
 "counts": {"blocks": 0, "warns": 1, "info": 0, "documents": 12, "by_code": {"unnamed_speakers": 1}},
 "info_collapsed": true,
 "findings": [
   {"code": "unnamed_speakers", "level": "warns", "source": "DOC_...",
    "message": "\"Weekly sync\" has 1 speaker(s) nobody named: SPEAKER_01.",
    "fix": "Name the speakers of the recording.", "speakers": ["SPEAKER_01"]}]}

level is blocks, warns or info. ready is false only when something blocks, and only empty_scope does: nothing here stops a run except an empty scope; the person decides. A finding names the document in source or the person in person, and may carry fields of its own; message and fix are English text for a person to read, so build on code. A name_variants finding also carries suggest, {"name": ..., "aliases": [...]}: the spelling with more statements and the other spelling. info_collapsed says that the info findings are meant to be shown folded. A derived source is neither counted nor flagged.

code Level It means
empty_scope blocks No document reaches the scope
not_extracted warns A document has no extraction yet and is left out of the series
thin_document warns A document gave little for its size, compared with your other documents of its kind, or with a typical rate when there are too few. reference_basis says which: account_median or default
extraction_incomplete warns Part of a document could not be read (see extraction_complete under aci-status)
same_document warns Two documents are the same recording and would be counted twice
non_person_in_people warns A name among the people is not a person
unnamed_speakers warns A recording has speakers nobody named
extraction_older_than_speakers warns A document was extracted before its speakers were confirmed, so its owners may be guesses
person_never_spoke info A person has statements about them and none of their own
owners_unresolved info Actions with no owner, or a guessed one
agenda_part_without_recording info A part of the scope’s agenda has no recording
name_variants info Two names look like one person spelt twice

Errors: 400 (spec missing, a list of ids, or a form that is not understood), 401, 404 for /series/<scope>/readiness when the scope is not on the schedule or not yours (the answer’s hint points to the spec form), 500. A stored run carries the same check as counts only, readiness {"ready", "blocks", "warns", "info", "by_code"}, in GET /series/<scope>?detail=full.

Owners and evidence in a statement

An action or a decision in a series statement, and so in the raw export (format=json: a proof object, and in markdown a line in words), carries who is responsible and how that is known. Fields that are empty are left out of proof.

Field Contents
kind The kind of action or decision
owner Who is responsible (for a decision, who decided)
owner_basis How the owner was established: self (the speaker committed themself), volunteered (offered), addressed (asked of a named participant), assigned (named in the quote), hedged (suggested by someone else and not settled) or none (not stated)
owner_tentative true when the owner is a guess the words do not settle
deadline, confidence The due date, if said; how well the statement is supported
evidence_quote The words in the transcript that the statement rests on

owner_basis, owner_tentative and evidence_quote are present only on documents extracted with owner verification; other documents carry kind, owner, deadline and confidence in proof. With verification, an action whose quote cannot be found in the transcript stays without an owner, and a decision whose quote cannot be found is not shown as a decision. The markdown export never prints a bare owner name; it uses words in the language of the export (lang): “owner Anna Berg (offered; quote …)”, “owner uncertain (Anna Berg)” or “no owner”, and an owner nobody has checked reads “owner Anna Berg (not verified)” (in Swedish “ansvarig Anna Berg (ej styrkt)”).

Questions about people (curation)

Deep Thought asks you short questions where it cannot tell by itself, for example whether two names are one person. GET /curate lists them, and you answer through the routes below. Every answer is recorded, can be undone, and changes the data it points at (the account’s people, owners and series), never the transcripts. Nothing is re-extracted. A question is text for a person to read and is written in Swedish (headline, detail). No plan gate: the questions about people are made from extracted people, so an account without analysis has few or none.

GET /curate (kb:read). {"ok": true, "items": [...], "counts": {...}, "total", "clear", "batch", "answers_this_week", ...}. New questions come as a weekly batch; ?all=1 lists every question, including kinds that are not in the weekly batch (not_a_person is one), and ?include_dismissed=1 adds those you put off. An item has id (for example same_person:0123456789abcdef), kind, headline, detail, impact (how many recordings it concerns), evidence (a few passages), answers (the values it accepts) and a payload for its kind. Two kinds are part of this reference:

kind Asks answer
same_person Are these two names one person? Raised from names that look alike, and from the questions a series raises (a lone first name that fits one or more full names) same (optionally target: a person_key from b or alternatives in the item’s payload; the default is b) or different
not_a_person Is this name a person? A role written where a name was, or a name that is only mentioned and never speaks. Always listed with ?all=1; it may not be part of the weekly batch not_a_person (the name is no person), only_mentioned (a person who is only mentioned), a_person (it is, stop asking)

Other kinds of question (voices, tags, owners, threads, tasks and more) are listed in the same answer, are answered through other routes or are not part of this reference, and may change.

POST /curate/<item>/answer (kb:write). Body {"answer": "...", "target"?: "...", "note"?: "..."}; note is free text of at most 500 characters. The answer is {"ok": true, "item", "kind", "answer", "answer_id", "status", "recordings", "rows", "queued_docs", "superseded"}. status is applied, queued, recorded (an answer that only records, such as different), unchanged (the same answer again) or refused. recordings and rows say how much was changed, queued_docs how many recordings are rebuilt in the background, and superseded is the id of the answer this one replaced, or null (answering again replaces; no DELETE is needed first). Errors: 400 (the body is not valid; invalid answer with the allowed values; unknown field for a field the kind does not take; or a kind that has its own route, named in use), 404 item not found (it is no longer asked), 409 refused with a reason.

curl -s -X POST "$API/curate/same_person:0123456789abcdef/answer" -H "Authorization: Bearer $DT_TOKEN" \
  -H "Content-Type: application/json" -d '{"answer": "same"}'

For not_a_person the name goes and the words stay: a statement keeps its text, only the attribution is taken away, so an action whose only owner was that name becomes an action with no owner. A series that hides a name lists it under people.hidden[].item in GET /series/<scope> (the default summary, without kind; present only when a name is hidden, with the name and the mode); undo it with DELETE /curate/<item>/answer.

DELETE /curate/<item>/answer (kb:write) undoes the live answer and puts back what it changed. It answers {"ok", "item", "kind", "answer", "answer_id", "status", "recordings", "rows", "queued_docs", "undone": true} (queued_docs is a count); errors are 400 for a kind with its own route, 404 no live answer and 409 refused.

GET /curate/answers (kb:read; ?kind=, ?since= an ISO date or time, ?limit= default 50, at most 500) lists the account’s answers, newest first, as {"ok", "answers": [...], "total"}, where total is the number of rows returned. Undone and replaced answers are listed too, with live: false. A row has answer_id (also _id), item_id, kind, key, answer, value (the extra fields, such as target), note, item (a snapshot of the question), by, source, at, applied (status, recordings, rows, queued_docs), live, superseded_by, undone_at, undone_by, config_version and batch. A bad since or limit is 400.

POST /curate/<item>/dismiss (kb:write; body {"days"?: n}) puts a question off and answers {"ok", "item", "until"}; days below 1 counts as 1 and a value that is not a number is 400 days must be a number. DELETE /curate/<item>/dismiss brings it back and answers {"ok", "item", "restored"}.

Actions

Endpoint Plan Does
GET /actions Premium Your actions. Filters status (pending, completed, cancelled), priority, limit (at most 500)
GET /actions/<action_id> Premium One action
POST /actions/create Premium, kb:write Create an action. Body {"description": "...", "priority": "high", "due_date": "2026-10-15", "assigned_to": "..."}; only description is required
PUT /actions/<action_id> Premium, kb:write Update one, for example {"status": "completed"}

Below Premium, GET /actions still returns existing actions with {"plan": {"available": false}}, and creating one is refused.

Account

Endpoint Plan Returns
GET /info Free The API, your account, and the upload limit in force
GET /auth/user-limits Free The largest upload your account can make
GET /public/plans, GET /public/features No token needed What each plan includes

Meeting notetaker

Premium and Enterprise. The notetaker joins a Zoom, Google Meet or Teams meeting, records it, and the recording becomes a source like any upload. Connecting a calendar is done in the Web App (Settings); the API reads the calendars and the meetings.

POST /recall/bots (kb:write). Send the notetaker to a meeting now.

curl -s -X POST "$API/recall/bots" -H "Authorization: Bearer $DT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"meeting_url": "https://meet.google.com/abc-defg-hij"}'

meeting_url is the full meeting link. Answers 201 {"ok": true, "bot": {...}}; the notetaker joins within seconds. 400 meeting_url_required, 402 plan_required (or cap_reached when the month’s meeting hours are used), 403 notetaker_not_accepted, 502 create_bot_failed.

The notetaker records through Recall.ai, which stores the recording in the EU and processes it in the USA. Unless the account’s processing boundary is the world, the account’s owner or an admin accepts this once in the Web App (Settings) before a new notetaker is sent; until then POST /recall/bots answers 403 {"error": "notetaker_not_accepted", "message": "..."} and calendar meetings show decision_reason notetaker_not_accepted. Notetakers already scheduled are kept.

Endpoint Returns
GET /recall/bots Your notetakers and their status. ?limit= at most 200. A finished one names its recording (cache_key)
GET /recall/bots/<bot_id> One notetaker
DELETE /recall/bots/<bot_id> Removes one that has not joined yet, or takes it out of the meeting. The recording is kept
GET /recall/upcoming Upcoming calendar meetings and whether the notetaker will join each: decision, decision_reason. ?days= (default 14, at most 28). Read-only for integrations
GET /recall/calendars Your connected calendars: provider, status (active, or disconnected, which needs reconnecting in the Web App)

MCP

AI assistants (Claude and other MCP clients) connect to the same knowledge base through MCP.

Server https://mcp.deep-thought.cloud/mcp (Streamable HTTP)
Authentication OAuth 2.1 with dynamic client registration: the client opens a browser, you sign in and approve. The client then holds a token revocable in the Web App under Settings, Devices
Scopes kb:read (default), kb:write (opt in), graph:read (opt in)
Plan Premium
Tool Scope Does
ping none Check the connection and that the token is valid
ask kb:read A question in plain language, answered from your sources, with citations
search kb:read Semantic search across your sources, optionally narrowed by tag
list_sources kb:read Your sources, most recent first, optionally by tag, and with or without a note (has_note, note_contains)
get_source_extraction kb:read One source, structured, no transcript. fields: artifacts (the default: its decisions, actions with who owns them, quotes, open questions, who spoke, title and date), entities (who and what it mentions) or full (everything, including what it is)
get_source_transcript kb:read One source’s full transcript, with speaker names where they are known
list_speakers kb:read The people your account knows by voice
list_tags kb:read The tags you have set on your sources, 50 at a time (limit, offset), optionally those whose name contains a word (query)
list_entities kb:read The people, organisations, projects and topics across your sources
get_entity kb:read One of them: name, aliases, type and how often it appears
get_entity_related kb:read What it is connected to, and the sources it appears in
get_entity_neighborhood graph:read Its connections one to three steps out
graph_search graph:read Find people, organisations and topics by name
list_verticals kb:read The verticals that have grown from your tags, feeds, people and projects (scope_type, e.g. project)
get_vertical_summary kb:read One vertical’s current picture across all its sources
list_syntheses kb:read The scopes that have a synthesis: the whole account, a series (podcast feed, meeting series) or a tag
prepare kb:read Where things stand for one thing now (a project, a person, a word, a tag; spec): commitments, decisions, reports, blockers, questions, releases, goals, figures, who is involved; computed, no model
get_synthesis kb:read What a series of documents says together: recurring patterns with verified insights and verbatim evidence, contradictions over time, rising and fading terms, who said what first (detail: summary or full)
list_insights kb:read Insights you asked for, and template results (the automatic chains are retired: use get_synthesis)
get_insight kb:read One insight
create_action kb:write Create an action item
set_source_note kb:write Write the note on a source, e.g. “processed by → ”. Shown as agent_note by list_sources, get_source_extraction and get_source_transcript

create_action and set_source_note are the two tools that write; both need a connection approved with kb:write.

An answer over 25,000 characters is cut between two items (never inside one) and says so: truncated: true, returned, total and a cursor; the same tool called with cursor returns the next part. A cursor lasts 15 minutes. A long text is cut at a line break; a single item that is larger than 25,000 characters on its own arrives whole, in a part of its own.

Endpoint summary

Method Path Plan Scope
POST /sources/upload (also /sources) Free (audio, video); Premium (text, documents, images) kb:write
GET /sources/tasks/<task_id> Free kb:read
GET /sources/<source_id>/status Free kb:read
GET /sources Free kb:read
GET /sources/<source_id> Free (extraction fields Premium) kb:read
GET /sources/<source_id>/info Free kb:read
GET /sources/<source_id>/export Free kb:read
GET /sources/<source_id>/processing Free kb:read
GET /sources/<source_id>/aci-status Free (nothing to wait for below Premium) kb:read
PATCH /sources/<source_id>/material No plan gate; any source of yours can be marked, including a recording kb:write
POST, DELETE /sources/<source_id>/tags Free kb:write
GET /sources/<source_id>/note Free kb:read
PUT /sources/<source_id>/note Free (through MCP: Premium) kb:write
POST /search Premium kb:read
POST /chat Premium kb:write
GET /tags, /tags/definitions Free kb:read
GET /speakers/persons Free kb:read
GET /transcriptions/<source_id>/speakers Free kb:read
GET /entities, /entities/<entity_id>, /entities/<entity_id>/related Premium kb:read
GET /insights, /insights/<insight_id> Premium kb:read
GET /contexts, /contexts/<scope_type>, /contexts/<scope_type>/<scope_key> Premium kb:read
GET /contexts/<scope_type>/<scope_key>/synthesis, /series, /series/preview, /series/readiness, /series/people, /series/<scope>, /series/<scope>/export, /series/<scope>/history, /series/<scope>/readiness, /series/<scope>/deliveries, /series/<scope>/roles, /series/<scope>/codebooks Premium kb:read
POST, DELETE /series, /series/<scope>, /series/<scope>/run, /series/<scope>/roles, /series/<scope>/codebooks/<kind> Premium kb:write
POST, PATCH /series/<scope>/deliveries/<source_id> Premium kb:write
GET /curate, /curate/answers No plan gate; the questions come from Premium analysis kb:read
POST, DELETE /curate/<item>/answer, /curate/<item>/dismiss No plan gate kb:write
GET /actions, /actions/<action_id> Premium kb:read
POST /actions/create Premium kb:write
PUT /actions/<action_id> Premium kb:write
POST /recall/bots Premium kb:write
GET /recall/bots, /recall/bots/<bot_id> Premium kb:read
DELETE /recall/bots/<bot_id> Premium kb:write
GET /recall/upcoming, /recall/calendars Premium kb:read
GET /info, /auth/user-limits Free kb:read
GET /public/plans, /public/features None (no token) none

Questions: support@deep-thought.cloud.