Skip to content

Get Campaign Dependencies

Tool name: get-campaign-dependencies

Lists dependencies of an email or SMS newsletter, follow-up or automation, with links to the automations and campaigns that still use it. These references block deletion until removed. Reads only.

Input schema

campaignIdinteger, >= 1required

ID of a newsletter, SMS newsletter, follow-up or automation

accountIdnull or integer, >= 1

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

Default:null
Input example
{ "campaignId": 1, "accountId": null }

Output schema

accountIdintegerrequired
campaignIdintegerrequired
familystringrequired
Enum:"newsletter""sms-newsletter""autoresponder""sms-autoresponder""automation"
namestringrequired
blocksDeletionbooleanrequired
dependenciesArray of objectsrequired
Output example
{ "accountId": 0, "campaignId": 0, "family": "newsletter", "name": "string", "blocksDeletion": true, "dependencies": [ { "category": "string", "categoryCode": "automation-step", "id": 0, "type": "string", "name": "string", "editUrl": "string" } ] }