The TrueDial API lets your systems read every call TrueDial answers or places for your business, with its outcome and transcript, keep your contact book in step, and see the appointments TrueDial books. Requests are JSON over HTTPS and authenticated with an API key from Integrations → Developers.
Every request goes to https://truedial.ai/api, over HTTPS, with your key in the Authorization header. Answers are JSON, times are ISO 8601 in UTC, and phone numbers are E.164.
Make a key in Integrations → Developers, choose what it may do, and keep it on your server: it is shown once, and TrueDial keeps only a fingerprint of it. Send it as Authorization: Bearer td_live_…. Revoke a key there and it stops working at once. A key can never do more than the person who made it.
Scopes
Scope
Allows
calls:read
Read calls
transcripts:read
Read transcripts and summaries
contacts:read
Read contacts
contacts:write
Add contacts
appointments:read
Read appointments
agents:read
Read agents
webhooks:manage
Manage webhook endpoints, sent the events the key can read
Errors
A request that fails answers with an honest status and one shape: a type you can branch on, a stable code, a message for people, and the param at fault when there is one. Every answer carries an X-Request-Id; quote it to us and we can find the request.
Error
{
"error": {
"type": "invalid_request",
"code": "invalid_parameter",
"message": "limit must be a whole number from 1 to 100.",
"param": "limit"
}
}
Status codes
Status
Type
Means
400
invalid_request
A parameter or the body is not valid.
401
authentication_error
The key is missing, malformed or revoked.
403
permission_error
The key does not have the scope this needs.
404
not_found
No such resource for your business.
409
conflict
It already exists, such as a contact with that number.
429
rate_limited
Too many requests: wait for Retry-After seconds.
500
server_error
Something went wrong on our side.
Pagination
Lists come a page at a time: limit sets the size (default 25, at most 100), and while has_more is true, pass next_cursor back as starting_after for the next page. Cursors hold their place even as new calls arrive.
Rate limits
Each key may make 600 requests a minute. Past that, the API answers 429 with a Retry-After header saying how many seconds to wait.
Webhooks
TrueDial can tell your systems the moment something happens: it POSTs the event, signed, to an https URL of yours. Add an endpoint in Integrations → Developers, or with the API below, choose its events, and keep the signing secret it shows you once. A business may have 10 endpoints. An endpoint is sent only what its maker may read: with a key, call.completed needs calls:read, appointment.booked needs appointments:read and contact.created needs contacts:read, beside webhooks:manage.
Events
Webhook events
Event
Sent when
call.completed
Sent when a call has ended, however it ended: answered and finished, failed, not answered or busy, refused by the carrier, or stopped by TrueDial staff. The call is as GET /v1/calls lists it; its status and outcome say how it ended. No transcript: fetch GET /v1/calls/{id} with a key that has transcripts:read.
appointment.booked
Sent when an appointment is booked in TrueDial: by your AI agent on a call, in the calendar, or on your booking page, with the appointment as GET /v1/appointments returns it. A booking with several of your team is one event. A booking your agent makes in a connected calendar (Google, Microsoft 365 or another) lives there, not in TrueDial, so it sends no event.
contact.created
Sent when a contact is added: through the API, an import, a booking, or a text saying STOP from a number you had not filed (kept so no one texts it again).
ping
Sent when you choose Send test, in Integrations → Developers or through the API. Its object is { "object": "ping" }.
The envelope
Every delivery’s body is one event: its id, the same for every endpoint it goes to; its type; when it happened, created_at; the api_version; and in data.object what it is about, exactly as the API returns it.
This delivery’s id, the same on every retry: dedupe on it.
X-TrueDial-Timestamp
When this attempt was signed, in Unix seconds. Refuse one more than 5 minutes off.
X-TrueDial-Signature
sha256= and the hex HMAC-SHA256 of <timestamp>.<raw body>, keyed with the endpoint’s signing secret.
Verifying a delivery
Check every delivery before you trust it: the HMAC-SHA256 of <timestamp>.<raw body>, keyed with your endpoint’s signing secret, must equal X-TrueDial-Signature, compared in constant time, and the timestamp must be within 5 minutes. Sign the body exactly as it arrived: with Express, read it with express.raw({ type: 'application/json' }); with the Fetch API, await request.text() and Object.fromEntries(request.headers).
Verify in Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
/**
* Whether a request came from TrueDial: signed with your endpoint's secret,
* less than 5 minutes ago. Pass the body exactly as it arrived, before any
* JSON parsing, and the request's headers (lower-case names, as Node gives them).
*/
export function verifyTrueDialWebhook(rawBody, headers, secret) {
const timestamp = headers['x-truedial-timestamp'];
const signature = headers['x-truedial-signature'];
if (!timestamp || !signature) return false;
const age = Math.abs(Date.now() / 1000 - Number(timestamp));
if (!Number.isFinite(age) || age > 300) return false;
const expected =
'sha256=' + createHmac('sha256', secret).update(timestamp + '.' + rawBody).digest('hex');
const a = Buffer.from(signature);
const b = Buffer.from(expected);
return a.length === b.length && timingSafeEqual(a, b);
}
Answering, retries and duplicates
Answer with any 2xx within 10 seconds, and do slow work after you answer. Anything else, a redirect, an error or no answer in time, is tried again: up to 6 attempts in all, at once and then 1, 2, 4, 8 and 16 minutes after each failure.
A retry carries the same X-TrueDial-Delivery: if you have already handled it, answer 2xx and do nothing. Events can arrive out of order; created_at says when each happened. Send test, in Settings or through the API, sends a ping, signed like any event.
Account
The key and the business it belongs to.
Check a key
GET/v1/meany key
The business the key belongs to, and the key’s own name and scopes. Any valid key may call it: the quickest test that a key works.
One call. With the transcripts:read scope it carries its summary and transcript, unless the call is past your retention period or under a hold: transcript_status says which.
Parameters
idstring · uuidrequired
Returns
object"call"required
idstring · uuidrequired
directionenumrequired
inboundoutbound
statusenumrequired
active while the call is in progress; completed once it has ended normally.createdringingconnectedinitializing_aiactivetransferringcompletingcompletedfailedterminated
missing_scope: the key lacks transcripts:read. not_kept: past retention or under a hold. none: the call has no transcript.availablemissing_scopenot_keptnone
TrueDial as a connector for Claude and other AI assistants, over the Model Context Protocol.
Model Context Protocol server
POST/v1/mcpany key
Connect Claude, or any assistant that speaks the Model Context Protocol, to your TrueDial account. Point the assistant at this URL with your API key as a Bearer token. It can then read your calls, transcripts, contacts, appointments and agents through six read-only tools (whoami, list_calls, get_call, list_contacts, list_appointments, list_agents), each limited to the scopes your key holds. The body is one JSON-RPC 2.0 message; the answer is JSON. Nothing here places a call or changes anything.
Adds an endpoint: a public https URL that TrueDial will POST each event to. The answer carries its signing secret, the only time it is ever shown: keep it to verify deliveries. A business may have 10. An endpoint is sent only what the key may read: call.completed needs calls:read, appointment.booked needs appointments:read, contact.created needs contacts:read, and no events (every event) needs all three.
Body
urlstring · urirequired
A public https URL of yours.
eventsarray of enum
The events to send it. Leave out, or send none, for every event.call.completedappointment.bookedcontact.created
descriptionstring
Returns
object"webhook_endpoint"required
idstring · uuidrequired
urlstring · urirequired
descriptionstring, or null
eventsarray of enumrequired
The events it is sent. Empty: every event, the ones added later included.call.completedappointment.bookedcontact.created
enabledbooleanrequired
created_atstring · date-timerequired
secretstringrequired
The signing secret, whsec_…. Shown in this answer only: keep it to verify deliveries.
Queues a ping to the endpoint, signed like every event, to check your receiver and its signature check. The answer’s id is the X-TrueDial-Delivery it arrives with.
Parameters
idstring · uuidrequired
Returns
object"webhook_delivery"required
idstring · uuidrequired
The delivery’s id: the X-TrueDial-Delivery header it arrives with.
type"ping"required
status"pending"required
Request
curl -X POST "https://truedial.ai/api/v1/webhook_endpoints/4d3c2b1a-9e8f-4a7b-8c6d-5e4f3a2b1c0d/test" \
-H "Authorization: Bearer $TRUEDIAL_API_KEY"