Please see this article for information on API authorization, testing endpoints, and how obtain your API key.
If you would like to programmatically retrieve a list of the campaigns in a specific client accountId in your agency or white label account, you can leverage this API endpoint to achieve this.
The call to this endpoint must be an HTTP GET to: https://api.leadpost.com/api/v1.0/agency/clients/{accountId}/campaigns
If you need to retrieve a list of client accounts via API to determine a client's accountId, please see our Agency - List Clients API.
The response will return a a limited list of campaign properties in the client account, as shown below:
[[
{
"campaignId": 6214,
"campaignType": "Data Delivery",
"campaignStatus": "Active",
"campaignStatusId": 1,
"name": "Default Campaign"
},
{
"campaignId": 7444,
"campaignType": "Insights",
"campaignStatus": "Pending Monthly Cap Reset",
"campaignStatusId": 9,
"name": "Default Campaign - Insights"
}
]