API Reference
List Campaign Clicked Links
GET /campaigns/:id/clicked-links — each tracked link in a campaign with its total clicks.
GET
/campaigns/:id/clicked-linksReturns the campaign's tracked links with the number of clicks each received across all recipients, most-clicked first. Click tracking must be on for the sending domain.
Path parameters
idstringrequiredThe campaign ID.
Query parameters
limitnumberoptionalHow many links to return, 1–100. Defaults to 50.
Request
const res = await fetch('https://www.senddart.com/api/campaigns/8f5c2a1e-7b3d-4f9a-9c12-2e6d4a7b8c90/clicked-links', {
method: 'GET',
headers: { 'Authorization': 'Bearer mb_xxxxxxxxx' },
});
const data = await res.json();
console.log(data);Response
{
"object": "list",
"data": [
{ "object": "campaign_link", "url": "https://acme.test/pricing", "clicks": 412 },
{ "object": "campaign_link", "url": "https://acme.test/blog/launch", "clicks": 97 }
]
}Requires a full-access key (read scope). Errors:
not_found if the campaign does not exist or is not yours; validation_error for an out-of-range limit.