Campaigns

List outbound call campaigns, read their contacts and add contacts with the Callpme API.

On this page

List campaignsLink to this section

GET/api/v1/campaigns

Common parameters: limit (1 to 100, default 50), cursor, created_after, created_before. See Pagination. Filters: agentId, status (draft, running, paused, completed).

curl "https://callpme.com/api/v1/campaigns" \
  -H "Authorization: Bearer $CALLPME_API_KEY"

Retrieve a campaignLink to this section

GET/api/v1/campaigns/{id}

Also returns the calling settings (settings): time zone, days (0 = Sunday), time windows, concurrent calls, attempts and retry delay in minutes.

curl "https://callpme.com/api/v1/campaigns/cm4camp01" \
  -H "Authorization: Bearer $CALLPME_API_KEY"

List contactsLink to this section

GET/api/v1/campaigns/{id}/contacts

Common parameters: limit (1 to 100, default 50), cursor, created_after, created_before. See Pagination. Filter: status (pending, calling, completed, failed, no_answer, opted_out).

curl "https://callpme.com/api/v1/campaigns/cm4camp01/contacts?status=no_answer" \
  -H "Authorization: Bearer $CALLPME_API_KEY"

Add contactsLink to this section

POST/api/v1/campaigns/{id}/contacts

Body: contacts, an array of 1 to 1,000 items { phone, name?, data? }. data holds variables passed to the agent. Invalid numbers, duplicates and numbers on the opt-out list are skipped; a campaign holds at most 5,000 contacts.

curl -X POST "https://callpme.com/api/v1/campaigns/cm4camp01/contacts" \
  -H "Authorization: Bearer $CALLPME_API_KEY" \
  -H "Idempotency-Key: crm-import-2026-11-18" \
  -H "Content-Type: application/json" \
  -d '{
    "contacts": [
      {
        "phone": "+33612345678",
        "name": "Claire Dubois",
        "data": {
          "quote": "D-2026-118"
        }
      },
      {
        "phone": "+33698765432",
        "name": "Marc Leroy"
      }
    ]
  }'

Related event: campaign.completed.