DialerDay Docs

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/json and no body is treated as {}.
  • Invalid JSON is refused with 400 bad_request ("The body is not valid JSON").
  • Status codes on success: 200 OK for reads and updates, 201 Created for most creates, 202 Accepted for POST /v1/events, and 204 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) answers 404 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:00 or …Z).
  • Days in report and appointment filters are YYYY-MM-DD. Endpoints that take days also take tz, an IANA time zone such as America/Chicago, saying which time zone those days are in (default UTC unless the endpoint says otherwise).
  • Time zones are IANA names everywhere (America/New_York, not EST).

Pagination

Most lists return an object with items, and total (how many match in all) where it is known:

json
{ "items": [ { "id": 42 } ], "total": 318 }

Page through them with limit and offset:

bash
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:

EndpointPagingDefaultMaximum
GET /v1/contacts, GET /v1/dnc, GET /v1/tasks, GET /v1/appointmentslimit + offset50200
GET /v1/callslimit + offset25200
GET /v1/conversationslimit + offset50100
GET /v1/campaigns/{id}/contactslimit + cursor50200
GET /v1/tracking/callslimit + before100500
GET /v1/conversations/{id}, GET /v1/contacts/{id}/messagesbefore50 messages50
GET /v1/paymentslimit only100500
GET /v1/voicemailslimit only200500

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}/contacts returns next_cursor. Pass it back as cursor for the next page; it is null on the last page.
  • Before an ID. GET /v1/tracking/calls is newest first: pass the last call_id you got as before. Conversation messages come as the newest 50, oldest first: pass the oldest message ID you have as before to 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.

json
{ "error": "not_found", "message": "Contact not found" }

Branch on error, not on message; messages may be reworded. Some errors carry extra fields:

FieldOnMeaning
issuesvalidation_errorEach problem as { "path": "email", "message": "Invalid email address" }
requiredinsufficient_scopeThe scope the key needs, e.g. contacts:write
moduleplan_required, plan_limitThe plan feature, e.g. messaging.sms
limitplan_limit (some)The plan's limit
reasonsubscription_inactiveno_plan, trial_over, canceled or suspended
dispositionalready_dispositionedThe outcome already logged on the call
referenceinternal_errorQuote it to support so they can find the error in the logs

A validation error looks like this:

json
{
  "error": "validation_error",
  "message": "email: Invalid email address",
  "issues": [{ "path": "email", "message": "Invalid email address" }]
}

Status codes

StatusMeaning
400The request is invalid: validation_error (a field is wrong or missing) or bad_request (anything else, e.g. invalid JSON, unknown time zone)
401Missing, invalid or revoked key: unauthorized
402Your plan doesn't allow it: plan_required, plan_limit, subscription_inactive
403The key lacks the permission: insufficient_scope; or no_manager
404Not found, or not in your company: not_found
409Not possible right now (see below)
422The data can't be used, e.g. invalid_rows when bulk-adding numbers that aren't valid
429Rate limited: wait for Retry-After seconds
5xxSomething failed on our side (internal_error) or at a provider (502)

Error codes

These are the codes you can get from /v1:

CodeStatusWhen
validation_error400A field is missing, has the wrong type, or is out of range
bad_request400Other invalid input: invalid JSON, Idempotency-Key over 200 characters, an unknown time zone, an unknown assignee…
unauthorized401No key, wrong key, revoked key, or the company is deactivated
plan_required402The endpoint needs a feature your plan doesn't include
plan_limit402A plan limit is reached (seats, campaigns, workflows, phone numbers…)
subscription_inactive402The company has no active plan (trial over, canceled, suspended)
insufficient_scope403The key lacks the scope; see required
no_manager403The company has no active manager for the key to act as
not_found404The thing doesn't exist or belongs to another company
conflict409The 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_hours409A text would arrive in the contact's quiet hours; the message says when it can go out
already_dispositioned409The call already has an outcome
over_budget409The campaign has spent its budget
entry_busy409The lead is being dialed right now
idempotency_in_progress409A request with the same Idempotency-Key is still running
busy409Another change to the same plan limit is in progress; try again
ai_disabled, ai_not_configured409AI is off, or no AI provider is set up (Settings → AI)
payments_off, stripe_not_configured409Payments are off, or no Stripe key is set (Settings → Payments)
rvm_not_configured409Ringless voicemail isn't connected (Settings → Ringless voicemail)
twilio_not_configured409Twilio isn't set up for the company
invalid_rows422Some phone numbers in a bulk add aren't valid (use validation: "skip" to skip them)
rate_limited429Over your plan's requests per minute
request_error429Over the general limit of 600 requests per minute per IP address
internal_error500Unexpected error on our side; see reference
ai_failed, media_unavailable, recording_unavailable, payment_link_failed, twilio_error, twilio_unreachable502A 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):

bash
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:

HeaderMeaning
X-RateLimit-LimitRequests your plan allows per minute
X-RateLimit-RemainingRequests left in the current minute

Over the limit you get 429:

json
{ "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}/contacts adds many leads at once, and POST /v1/tags/{id}/contacts tags many contacts at once.
  • Ask for bigger pages (limit=200) rather than many small ones.
  • Read X-RateLimit-Remaining and slow down before you hit zero.

Headers

Request headers:

HeaderUse
Authorization: Bearer dlr_…Your API key (or use X-API-Key: dlr_…)
Content-Type: application/jsonOn requests with a body
Idempotency-KeyOptional, on POST: makes retries safe

Response headers:

HeaderUse
X-RateLimit-Limit, X-RateLimit-RemainingYour rate limit and what's left this minute
Retry-AfterOn 429: seconds to wait
Idempotent-Replayed: trueThis 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.