Create a draft campaign
Create a campaign in a profile.
Create a campaign in a profile.
The campaign is created as a draft, so nothing is sent and no contact is touched. It has no audience yet either - targeting and scheduling are not part of this request, the draft is finished and sent from the Reach interface.
API Token authentication
Profile uuid parameter
550e8400-e09b-41d4-a716-400055000000Create a campaign in draft status
From name shown to the recipients.
Marketing TeamFrom address of the campaign. Its domain has to be verified on the profile before the campaign can be sent.
marketing@example.comName the campaign is listed under. Not shown to the recipients.
Black Friday CampaignSubject line of the email.
Don't miss our Black Friday deals!Template to send, as returned by the template endpoints. Can be left out and attached later, but the campaign cannot be sent without one.
550e8400-e29b-41d4-a716-446655440000Success response
The campaign as it was stored, without targeting or delivery progress
550e8400-e29b-41d4-a716-446655440000Black Friday CampaignDon't miss our Black Friday deals!Marketing Teammarketing@example.com2080cc86-e026-4f7b-9598-d4132f8c7c2fAlways draft for a campaign that was just created.
draftPossible values: campaignPossible values: Whether the campaign targets every contact instead of selected segments.
false2025-02-27T11:54:22Z2025-03-04T09:12:07ZUnauthenticated response
Validation error response
Error response
POST /api/reach/v1/profiles/{profileUuid}/campaigns HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 277
{
"sender_name": "Marketing Team",
"sender_email": "marketing@example.com",
"title": "Black Friday Campaign",
"subject": "Don't miss our Black Friday deals!",
"template_uuid": "550e8400-e29b-41d4-a716-446655440000",
"metadata": {
"preheader": "Our biggest deals of the year",
"source": "api"
}
}{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"title": "Black Friday Campaign",
"subject": "Don't miss our Black Friday deals!",
"sender_name": "Marketing Team",
"sender_email": "marketing@example.com",
"template_uuid": "2080cc86-e026-4f7b-9598-d4132f8c7c2f",
"status": "draft",
"type": "campaign",
"is_all_contacts": false,
"metadata": {
"preheader": "Our biggest deals of the year"
},
"created_at": "2025-02-27T11:54:22Z",
"updated_at": "2025-03-04T09:12:07Z"
}Last updated
Was this helpful?