API Reference
Getting Started
Contact
Campaign
Reports
Event
Webhook
Campaign
Get Campaign By Id
Retrieve a specific campaign using its ID.
GET
/
campaign
/
{campaignId}
Get Campaign By Id
Copy
Ask AI
curl --request GET \
--url https://api.sendx.io/api/v1/rest/campaign/{campaignId} \
--header 'X-Team-ApiKey: <api-key>'
Copy
Ask AI
{
"id": "campaign123xyz",
"name": "New Year Promotion",
"trackReply": false,
"subject": "New Year Promotion",
"status": 1,
"scheduleType": 0,
"scheduleCondition": "2024-12-30",
"timeCondition": "9:00 AM",
"timezone": "America/New_York",
"preferredTimeCondition": "Send during work hours",
"preferredTimezone": "America/Los_Angeles",
"strategy": "Batch sending",
"sendInContactsTimezone": true,
"smartSend": false,
"isArchived": false,
"sender": "marketing@company.com",
"campaignScreenshotUrl": "https://example.com/screenshot.png",
"includedSegments": [
"VIP Customers",
"New Subscribers"
],
"includedLists": [
"List 1",
"List 2"
],
"includedTags": [
"Tag 1",
"Tag 2"
],
"excludedSegments": [
"Unsubscribed Users",
"Bounced Emails"
],
"excludedLists": [
"List 3",
"List 4"
],
"excludedTags": [
"Tag 3",
"Tag 4"
]
}
Authorizations
Path Parameters
The ID of the campaign to retrieve.
Response
200
application/json
Retrieved campaign successfully.
The response is of type object
.
Was this page helpful?
Get Campaign By Id
Copy
Ask AI
curl --request GET \
--url https://api.sendx.io/api/v1/rest/campaign/{campaignId} \
--header 'X-Team-ApiKey: <api-key>'
Copy
Ask AI
{
"id": "campaign123xyz",
"name": "New Year Promotion",
"trackReply": false,
"subject": "New Year Promotion",
"status": 1,
"scheduleType": 0,
"scheduleCondition": "2024-12-30",
"timeCondition": "9:00 AM",
"timezone": "America/New_York",
"preferredTimeCondition": "Send during work hours",
"preferredTimezone": "America/Los_Angeles",
"strategy": "Batch sending",
"sendInContactsTimezone": true,
"smartSend": false,
"isArchived": false,
"sender": "marketing@company.com",
"campaignScreenshotUrl": "https://example.com/screenshot.png",
"includedSegments": [
"VIP Customers",
"New Subscribers"
],
"includedLists": [
"List 1",
"List 2"
],
"includedTags": [
"Tag 1",
"Tag 2"
],
"excludedSegments": [
"Unsubscribed Users",
"Bounced Emails"
],
"excludedLists": [
"List 3",
"List 4"
],
"excludedTags": [
"Tag 3",
"Tag 4"
]
}
Assistant
Responses are generated using AI and may contain mistakes.