REST APIAPI Overview

API Overview

REST API for contacts, chats, files, uploads, meetings, notes, your own email, records, sending messages and email, and AI queries at api.pantheon.run.

The Pantheon API gives programmatic access to your workspace's contacts and the notes on them, chats and messages, the text inside your files, file uploads, your meetings and notes, your own Gmail and its attachments, your records (contacts, companies, deals and custom tables), sending messages from your own accounts and email from your workspace's domain, and a general-purpose AI model.

Base URL

https://api.pantheon.run

Authentication

All endpoints require a Bearer token:

Authorization: Bearer pk_live_<32chars>

See Authentication for key management, scopes, and error handling.

Machine-readable spec

The full /v1/* surface is published as an OpenAPI specification: point your codegen, SDK generator, or AI agent at it directly. It is generated from the live API route schemas, so it never drifts from the running service. Every operation lists the error statuses it can return, and the operations that take an Idempotency-Key declare it.

Endpoints

MethodPathNeedsDescription
GET/v1/contacts/{id}/notesread + contacts:readYour short notes on a contact, newest first
POST/v1/contacts/{id}/notescontacts:writeAdd a note to a contact (add-only)
GET/v1/chatsread + contacts:readList your chats, most recently active first
GET/v1/chats/{contactId}/messagesread + contacts:readOne contact's messages across their channels
GET/v1/chats/searchread + contacts:readSearch your messages, across chats or in one contact's
GET/v1/files/searchread + contacts:readSearch the text inside files from your chats; each result cites the file, page or time, and the message and contact
GET/v1/files/{id}/textread + contacts:readRead one of your files' text, a page at a time under a token budget; priced by tokens returned
GET/v1/meetingsnotes:readList your meetings, newest first; no transcript
GET/v1/meetings/searchnotes:readFind meetings by words, each with the passages that matched
GET/v1/meetings/{id}notes:readOne meeting with its summary; one transcript page with include=transcript
GET/v1/notesnotes:readList or search your notes, most recently edited first
GET/v1/notes/foldersnotes:readList your note folders
GET/v1/notes/{id}notes:readOne note in full; its recording's transcript with include=transcript
GET/v1/usageAny valid keyRead this workspace's included usage, reset time and visible credits; free
POST/v1/messages/sendsendSend a text, files you uploaded, or both to one of your contacts or chats; 10¢ an automated send
GET/v1/messages/sends/{id}sendThe status of one of your WhatsApp or iMessage sends
GET/v1/email/threadsread + contacts:readSearch your own Gmail threads, or list the newest
GET/v1/email/threads/{id}read + contacts:readOne of your threads, oldest message first, each message with its attachments
GET/v1/email/messages/{messageId}/files/{fileId}read + contacts:readOne attachment of one of your messages: a page of its text, or a short-lived link to the original
POST/v1/email/sendsendSend an email from the workspace's own domain, as you, your agent address or a shared address you were given; 10¢ an automated send
POST/v1/uploadssendStart a file upload: answers a one-time link to PUT the bytes to
POST/v1/uploads/{id}/finishsendFinish an upload: checks and stores the file and answers its id; free
GET/v1/r/{hash}read + contacts:readRedirect (302) to a short-lived signed URL for a file, by content hash
GET/v1/records/{object}/fields<table>:readDescribe a record table
GET/v1/records/{object}<table>:readList records, one keyset page
GET/v1/records/{object}/{id}<table>:readGet one record
GET/v1/records/{object}/{id}/backlinks<table>:readLinked-record fields that point at a record
POST/v1/records/{object}<table>:writeCreate a record
PATCH/v1/records/{object}/{id}<table>:writeUpdate a record's fields
DELETE/v1/records/{object}/{id}<table>:writeSoft-delete a record
POST/v1/records/{object}/{id}/restore<table>:writeRestore a soft-deleted record
POST/v1/records/{object}/bulk-upsert/preview<table>:readThe plan a bulk upsert would run, without writing
POST/v1/records/{object}/bulk-upsert<table>:writeCreate or match up to 500 records
POST/v1/records/{object}/bulk-upsert/stage<table>:writeImport rows, holding the ones that need a decision for review
GET/v1/deals/{id}/contactsdeals:readList the people and companies on a deal, each with a role
POST/v1/deals/{id}/contactsdeals:writeLink a person or company to a deal, or change their role
DELETE/v1/deals/{id}/contacts/{party_id}deals:writeRemove a person or company from a deal
POST/v1/ai/queryaiSend a single prompt to a general-purpose model (no workspace context)

<table> is contacts, companies or deals; a custom table needs custom:read / custom:write. See Records.

Versioning

The API is v1 and changes in place only by adding: a new endpoint, a new optional parameter or field, a new response. Nothing a client relies on is removed or renamed without a deprecation notice first: the Deprecation and Sunset headers on every response from the deprecated endpoint, and an entry in the changelog, at least 180 days before it goes (a shorter window only by agreement with the integrators it affects). An endpoint with no successful call on record has no client relying on it and can be removed at once; its changelog entry says so. The OpenAPI document's info.version names the contract; the changelog lists what each version added.

Health check

GET /health is unauthenticated. Returns { "status": "ok" } (200) or { "status": "error" } (503).