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.runAuthentication
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
| Method | Path | Needs | Description |
|---|---|---|---|
GET | /v1/contacts/{id}/notes | read + contacts:read | Your short notes on a contact, newest first |
POST | /v1/contacts/{id}/notes | contacts:write | Add a note to a contact (add-only) |
GET | /v1/chats | read + contacts:read | List your chats, most recently active first |
GET | /v1/chats/{contactId}/messages | read + contacts:read | One contact's messages across their channels |
GET | /v1/chats/search | read + contacts:read | Search your messages, across chats or in one contact's |
GET | /v1/files/search | read + contacts:read | Search the text inside files from your chats; each result cites the file, page or time, and the message and contact |
GET | /v1/files/{id}/text | read + contacts:read | Read one of your files' text, a page at a time under a token budget; priced by tokens returned |
GET | /v1/meetings | notes:read | List your meetings, newest first; no transcript |
GET | /v1/meetings/search | notes:read | Find meetings by words, each with the passages that matched |
GET | /v1/meetings/{id} | notes:read | One meeting with its summary; one transcript page with include=transcript |
GET | /v1/notes | notes:read | List or search your notes, most recently edited first |
GET | /v1/notes/folders | notes:read | List your note folders |
GET | /v1/notes/{id} | notes:read | One note in full; its recording's transcript with include=transcript |
GET | /v1/usage | Any valid key | Read this workspace's included usage, reset time and visible credits; free |
POST | /v1/messages/send | send | Send a text, files you uploaded, or both to one of your contacts or chats; 10¢ an automated send |
GET | /v1/messages/sends/{id} | send | The status of one of your WhatsApp or iMessage sends |
GET | /v1/email/threads | read + contacts:read | Search your own Gmail threads, or list the newest |
GET | /v1/email/threads/{id} | read + contacts:read | One of your threads, oldest message first, each message with its attachments |
GET | /v1/email/messages/{messageId}/files/{fileId} | read + contacts:read | One attachment of one of your messages: a page of its text, or a short-lived link to the original |
POST | /v1/email/send | send | Send 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/uploads | send | Start a file upload: answers a one-time link to PUT the bytes to |
POST | /v1/uploads/{id}/finish | send | Finish an upload: checks and stores the file and answers its id; free |
GET | /v1/r/{hash} | read + contacts:read | Redirect (302) to a short-lived signed URL for a file, by content hash |
GET | /v1/records/{object}/fields | <table>:read | Describe a record table |
GET | /v1/records/{object} | <table>:read | List records, one keyset page |
GET | /v1/records/{object}/{id} | <table>:read | Get one record |
GET | /v1/records/{object}/{id}/backlinks | <table>:read | Linked-record fields that point at a record |
POST | /v1/records/{object} | <table>:write | Create a record |
PATCH | /v1/records/{object}/{id} | <table>:write | Update a record's fields |
DELETE | /v1/records/{object}/{id} | <table>:write | Soft-delete a record |
POST | /v1/records/{object}/{id}/restore | <table>:write | Restore a soft-deleted record |
POST | /v1/records/{object}/bulk-upsert/preview | <table>:read | The plan a bulk upsert would run, without writing |
POST | /v1/records/{object}/bulk-upsert | <table>:write | Create or match up to 500 records |
POST | /v1/records/{object}/bulk-upsert/stage | <table>:write | Import rows, holding the ones that need a decision for review |
GET | /v1/deals/{id}/contacts | deals:read | List the people and companies on a deal, each with a role |
POST | /v1/deals/{id}/contacts | deals:write | Link a person or company to a deal, or change their role |
DELETE | /v1/deals/{id}/contacts/{party_id} | deals:write | Remove a person or company from a deal |
POST | /v1/ai/query | ai | Send 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).
