DialerDay Docs

Quickstart

Create an API key, check it works, then create and list contacts from curl, JavaScript or Python.

This page takes you from nothing to a working integration in a few minutes. You will create an API key, check it, create a contact and list your contacts.

You need a DialerDay manager account, and your plan must include API, Make & Zapier.

1. Create an API key

  1. Open the API keys page. In the app, go to Settings → API keys · Make · Zapier (app.dialerday.com/settings/api).
  2. Name the key. Say where it will be used, for example CRM sync or Website lead form. The name shows in the audit log next to everything the key changes.
  3. Pick its permissions. For each area choose None, Read or Read & write. For this quickstart, set Contacts to Read & write. Full access and Read only set every area at once.
  4. Click Create key. Copy the key right away. It starts with dlr_.

Warning

The key is shown once. DialerDay keeps only a hash of it, so it cannot be shown again. If you lose it, create a new key and revoke the old one. Treat it like a password: keep it on your server, never in browser or mobile app code.

The examples below read the key from an environment variable:

bash
export DIALERDAY_API_KEY="dlr_your_key_here"

2. Check the key

GET /v1/me works with any valid key, whatever its permissions. It returns your company and the key's permissions.

bash
curl https://api.dialerday.com/v1/me \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"
js
const res = await fetch("https://api.dialerday.com/v1/me", {
  headers: { Authorization: `Bearer ${process.env.DIALERDAY_API_KEY}` },
});
console.log(res.status, await res.json());
python
import os
import requests

res = requests.get(
    "https://api.dialerday.com/v1/me",
    headers={"Authorization": f"Bearer {os.environ['DIALERDAY_API_KEY']}"},
    timeout=30,
)
print(res.status_code, res.json())

You get back:

json
{
  "company": { "id": 1, "name": "Acme" },
  "key": { "name": "CRM sync", "scopes": ["contacts:write"] }
}

A 401 means the key is missing, mistyped or revoked. See Authentication.

3. Create a contact

POST /v1/contacts needs the contacts:write permission. Only phone is required; send it in any format and DialerDay stores it as E.164 (+15551234567).

bash
curl https://api.dialerday.com/v1/contacts \
  -H "Authorization: Bearer $DIALERDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Jane",
    "last_name": "Doe",
    "phone": "(555) 123-4567",
    "email": "jane@example.com",
    "timezone": "America/New_York",
    "tag_names": ["Hot"]
  }'
js
const res = await fetch("https://api.dialerday.com/v1/contacts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.DIALERDAY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    first_name: "Jane",
    last_name: "Doe",
    phone: "(555) 123-4567",
    email: "jane@example.com",
    timezone: "America/New_York",
    tag_names: ["Hot"],
  }),
});
const contact = await res.json();
if (!res.ok) throw new Error(`${contact.error}: ${contact.message}`);
console.log(contact.id);
python
res = requests.post(
    "https://api.dialerday.com/v1/contacts",
    headers={"Authorization": f"Bearer {os.environ['DIALERDAY_API_KEY']}"},
    json={
        "first_name": "Jane",
        "last_name": "Doe",
        "phone": "(555) 123-4567",
        "email": "jane@example.com",
        "timezone": "America/New_York",
        "tag_names": ["Hot"],
    },
    timeout=30,
)
contact = res.json()
if not res.ok:
    raise RuntimeError(f"{contact['error']}: {contact['message']}")
print(contact["id"])

The answer is 201 Created with the contact (shortened here; the full object also has the address, lead source, line type and more):

json
{
  "id": 42,
  "first_name": "Jane",
  "last_name": "Doe",
  "phone": "+15551234567",
  "email": "jane@example.com",
  "company": null,
  "timezone": "America/New_York",
  "lead_timezone": "America/New_York",
  "status_key": null,
  "owner_id": null,
  "owner_name": null,
  "dnd_call": false,
  "dnd_sms": false,
  "custom": {},
  "tags": [{ "id": 3, "name": "Hot", "color": "neutral" }],
  "created_at": "2026-10-07T15:30:00Z",
  "updated_at": "2026-10-07T15:30:00Z"
}

Tags named in tag_names that don't exist yet are created. You can also set status_key, owner_id, dnd and custom field values (custom) in the same request.

Tip

If a contact with that number already exists, POST /v1/contacts answers 409 conflict. When you sync from another system, use POST /v1/contacts/upsert instead: it finds the contact by phone number (main or other number), updates the fields you send, or creates it, and tells you which with created.

4. List contacts

GET /v1/contacts needs contacts:read (a contacts:write key can read too). It returns a page of contacts and the total that match.

bash
curl "https://api.dialerday.com/v1/contacts?search=jane&limit=20" \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"
js
const params = new URLSearchParams({ search: "jane", limit: "20" });
const res = await fetch(`https://api.dialerday.com/v1/contacts?${params}`, {
  headers: { Authorization: `Bearer ${process.env.DIALERDAY_API_KEY}` },
});
const { items, total } = await res.json();
console.log(`${items.length} of ${total}`);
python
res = requests.get(
    "https://api.dialerday.com/v1/contacts",
    headers={"Authorization": f"Bearer {os.environ['DIALERDAY_API_KEY']}"},
    params={"search": "jane", "limit": 20},
    timeout=30,
)
page = res.json()
print(len(page["items"]), "of", page["total"])
json
{
  "items": [{ "id": 42, "first_name": "Jane", "last_name": "Doe", "phone": "+15551234567" }],
  "total": 1
}

Filters include search (name, phone, email or company), phone (an exact number), status, owner_id (or none), tag_id, not_called (ever, 7d, 30d) and field / field_value for custom fields. Page through results with limit (up to 200, default 50) and offset. See Conventions.

Here is a loop that reads every contact:

python
def all_contacts():
    offset = 0
    while True:
        res = requests.get(
            "https://api.dialerday.com/v1/contacts",
            headers={"Authorization": f"Bearer {os.environ['DIALERDAY_API_KEY']}"},
            params={"limit": 200, "offset": offset},
            timeout=30,
        )
        res.raise_for_status()
        page = res.json()
        yield from page["items"]
        offset += len(page["items"])
        if not page["items"] or offset >= page["total"]:
            break

Next steps

  • Put leads in a campaign. POST /v1/campaigns/{id}/leads creates or updates the contact and queues it as a fresh lead. See Campaigns.
  • Send a text. POST /v1/messages with to and body, and optionally sent_as to show the text in your inbox as sent by a team member or a name like "AI Assistant". See Texts.
  • Read calls. GET /v1/calls lists call history with outcomes; recordings and transcripts are one call away. See Calls.
  • Get events pushed to you. Subscribe a URL with webhooks instead of polling.
  • Retry safely. Add an Idempotency-Key header to POST requests. See Conventions.