Skip to content

Get Contact Marketing Campaign Status

Tool name: get-contact-automation-status

Reads a contact's current automation positions by campaign and reference, including action, state, dueAt and skippable status (only skippable waits can be ended with move-contact-past-automation-wait). state is scheduled, processing, waiting-for-condition, waiting-for-time-condition, waiting-for-restart, enriching, generating-email, open-end (stays at the end of a branch) or paused (automation paused). dueAt: when a scheduled action runs, when a time condition is checked next, when a paused action was due (past = runs on activation), when the open end was reached; else empty. Finished or exited automations are omitted. Reads only.

Input schema

contactIdinteger, >= 1required

Numeric contact ID returned by search-contacts

automationIdnull or integer, >= 1

Only this automation; omit for every automation the contact is in

Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "contactId": 1, "automationId": null, "accountId": null }

Output schema

accountIdintegerrequired
contactIdintegerrequired
countintegerrequired
positionsArray of objectsrequired
historyUrlstringrequired
Output example
{ "accountId": 0, "contactId": 0, "count": 0, "positions": [ { "automationId": 0, "automationName": "string", "referenceId": 0, "actionId": 0, "actionType": "string", "actionName": "string", "state": "scheduled", "dueAt": "string", "skippable": true, "skipEffect": "", "editUrl": "string" } ], "historyUrl": "string" }