API reference

Campaigns

Human campaigns of the contact centre: read campaigns with their stages, results and fields, list a campaign's contacts with the board's filters, add contacts, move them between stages, record their outcome, and read what the campaign's automation rules did and planned. Changes run the campaign's own rules as the board does. 9 endpoints. Add your API key in the authentication panel to send test requests from this page.

Read what campaign rules did

GET/api/external/v1/campaign-automation-logs

The Automation Logs view: what the campaigns' automation rules did outside the contact records (emails, SMS, AI calls, automation and work runs, and actions their run limit held back) and what they plan to do.

Filters: campaignId, campaignContactId, status (e.g. SUCCESS, FAILED, SKIPPED, SCHEDULED), actionType (e.g. EMAIL, SMS, AI_CALL), search (contact name, rule name, message), and scope: planned (waiting or running, soonest first), history (with an outcome, newest first) or none (all, newest first). page from 0, size up to 100 (default 50).

Each item: id, campaignId, campaignName, campaignContactId, contactId, contactName, ruleId, ruleName, actionType, triggerKind, status, message, details, createdAt, scheduledFor, finishedAt.

Answers {items, page, size, totalItems, totalPages}.

Parameters

  • campaignIdstring (uuid)query
  • campaignContactIdstring (uuid)query
  • statusstringquery
  • actionTypestringquery
  • searchstringquery
  • scopestringquery

    planned, history, or none for all entries.

  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Read a campaign contact

GET/api/external/v1/campaign-contacts/{campaignContactId}

One contact's entry in a campaign: as in the campaign's contact list, plus callCount (the calls with it in this campaign that the account may see) and campaign (its campaign's definitions).

Errors: 404 CAMPAIGN_CONTACT_NOT_FOUND.

Parameters

  • campaignContactIdstring (uuid)pathRequired

Responses

  • 200OK

Record a campaign contact's outcome

PATCH/api/external/v1/campaign-contacts/{campaignContactId}

Changes a contact's entry in a campaign, as an agent does after a call: only the fields sent change.

  • stage, result: a key of the campaign's stageDefinitions / resultDefinitions.
  • evaluationData: values of the campaign's own fields (evaluationFieldDefinitions keys), merged into what the entry has; a key sent as null is cleared.
  • followUpAt (a local date-time of the workspace, e.g. 2026-12-01T10:00:00) or clearFollowUpAt; followUpPriority.
  • isLead, inspectRequested (ask a manager to look at it).
  • assignedHumanAgentIds (the campaign's human agents) or clearAssignedHumanAgent.

The change runs the campaign's automation rules, as a change on the board does.

Answers 200 with the campaign contact.

Errors: 404 CAMPAIGN_CONTACT_NOT_FOUND; 400 UNKNOWN_STAGE, UNKNOWN_RESULT, UNKNOWN_FIELD (with the campaign's own values), INVALID_TIME, INVALID_REQUEST (an agent who is not on the campaign); 409 CAMPAIGN_CONTACT_IN_WORK while someone is working on this contact (a call in progress).

Parameters

  • campaignContactIdstring (uuid)pathRequired

Request body application/json

  • stagestring
  • resultstring
  • evaluationDataobject
  • followUpAtstring
  • followUpPriorityboolean
  • clearFollowUpAtboolean
  • inspectRequestedboolean
  • isLeadboolean
  • assignedHumanAgentIdsarray of string (uuid)
  • clearAssignedHumanAgentboolean

Responses

  • 200OK

Read campaign contacts' call status

GET/api/external/v1/campaign-contacts/call-status

For up to 100 campaign contacts (ids, comma-separated): the call with each one that is going on now (live) and the last one that ended (last), each with callResult, caller (HUMAN or AI), startedAt, endedAt and durationSeconds. Contacts without calls are left out. Only calls the account may see are counted (private test calls stay out).

Answers {statuses: {"<campaignContactId>": {live, last}}}.

Errors: 400 MISSING_FIELD / TOO_MANY_CONTACTS / INVALID_ID.

Parameters

  • idsstringquery

    Campaign contact ids, comma-separated.

Responses

  • 200OK

Move campaign contacts to a stage

POST/api/external/v1/campaign-contacts/move

Moves up to 100 campaign contacts to another column of the board at once, as dragging cards does: groupBy is stage (default), result, or the key of one of the campaign's own fields, and targetValue the stage, result or field value to set. A stage or result must be one the contact's campaign defines; a field must be one of its fields.

The move runs the campaign's automation rules for every contact moved (a rule on entering a stage acts as it does on the board).

Answers 200 {updated}.

Errors: 400 MISSING_FIELD / TOO_MANY_CONTACTS; 400 UNKNOWN_STAGE, UNKNOWN_RESULT, UNKNOWN_FIELD (the target is not defined by a contact's campaign; nothing moves); 404 CAMPAIGN_CONTACT_NOT_FOUND when an id is not one of the workspace's campaign contacts.

Request body application/json

  • campaignContactIdsarray of string (uuid)
  • groupBystring
  • targetValuestring

Responses

  • 200OK

List campaigns

GET/api/external/v1/campaigns

The workspace's human campaigns, newest first unless sortBy/sortDir say otherwise, a page at a time (page from 0, size up to 100, default 20). search matches a part of the name or purpose; purpose is exact.

Each item: id, name, purpose, status (DRAFT, ACTIVE, PAUSED, ...), priority, stageDefinitions (each {key, terminal, goal ...}: the board's columns), resultDefinitions, evaluationFieldDefinitions (the campaign's own fields), automationRules, startAt, the call window, totalContacts, terminalContacts (in a final stage) and progress (their share).

Answers {items, page, size, totalItems, totalPages}.

Errors: 400 INVALID_REQUEST for a sort field that cannot be sorted on; 403 FEATURE_NOT_ENABLED.

Parameters

  • searchstringquery
  • purposestringquery
  • sortBystringquery

    createdAt (default), updatedAt, name, priority or status.

  • sortDirstringquery

    asc or desc (default).

  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Read a campaign

GET/api/external/v1/campaigns/{campaignId}

One campaign with its definitions and progress, as in the list. stageDefinitions, resultDefinitions and evaluationFieldDefinitions name the values a contact can be moved to or given (each definition's key).

Errors: 404 CAMPAIGN_NOT_FOUND.

Parameters

  • campaignIdstring (uuid)pathRequired

Responses

  • 200OK

List a campaign's contacts

GET/api/external/v1/campaigns/{campaignId}/contacts

The campaign's contacts (its board's cards), oldest first; page from 0, size up to 100 (default 20).

Filters, all optional and combined: search (name, phone, email of the contact), stage, result (definition keys), assignedHumanAgentId, isLead, inspectRequested, priorityOnly, dueOnly (follow-up due now), followUpFrom / followUpTo (ISO date-times with offset), and evalFieldKey + evalFieldValue (one of the campaign's own fields).

Each item: id (the campaign contact), contactId, contact (the contact), stage, result, evaluationData, followUpAt, followUpPriority, isLead, inspectRequested, assignedHumanAgentIds, lastCallStartedAt, activeCallWorkId (someone is working on it now), stageGoalDescription, createdAt, updatedAt.

Answers {items, page, size, totalItems, totalPages}.

Errors: 404 CAMPAIGN_NOT_FOUND; 400 INVALID_TIME for a malformed follow-up bound.

Parameters

  • campaignIdstring (uuid)pathRequired
  • searchstringquery
  • stagestringquery
  • resultstringquery
  • assignedHumanAgentIdstring (uuid)query
  • isLeadbooleanquery
  • inspectRequestedbooleanquery
  • priorityOnlybooleanquery
  • dueOnlybooleanquery
  • followUpFromstringquery

    Follow-up at or after, e.g. 2026-12-01T00:00:00Z.

  • followUpTostringquery

    Follow-up at or before, e.g. 2026-12-31T23:59:59Z.

  • evalFieldKeystringquery

    The key of one of the campaign's own fields, with evalFieldValue.

  • evalFieldValuestringquery
  • pageinteger (int32)query
  • sizeinteger (int32)query

Responses

  • 200OK

Add contacts to a campaign

POST/api/external/v1/campaigns/{campaignId}/contacts

Adds workspace contacts (contactIds, up to 500) to the campaign, each in the campaign's first stage with its first result, as the page does. A contact already in the campaign is left as it is.

Adding runs the campaign's automation rules on the new entries, as on the page: a rule set to act when a contact enters a stage (an email, an SMS, an AI call) does so, within the rule's own limits.

Answers 200 {attached, alreadyInCampaign}.

Errors: 404 CAMPAIGN_NOT_FOUND; 404 CONTACT_NOT_FOUND for an id that is not one of the workspace's contacts (nothing is added then); 400 MISSING_FIELD / TOO_MANY_CONTACTS.

Parameters

  • campaignIdstring (uuid)pathRequired

Request body application/json

  • contactIdsarray of string (uuid)

Responses

  • 200OK