Getting started
- In the Atendivo portal, go to Settings → API and webhooks (owner or admin).
- Create a key and choose its permissions. Copy it: it is shown only once.
- Call the API from your server. Never put the key in a browser or a mobile app.
curl https://portal.atendivo.com/api/public/v1/calls?limit=5 \
-H "Authorization: Bearer atd_live_…"Authentication
Send the key on every request as a Bearer token. Each key has permissions (scopes); a request without the needed scope returns 403 insufficient_scope. Revoked or expired keys return 401.
calls:readrecordings:readtranscripts:readusage:readwebhooks:write
Rate limits
120 requests per minute and 20,000 per day per key; 300 per minute per company; 30 recording downloads per minute per key. Responses include RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. Over a limit you get 429 with Retry-After.
Errors
Errors use one shape. Quote the request_id (also in the Atendivo-Request-Id header) when you contact support. Ids of other companies return 404, like ids that do not exist.
{
"error": { "code": "rate_limited", "message": "Rate limit exceeded…" },
"request_id": "6f1c…"
}Pagination
List endpoints return data and next_cursor. Pass next_cursor as the cursor parameter to get the next page; null means there are no more.
Webhooks
Add up to 5 HTTPS endpoints in the portal or with the API and choose the events. Atendivo sends a POST with a JSON event, signed with your endpoint secret. Answer any 2xx within 10 seconds; failures are retried up to 8 times over about 22 hours, and an endpoint without a 2xx for 3 days is disabled. Event ids are stable across retries: ignore duplicates. Order is not guaranteed.
POST https://your-server.example.com/webhooks/atendivo
Atendivo-Webhook-Id: evt_3f0c2a…
Atendivo-Event: call.started
Atendivo-Timestamp: <unix seconds>
Atendivo-Signature: v1=5257a8…
{
"id": "evt_3f0c2a…",
"type": "call.started",
"created_at": "2026-11-01T20:00:00.000Z",
"company_id": "…",
"data": { "call_id": "…", "from": "+12105550123", "to": "+18305550100", "route": "ai" }
}Verifying signatures
Compute HMAC-SHA256 of "<Atendivo-Timestamp>.<raw body>" with your secret and compare it, in constant time, with any v1= value of Atendivo-Signature (two are sent while a secret rotates). Reject timestamps older than 5 minutes.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(rawBody, headers, secret) {
const ts = Number(headers["atendivo-timestamp"]);
if (!ts || Math.abs(Date.now() / 1000 - ts) > 300) return false;
const want = createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest();
return String(headers["atendivo-signature"] ?? "")
.split(" ")
.map((p) => p.replace(/^v1=/, ""))
.some((hex) => hex.length === want.length * 2 && timingSafeEqual(Buffer.from(hex, "hex"), want));
}API reference
Account
- get
/meThe API key in use, its company, scopes and limits
Responses
200 · 401 · 403 · 429
Calls
- get
/callsScope:calls:readList calls, newest first
Parameters
limit(query, integer)cursor(query, string) —next_cursorfrom the previous page.since(query, string) — Calls started at or after this time.until(query, string) — Calls started before this time.status(query, CallStatus)outcome(query, CallOutcome)
Responses
200 · 400 · 401 · 403 · 429
- get
/calls/{id}Scope:calls:readOne call with its current summary and next steps
Parameters
id(path, string)
Responses
200 · 401 · 403 · 404 · 429
- get
/calls/{id}/summariesScope:calls:readEvery version of the call's summary, oldest first
The voice agent may send an early summary and update it during the call; the last one is current.
Parameters
id(path, string)
Responses
200 · 401 · 403 · 404 · 429
- get
/calls/{id}/transcriptScope:transcripts:readFull transcript of the call
Available when transcription is enabled for your account and the recording was not deleted by retention.
Parameters
id(path, string)
Responses
200 · 401 · 403 · 404 · 429
- get
/calls/{id}/recordingScope:recordings:readRecording audio
Single byte ranges are supported (
Range: bytes=…→ 206).Parameters
id(path, string)Range(header, string)
Responses
200 · 206 · 401 · 403 · 404 · 429 · 503
Usage
- get
/usageScope:usage:readThis period's minutes
The same numbers as the usage card in your portal. Never prices.
Responses
200 · 401 · 403 · 429
Webhooks
- get
/webhook-eventsCatalog of webhook event types
Responses
200 · 401
- get
/webhooksScope:webhooks:writeYour webhook endpoints
The signing secret is never returned here.
Responses
200 · 401 · 403
- post
/webhooksScope:webhooks:writeCreate a webhook endpoint
Up to 5 endpoints per company. The URL must be
https://on port 443 with a public DNS name (no IP addresses, no private networks). The response includes the signingsecretonce.Responses
201 · 400 · 401 · 403 · 409 · 413
- get
/webhooks/{id}One webhook endpoint
Responses
200 · 404
- patch
/webhooks/{id}Change URL, events, description or pause/resume
Responses
200 · 400 · 404
- delete
/webhooks/{id}Delete a webhook endpoint
Responses
204 · 404
- post
/webhooks/{id}/testSend a webhook.test event now
Delivers immediately (paused endpoints included) and returns the delivery result.
Responses
200 · 404
- post
/webhooks/{id}/rotate-secretNew signing secret (the previous one keeps signing for 24 hours)
Responses
200 · 404 · 503
- get
/webhooks/{id}/deliveriesLast 100 deliveries to this endpoint (kept 30 days)
Responses
200 · 404
Webhook events
call.startedAtendivo received a call and handed it to the voice agent or the forwarding number
data fields:
call_id(string),from(string | null),to(string),started_at(string),route(ai | forwarded),call_url(string)call.endedThe call ended
data fields:
call_id(string),from(string | null),to(string),started_at(string),ended_at(string | null),duration_seconds(integer | null),status(CallStatus),outcome(CallOutcome | null),minutes_billed(integer | null),call_url(string)call.missedNobody answered the call
data fields:
call_id(string),from(string | null),to(string),reason(no_answer | failed | minutes_cap),call_url(string)call.summary.createdThe agent's first summary arrived
data fields:
call_id(string),summary_id(string),version(integer),text(string),caller_name(string | null),call_url(string)call.summary.updatedThe agent sent a new version of the summary
data fields:
call_id(string),summary_id(string),version(integer),text(string),caller_name(string | null),call_url(string)call.next_steps.readyNext steps were generated for the final summary
data fields:
call_id(string | null),summary_id(string),items(string[]),call_url(string | null)call.recording.readyThe recording is stored in Atendivo
data fields:
call_id(string),duration_seconds(integer | null),recording_url(string)call.transcript.readyThe full transcript is ready
data fields:
call_id(string),transcript_url(string)sms.receivedAn SMS arrived at the company's number (inbound SMS enabled)
data fields:
message_id(string),from(string),to(string),text(string),received_at(string)chat.lead.createdThe web chat captured a lead
data fields:
conversation_id(string),name(string | null),phone(string | null),email(string | null),message(string | null)usage.threshold_reachedThis month's usage crossed 80%, 100% or 120% of the plan
data fields:
threshold_pct(integer),used_minutes(integer),included_minutes(integer),period_start(string)webhook.testTest event sent from the portal or POST /webhooks/{id}/test
data fields:
message(string)