TRUEDIALDevelopers

TrueDial API

Your calls, contacts, appointments and agents, from your own systems.

Get an API key

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.

Try your key
curl https://truedial.ai/api/v1/me \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"
Node.js
const res = await fetch('https://truedial.ai/api/v1/calls?limit=10', {
  headers: { Authorization: `Bearer ${process.env.TRUEDIAL_API_KEY}` },
});
const { data, has_more, next_cursor } = await res.json();

Authentication

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
ScopeAllows
calls:readRead calls
transcripts:readRead transcripts and summaries
contacts:readRead contacts
contacts:writeAdd contacts
appointments:readRead appointments
agents:readRead agents
webhooks:manageManage 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
StatusTypeMeans
400invalid_requestA parameter or the body is not valid.
401authentication_errorThe key is missing, malformed or revoked.
403permission_errorThe key does not have the scope this needs.
404not_foundNo such resource for your business.
409conflictIt already exists, such as a contact with that number.
429rate_limitedToo many requests: wait for Retry-After seconds.
500server_errorSomething 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
EventSent when
call.completedSent 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.bookedSent 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.createdSent 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).
pingSent 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.

call.completed
{
  "id": "evt_9b1f6c2e-4d3a-4b5c-8e7f-0a1b2c3d4e5f",
  "type": "call.completed",
  "created_at": "2026-11-06T21:40:12.000Z",
  "api_version": "v1",
  "data": {
    "object": {
      "object": "call",
      "id": "0b6f8a52-3c1e-4c38-9a7e-5f2d1c9e7a41",
      "direction": "inbound",
      "status": "completed",
      "from": "+14155550123",
      "to": "+14155550100",
      "started_at": "2026-11-05T21:40:12.000Z",
      "ended_at": "2026-11-05T21:43:05.000Z",
      "duration_seconds": 173,
      "agent": {
        "id": "7d1e2f3a-0000-4000-8000-000000000001",
        "name": "Ava"
      },
      "outcome": "booked"
    }
  }
}

Headers

Webhook headers
HeaderMeans
X-TrueDial-EventThe event’s type, as in the body.
X-TrueDial-DeliveryThis delivery’s id, the same on every retry: dedupe on it.
X-TrueDial-TimestampWhen this attempt was signed, in Unix seconds. Refuse one more than 5 minutes off.
X-TrueDial-Signaturesha256= 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.

Returns

object"me"required
organizationobjectrequired
api_keyobjectrequired
Request
curl "https://truedial.ai/api/v1/me" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"
Response · 200
{
  "object": "me",
  "organization": {
    "id": "3f1c…",
    "name": "Reyes Heating & Air",
    "timezone": "America/Los_Angeles"
  },
  "api_key": {
    "id": "9a2b…",
    "name": "CRM sync",
    "prefix": "td_live_Xk3q",
    "scopes": [
      "calls:read"
    ]
  }
}

Calls

Every call your agents answered or placed.

List calls

GET/v1/callscalls:read

Calls, newest first.

Parameters

limitinteger
How many to return, 1 to 100. Default 25.
starting_afterstring
The next_cursor of the previous page.
directionenum
Only inbound or only outbound calls.inboundoutbound
created_afterstring · date-time
Only calls that started at or after this time (ISO 8601).

Returns

object"list"required
dataarray of Callrequired
has_morebooleanrequired
Whether another page follows this one.
next_cursorstring, or nullrequired
Pass as starting_after for the next page.
Request
curl "https://truedial.ai/api/v1/calls?limit=10" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "object": "call",
      "id": "0b6f8a52-3c1e-4c38-9a7e-5f2d1c9e7a41",
      "direction": "inbound",
      "status": "completed",
      "from": "+14155550123",
      "to": "+14155550100",
      "started_at": "2026-11-05T21:40:12.000Z",
      "ended_at": "2026-11-05T21:43:05.000Z",
      "duration_seconds": 173,
      "agent": {
        "id": "7d1e2f3a-0000-4000-8000-000000000001",
        "name": "Ava"
      },
      "outcome": "booked"
    }
  ],
  "has_more": true,
  "next_cursor": "WyIyMDI2…"
}

Get a call

GET/v1/calls/{id}calls:read

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
fromstringrequired
E.164.
tostringrequired
E.164.
started_atstring · date-timerequired
ended_atstring · date-time, or null
duration_secondsinteger, or null
agentobject, or null
outcomeenum, or null
bookedqualifiednot_qualifiedtransferredno_answervoicemailfailedother
summarystring, or null
transcriptarray of object, or null
transcript_statusenum
missing_scope: the key lacks transcripts:read. not_kept: past retention or under a hold. none: the call has no transcript.availablemissing_scopenot_keptnone
Request
curl "https://truedial.ai/api/v1/calls/0b6f8a52-3c1e-4c38-9a7e-5f2d1c9e7a41" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"
Response · 200
{
  "object": "call",
  "id": "0b6f8a52-3c1e-4c38-9a7e-5f2d1c9e7a41",
  "direction": "inbound",
  "status": "completed",
  "from": "+14155550123",
  "to": "+14155550100",
  "started_at": "2026-11-05T21:40:12.000Z",
  "ended_at": "2026-11-05T21:43:05.000Z",
  "duration_seconds": 173,
  "agent": {
    "id": "7d1e2f3a-0000-4000-8000-000000000001",
    "name": "Ava"
  },
  "outcome": "booked",
  "summary": "Furnace out overnight; booked a technician for 10:00 tomorrow.",
  "transcript": [
    {
      "speaker": "agent",
      "text": "Good evening, Reyes Heating & Air, this is Ava.",
      "start_ms": 0,
      "end_ms": 2600
    },
    {
      "speaker": "caller",
      "text": "Hi, our heat just went out.",
      "start_ms": 2900,
      "end_ms": 4700
    }
  ],
  "transcript_status": "available"
}

Contacts

Your contact book.

List contacts

GET/v1/contactscontacts:read

Contacts, newest first.

Parameters

limitinteger
How many to return, 1 to 100. Default 25.
starting_afterstring
The next_cursor of the previous page.

Returns

object"list"required
dataarray of Contactrequired
has_morebooleanrequired
Whether another page follows this one.
next_cursorstring, or nullrequired
Pass as starting_after for the next page.
Request
curl "https://truedial.ai/api/v1/contacts?limit=10" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"

Add a contact

POST/v1/contactscontacts:write

Adds a contact. A phone number appears once in a contact book: adding one that is already there answers 409 with the existing contact’s id.

Body

phonestringrequired
E.164 preferred; a US number without +1 is read as one.
namestring
emailstring · email
companystring

Returns

object"contact"required
idstring · uuidrequired
namestring, or null
phonestringrequired
E.164.
emailstring, or null
companystring, or null
created_atstring · date-timerequired
Request
curl -X POST "https://truedial.ai/api/v1/contacts" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+14155550123","name":"Jordan Lee","email":"jordan@example.com"}'
Response · 201
{
  "object": "contact",
  "id": "c2a1…",
  "name": "Jordan Lee",
  "phone": "+14155550123",
  "email": "jordan@example.com",
  "company": null,
  "created_at": "2026-11-06T18:02:00.000Z"
}

Appointments

Your calendar, the bookings TrueDial made included.

List appointments

GET/v1/appointmentsappointments:read

Appointments starting in a window, soonest first: from now to 30 days ahead unless you say. A window spans at most 92 days.

Parameters

limitinteger
How many to return, 1 to 100. Default 25.
starting_afterstring
The next_cursor of the previous page.
starts_afterstring · date-time
Window start (ISO 8601). Default now.
starts_beforestring · date-time
Window end (ISO 8601). Default 30 days after the start.

Returns

object"list"required
dataarray of Appointmentrequired
has_morebooleanrequired
Whether another page follows this one.
next_cursorstring, or nullrequired
Pass as starting_after for the next page.
Request
curl "https://truedial.ai/api/v1/appointments?limit=10" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"

Agents

The AI agents answering your lines.

List agents

GET/v1/agentsagents:read

The AI agents on your account.

Returns

object"list"required
dataarray of Agentrequired
has_morebooleanrequired
Whether another page follows this one.
next_cursorstring, or nullrequired
Pass as starting_after for the next page.
Request
curl "https://truedial.ai/api/v1/agents" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"

Assistants

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.

Request
curl -X POST "https://truedial.ai/api/v1/mcp" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Webhook endpoints

Where TrueDial sends its events: your own https URLs, signed.

List webhook endpoints

GET/v1/webhook_endpointswebhooks:manage

Your endpoints, newest first: at most 10, so always one page. Never a signing secret.

Returns

object"list"required
dataarray of WebhookEndpointrequired
has_morebooleanrequired
Whether another page follows this one.
next_cursorstring, or nullrequired
Pass as starting_after for the next page.
Request
curl "https://truedial.ai/api/v1/webhook_endpoints" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "object": "webhook_endpoint",
      "id": "4d3c2b1a-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
      "url": "https://crm.example.com/webhooks/truedial",
      "description": "CRM sync",
      "events": [
        "call.completed",
        "appointment.booked"
      ],
      "enabled": true,
      "created_at": "2026-11-06T18:30:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Add a webhook endpoint

POST/v1/webhook_endpointswebhooks:manage

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.
Request
curl -X POST "https://truedial.ai/api/v1/webhook_endpoints" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://crm.example.com/webhooks/truedial","events":["call.completed","appointment.booked"],"description":"CRM sync"}'
Response · 201
{
  "object": "webhook_endpoint",
  "id": "4d3c2b1a-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
  "url": "https://crm.example.com/webhooks/truedial",
  "description": "CRM sync",
  "events": [
    "call.completed",
    "appointment.booked"
  ],
  "enabled": true,
  "created_at": "2026-11-06T18:30:00.000Z",
  "secret": "whsec_Zp3Wq…"
}

Delete a webhook endpoint

DELETE/v1/webhook_endpoints/{id}webhooks:manage

Stops sending to the endpoint. Its secret stops meaning anything.

Parameters

idstring · uuidrequired

Returns

object"webhook_endpoint"required
idstring · uuidrequired
deletedtruerequired
Request
curl -X DELETE "https://truedial.ai/api/v1/webhook_endpoints/4d3c2b1a-9e8f-4a7b-8c6d-5e4f3a2b1c0d" \
  -H "Authorization: Bearer $TRUEDIAL_API_KEY"
Response · 200
{
  "object": "webhook_endpoint",
  "id": "4d3c2b1a-9e8f-4a7b-8c6d-5e4f3a2b1c0d",
  "deleted": true
}

Send a test event

POST/v1/webhook_endpoints/{id}/testwebhooks:manage

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"
Response · 202
{
  "object": "webhook_delivery",
  "id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
  "type": "ping",
  "status": "pending"
}