Skip to main content

Get Campaign

Retrieve the full details of a single email campaign by its ID.

Endpoint

GET /email/campaigns/:id

Returns: 200 OK

Headers

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe campaign ID.

Response

{
"id": "0192a1b2-c3d4-7e5f-9000-abcdef123456",
"name": "Summer Sale 2026",
"subject": "50% Off Everything!",
"preheader": "Limited time offer",
"from_name": "Acme Store",
"from": "marketing@acme.com",
"reply_to": "support@acme.com",
"status": "Draft",
"template_id": "0192a1b2-aaaa-7bbb-8ccc-dddddddddddd",
"scheduled_at": null,
"sent_at": null,
"created_at": "2026-04-27T12:00:00.000Z",
"updated_at": "2026-04-27T12:00:00.000Z"
}

Examples

curl "https://api.arsel.sa/v1/email/campaigns/0192a1b2-c3d4-7e5f-9000-abcdef123456" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 401,
"name": "unauthorized",
"message": "Invalid or missing API key"
}