Skip to content
Browse documentation
On this page

Call lists API

Create call lists and add numbers to them through the Dialstitch API, with do-not-call and duplicate checks and per-number results.

Create call lists and fill them from your own systems, such as a list of today's follow-ups from your CRM. Agents then work through the list in the dialer. Reading needs call_lists:read. Creating lists and adding numbers needs call_lists:write.

The call list object

{
  "id": "7b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
  "name": "Follow-ups – 2026-11-03",
  "description": "Pending CRM tasks due today",
  "entries": 12,
  "pending": 9,
  "counts": {
    "total": 12,
    "pending": 9,
    "in_progress": 0,
    "completed": 2,
    "skipped": 1
  },
  "updated_at": "2026-11-03T14:05:00.000Z",
  "created_at": "2026-11-03T13:00:00.000Z"
}

entries is how many people are on the list, and pending how many are still to call. counts and updated_at come back when you get one list.

List call lists

GET /call-lists
  • limit, cursor: pagination, as in the API overview.
  • name: only lists with exactly this name. Use it to find a list you created earlier, so a nightly job reuses the day's list instead of making another.

Archived lists are left out.

Create a call list

POST /call-lists
  • name (required): up to 100 characters.
  • description: up to 1,000 characters.

Returns 201 with the new list. Send an Idempotency-Key header (1 to 100 letters, digits, or . _ : -) to make retries safe: a repeat with the same key returns the first list with 200 instead of creating another. The list is recorded as created by the person who made the API key.

curl https://dialstitch.com/api/v1/call-lists \
  -H "Authorization: Bearer dpk_..." \
  -H "Idempotency-Key: follow-ups-2026-11-03" \
  -H "Content-Type: application/json" \
  -d '{"name": "Follow-ups – 2026-11-03", "description": "Pending CRM tasks due today"}'

Get a call list

GET /call-lists/{id}

Returns the list with its entry counts by status. A list that is archived or belongs to another organization gets 404.

Add numbers to a list

POST /call-lists/{id}/entries

Send up to 100 entries at a time in entries. They go to the end of the list in the order you send them. Each entry has:

  • phone (required): an E.164 number, or a 10-digit US or Canadian number in any common format.
  • name, company: shown to the agent in the dialer. Up to 255 characters each.
  • notes: shown under the number in the dialer, such as what the call is about. Up to 2,000 characters.
  • external_ref: your own id for the entry, such as a CRM task or contact id. Up to 255 characters. It comes back in the results so you can match them up.
  • crm: the CRM record the entry is for, so the call logs to it and its tasks close afterwards. An object with provider (hubspot, salesforce or zendesk), object_type (company or contact), object_id (up to 64 characters), and optionally task_ids (up to 50 open task ids) and task_subjects (task id to subject, shown in the dialer). Anything else gets 400 naming the field, such as entries[0].crm.object_type.
{
  "entries": [
    {
      "phone": "+14165550101",
      "name": "Pat Prospect",
      "company": "Acme POS",
      "notes": "Follow up on the quote",
      "external_ref": "crm:task:8812"
    },
    {
      "phone": "(416) 555-0199"
    }
  ]
}
{
  "entries": [
    {
      "phone": "+14165550101",
      "name": "Acme POS",
      "notes": "HubSpot tasks due 2026-11-03",
      "crm": {
        "provider": "hubspot",
        "object_type": "company",
        "object_id": "9001",
        "task_ids": [
          "311",
          "312"
        ],
        "task_subjects": {
          "311": "Follow up on the quote",
          "312": "Book a demo"
        }
      }
    }
  ]
}

An entry with crm is tied to a contact: the one linked to that record, else the one with the number, else a new team contact. With that CRM connected, the contact is linked to the record. HubSpot tasks are marked completed after an answered call whose disposition means done (set under Admin, then Integrations). external_ref still works as before and comes back unchanged.

The same rules as the dialer apply before anything is added. Each entry comes back, in the order you sent it, as one of:

  • added, with its entry_id.
  • Added entries also have contact_id: the contact the entry is for, set for entries with crm and for contacts added by id. Otherwise null.
  • skipped, with a reason: already_on_list, duplicate_in_request (the same number earlier in this batch), do_not_call (on your do-not-call list), or blocked_number (outside the US and Canada, or a 911, N11 or 900 number).
  • invalid, with the reason invalid_phone_number.
{
  "data": {
    "call_list_id": "7b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
    "added": 1,
    "skipped": 1,
    "invalid": 0,
    "results": [
      {
        "index": 0,
        "phone": "+14165550101",
        "status": "added",
        "e164": "+14165550101",
        "entry_id": "a1b2c3d4-0000-4000-8000-000000000001",
        "reason": null,
        "message": null,
        "external_ref": "crm:task:8812"
      },
      {
        "index": 1,
        "phone": "(416) 555-0199",
        "status": "skipped",
        "e164": "+14165550199",
        "entry_id": null,
        "reason": "do_not_call",
        "message": "On the do-not-call list",
        "external_ref": null
      }
    ]
  }
}

Because numbers already on the list are skipped, sending the same batch twice adds nothing new. More than 100 entries gets 400 with the code too_many_entries; split them into several requests. Request bodies are limited to 64 KB, so keep notes short when you send 100 at once.