Skip to content

Get a transactional campaign

Get a specific transactional campaign.

HTTP method: GET

https://api.sender.net/v2/transactional/{id}


ParameterTypeDescription
idstring requiredTransactional campaign ID

const url = new URL("https://api.sender.net/v2/transactional/{id}");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"data": {
"id": "dN0ol8",
"user_id": "b2zzjb",
"account_id": "boEyke",
"title": "Test transactional campaign",
"subject": "Test transactional campaign subject",
"from": "Sender support",
"reply_to": "[email protected]",
"domain_id": "bkRz2N",
"created": "2025-07-24 19:09:37",
"modified": "2025-07-24 19:09:41",
"type": "API",
"last_action": "editor",
"editor": "plain",
"bounced": 0,
"unsubscribeCount": 0,
"opens": 41,
"clicks": 12,
"sent": 41,
"html": {
"id": "aMYlw5",
"thumbnail_url": "https://cdn.sender.net/thumbnails/boEyke/html/aMYlw5.webp?v=1753362578",
"has_preview": true,
"has_snapshots": false,
"styles": "<style>p { font-size: 16px; font-family: Arial, Helvetica, sans-serif; line-height: 1.5; margin: 0 !important;} h1 { font-size: 30px; font-family: Arial, Helvetica, sans-serif; margin: 0 !important; } h2 { font-size: 24px; font-family: Arial, Helvetica, sans-serif; margin: 0 !important; } h3 { font-size: 18px; font-family: Arial, Helvetica, sans-serif; margin: 0 !important; } a { color: rgb(9, 132, 207) !important; } code { background-color: inherit; color: inherit; font-family: monospace; font-size: inherit; padding: 0; } blockquote { margin: 0 !important; border-left: 3px solid rgb(204, 204, 204) !important; padding-left: 2ex !important; } blockquote p { margin-block-start: 1rem !important; margin-block-end: 1rem !important; } hr { border-color: rgb(204, 204, 204) !important; border-style: solid !important; border-width: 1px 0 0 !important; }</style>"
},
"purchaseCount": 0
}
}