Conventions
Names, times, paging, errors, idempotency keys and rate limits that every endpoint shares.
Every /v1 endpoint follows the same rules for requests, responses, paging, errors and limits. Read this once and the API reference will make sense everywhere.
Requests and responses
- JSON in and out. Send bodies as JSON with
Content-Type: application/json. Responses are JSON, except file downloads (call recordings as MP3, MMS attachments). - Empty bodies are fine. A POST or DELETE with
Content-Type: application/jsonand no body is treated as{}. - Invalid JSON is refused with
400 bad_request("The body is not valid JSON"). - Status codes on success:
200 OKfor reads and updates,201 Createdfor most creates,202 AcceptedforPOST /v1/events, and204 No Content(no body) for deletes and actions with nothing to return.
Names: snake_case
Field names are snake_case both ways: first_name, owner_id, next_cursor.
Keys you define yourself are passed through exactly as you wrote them. That applies to everything inside these fields: custom, custom_fields, data, vars, context, payload, counts and metadata. So a custom field with key budgetAmount stays budgetAmount inside custom.
Validation errors name fields as you sent them (first_name, not firstName).
IDs, phone numbers and times
- IDs are positive integers. A path ID that isn't one (
/v1/contacts/abc) answers404 not_found. - Phone numbers can be sent in any common format (
(555) 123-4567,+1 555 123 4567). DialerDay stores and returns them in E.164:+15551234567. - Times are ISO 8601. Responses use UTC, for example
2026-10-07T15:30:00Z. When you send a time, include the offset (2026-10-09T10:00:00-05:00or…Z). - Days in report and appointment filters are
YYYY-MM-DD. Endpoints that take days also taketz, an IANA time zone such asAmerica/Chicago, saying which time zone those days are in (defaultUTCunless the endpoint says otherwise). - Time zones are IANA names everywhere (
America/New_York, notEST).
Pagination
Most lists return an object with items, and total (how many match in all) where it is known:
{ "items": [ { "id": 42 } ], "total": 318 }Page through them with limit and offset:
curl "https://api.dialerday.com/v1/contacts?limit=200&offset=400" \
-H "Authorization: Bearer $DIALERDAY_API_KEY"Keep going until you have total items, or a page comes back with fewer than limit items.
Defaults and maximums differ by list:
| Endpoint | Paging | Default | Maximum |
|---|---|---|---|
GET /v1/contacts, GET /v1/dnc, GET /v1/tasks, GET /v1/appointments | limit + offset | 50 | 200 |
GET /v1/calls | limit + offset | 25 | 200 |
GET /v1/conversations | limit + offset | 50 | 100 |
GET /v1/campaigns/{id}/contacts | limit + cursor | 50 | 200 |
GET /v1/tracking/calls | limit + before | 100 | 500 |
GET /v1/conversations/{id}, GET /v1/contacts/{id}/messages | before | 50 messages | 50 |
GET /v1/payments | limit only | 100 | 500 |
GET /v1/voicemails | limit only | 200 | 500 |
Lists not in the table (tags, lead statuses, team members, campaigns, numbers…) take no paging parameters.
A few lists page differently:
- Cursor.
GET /v1/campaigns/{id}/contactsreturnsnext_cursor. Pass it back ascursorfor the next page; it isnullon the last page. - Before an ID.
GET /v1/tracking/callsis newest first: pass the lastcall_idyou got asbefore. Conversation messages come as the newest 50, oldest first: pass the oldest message ID you have asbeforeto go further back.
Asking for more than the maximum is a 400 validation_error, not a silent cap.
Errors
Every error has the same shape: a stable, machine-readable error code and a message written for people.
{ "error": "not_found", "message": "Contact not found" }Branch on error, not on message; messages may be reworded. Some errors carry extra fields:
| Field | On | Meaning |
|---|---|---|
issues | validation_error | Each problem as { "path": "email", "message": "Invalid email address" } |
required | insufficient_scope | The scope the key needs, e.g. contacts:write |
module | plan_required, plan_limit | The plan feature, e.g. messaging.sms |
limit | plan_limit (some) | The plan's limit |
reason | subscription_inactive | no_plan, trial_over, canceled or suspended |
disposition | already_dispositioned | The outcome already logged on the call |
reference | internal_error | Quote it to support so they can find the error in the logs |
A validation error looks like this:
{
"error": "validation_error",
"message": "email: Invalid email address",
"issues": [{ "path": "email", "message": "Invalid email address" }]
}Status codes
| Status | Meaning |
|---|---|
400 | The request is invalid: validation_error (a field is wrong or missing) or bad_request (anything else, e.g. invalid JSON, unknown time zone) |
401 | Missing, invalid or revoked key: unauthorized |
402 | Your plan doesn't allow it: plan_required, plan_limit, subscription_inactive |
403 | The key lacks the permission: insufficient_scope; or no_manager |
404 | Not found, or not in your company: not_found |
409 | Not possible right now (see below) |
422 | The data can't be used, e.g. invalid_rows when bulk-adding numbers that aren't valid |
429 | Rate limited: wait for Retry-After seconds |
5xx | Something failed on our side (internal_error) or at a provider (502) |
Error codes
These are the codes you can get from /v1:
| Code | Status | When |
|---|---|---|
validation_error | 400 | A field is missing, has the wrong type, or is out of range |
bad_request | 400 | Other invalid input: invalid JSON, Idempotency-Key over 200 characters, an unknown time zone, an unknown assignee… |
unauthorized | 401 | No key, wrong key, revoked key, or the company is deactivated |
plan_required | 402 | The endpoint needs a feature your plan doesn't include |
plan_limit | 402 | A plan limit is reached (seats, campaigns, workflows, phone numbers…) |
subscription_inactive | 402 | The company has no active plan (trial over, canceled, suspended) |
insufficient_scope | 403 | The key lacks the scope; see required |
no_manager | 403 | The company has no active manager for the key to act as |
not_found | 404 | The thing doesn't exist or belongs to another company |
conflict | 409 | The general "not possible": a contact, tag, field or status with that name or number already exists; the number replied STOP, is on the do-not-call list or has texts on do-not-disturb; the campaign isn't active; the workflow isn't on… The message says which |
quiet_hours | 409 | A text would arrive in the contact's quiet hours; the message says when it can go out |
already_dispositioned | 409 | The call already has an outcome |
over_budget | 409 | The campaign has spent its budget |
entry_busy | 409 | The lead is being dialed right now |
idempotency_in_progress | 409 | A request with the same Idempotency-Key is still running |
busy | 409 | Another change to the same plan limit is in progress; try again |
ai_disabled, ai_not_configured | 409 | AI is off, or no AI provider is set up (Settings → AI) |
payments_off, stripe_not_configured | 409 | Payments are off, or no Stripe key is set (Settings → Payments) |
rvm_not_configured | 409 | Ringless voicemail isn't connected (Settings → Ringless voicemail) |
twilio_not_configured | 409 | Twilio isn't set up for the company |
invalid_rows | 422 | Some phone numbers in a bulk add aren't valid (use validation: "skip" to skip them) |
rate_limited | 429 | Over your plan's requests per minute |
request_error | 429 | Over the general limit of 600 requests per minute per IP address |
internal_error | 500 | Unexpected error on our side; see reference |
ai_failed, media_unavailable, recording_unavailable, payment_link_failed, twilio_error, twilio_unreachable | 502 | A provider (AI, Twilio, Stripe, an attachment URL) failed or couldn't be reached |
Tip
Retry 429, 502, 503 and 504 with backoff, and 409 idempotency_in_progress / 409 busy after a short pause. Don't retry other 4xx errors unchanged: they will fail the same way.
Idempotency
Networks fail. If a POST times out, you don't know whether it went through, and sending it again could create a second contact or a second text. An idempotency key makes the retry safe.
Send an Idempotency-Key header on any POST, with a value unique to that operation (a UUID is ideal):
curl https://api.dialerday.com/v1/messages \
-H "Authorization: Bearer $DIALERDAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2a8e-4b7d-4d0e-9a51-3c2f0e7b9d14" \
-d '{ "to": "+15551234567", "body": "Thanks for your time today!" }'How it works:
- The first successful response (status and body) is stored for 24 hours. Sending the same key again in that time returns the stored response without running the request again, with the header
Idempotent-Replayed: true. - If the first request is still running, a repeat gets
409 idempotency_in_progress. Wait a moment and retry. - If the first request failed (any error), nothing is stored: a retry with the same key runs the request again.
- Keys are per company. They only apply to POST; PUT, PATCH and DELETE are naturally safe to repeat.
- Keys are up to 200 characters. Longer ones get
400 bad_request.
Warning
The stored response is matched on the key, the method and the endpoint's route, not on the body or the IDs in the path. Reusing one key for two different requests (for example adding two different leads, or POST /v1/campaigns/3/leads then POST /v1/campaigns/4/leads) returns the first response for both. Generate a new key for every operation, and reuse it only when retrying that same operation.
Rate limits
Your plan sets how many API requests your company may make per minute. The limit is shared by all of your company's keys and counted per calendar minute (it resets at the start of each minute).
Every /v1 response tells you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests your plan allows per minute |
X-RateLimit-Remaining | Requests left in the current minute |
Over the limit you get 429:
{ "error": "rate_limited", "message": "Your plan allows 120 API requests per minute" }(the number in the message is your plan's), with a Retry-After header: the seconds until the next minute starts. Wait that long, then continue.
There is also a general limit of 600 requests per minute per IP address across the whole API, whatever your plan. Over it you get 429 with Retry-After and the error code request_error ("Rate limit exceeded, retry in …"). The X-RateLimit-Reset header on responses belongs to this general limit. If your plan has no per-minute API limit, the X-RateLimit-Limit and X-RateLimit-Remaining headers you see are this one's too.
To stay under the limits:
- Use webhooks instead of polling for changes. See Webhooks.
- Use bulk endpoints where they exist:
POST /v1/campaigns/{id}/contactsadds many leads at once, andPOST /v1/tags/{id}/contactstags many contacts at once. - Ask for bigger pages (
limit=200) rather than many small ones. - Read
X-RateLimit-Remainingand slow down before you hit zero.
Headers
Request headers:
| Header | Use |
|---|---|
Authorization: Bearer dlr_… | Your API key (or use X-API-Key: dlr_…) |
Content-Type: application/json | On requests with a body |
Idempotency-Key | Optional, on POST: makes retries safe |
Response headers:
| Header | Use |
|---|---|
X-RateLimit-Limit, X-RateLimit-Remaining | Your rate limit and what's left this minute |
Retry-After | On 429: seconds to wait |
Idempotent-Replayed: true | This response is a replay of an earlier request with the same Idempotency-Key |
The same rules as the app
The API runs the same checks as the app. Requests that would break a rule fail with 409 (or 402 for plan rules) instead of quietly doing something else:
- Texts to numbers that replied STOP, are on the do-not-call list, or have texts on do-not-disturb are refused. Texts that would land in the contact's quiet hours get
409 quiet_hours. - Calling windows, state calling rules and the do-not-call list apply to every lead you put in a campaign.
- Plan features and limits apply as they do in the app.