Find the campaigns using lists

GET
/lists/list/campaign-usage

For each list id, returns the non-archived campaigns that include the list in their recipients. Use it to know whether adding contacts to a list will feed a campaign. Lists used only as exclusion lists are not reported. Ids that are not valid ObjectIds are dropped; ids of lists that are not yours return an empty array.

Authorization

apiKey
Authorization<token>

Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.

In: header

Query Parameters

listIds*string

Comma-separated list ids.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/lists/list/campaign-usage?listIds=66f1c0ffee5a7d3b2c4e8a10%2C66f1c0ffee5a7d3b2c4e8a11" \  -H "Authorization: YOUR_API_KEY"
{  "usage": {    "66f1c0ffee5a7d3b2c4e8a10": [      {        "_id": "66e0d9c8b7a6f5e4d3c2b1a0",        "name": "Acme Q4 outreach",        "status": "RUNNING"      }    ],    "66f1c0ffee5a7d3b2c4e8a11": []  }}