EmailOctopus logo

API > Campaigns > Get Campaign


Get details of a campaign.

api_key (string) Your API key.
200 (success) returns

Details of the campaign:

id (string) The identifier of the campaign.
status (string) The status of the campaign (DRAFT/SENDING/SENT/ERROR).
name (string) The name of the campaign.
subject (string) The subject of the campaign.
to (array) The ids of the lists the campaign was sent to.
from (struct)

The sender of the campaign:

name (string) The name the campaign was sent from.
email_address (string) The email address the campaign was sent from.
content (struct)

The content of the campaign:

html (string) The campaign's HTML content.
plain_text (string) The campaign's plain text content.
created_at (string) When the campaign was created, in ISO 8601 format.
sent_at (string) When the campaign was sent, in ISO 8601 format.
Non-200 (error) returns

Details of the error:

code (string) The error code.
message (string) A description of the error.
Method-specific error codes
CAMPAIGN_NOT_FOUND The campaign could not be found.
API-wide error codes
INVALID_PARAMETERS Parameters are missing or invalid.
API_KEY_INVALID Your API key is invalid.
UNAUTHORISED You're not authorised to perform that action.
NOT_FOUND The requested endpoint does not exist.
UNKNOWN An unknown error has occurred.
Example request
Example response
                                "id": "00000000-0000-0000-0000-000000000000",
                                "status": "SENT",
                                "name": "Foo",
                                "subject": "Bar",
                                "to": [
                                "from": {
                                    "name": "John Doe",
                                    "email_address": ""
                                "content": {
                                    "html": "<html>Foo Bar<html>",
                                    "plain_text": "Foo Bar"
                                "created_at": "2024-04-18T07:24:15+00:00",
                                "sent_at": "2024-04-19T07:24:15+00:00"
Code sample