Skip to Content
API referenceCampaigns

Create Campaign

POST
/api/v1/campaigns

Create a new campaign.

Required scope: campaigns:write

Authorization

headerAuthorizationBearer <luso8_sk_live_<40 characters>>

A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.

Request Body

application/json
  1. body

Schema for creating a campaign

name*Name
description?string|null
campaign_type?CampaignType
Default"outbound"
Value in"outbound""nurture""reengagement""onboarding""upsell""event""sequence""custom"
target_audience?|null
exclude_criteria?|null
agent_id?string|null
start_date?|null
end_date?|null
timezone?Timezone
Default"UTC"
language?CampaignLanguage
Default"en"
Value in"en""ny""sw"
send_windows?array<>|null
trigger_type?TriggerType
Default"manual"
Value in"manual""scheduled""event""intent""list_added""form_submit""webhook""api"
trigger_config?|null
goals?|null
conversion_event?string|null
settings?|null
tags?array<string>|null
list_ids?array<string>|null
steps?array<>|null
owner_user_id?string|null

Response Body

Successful Response

application/json
  1. response

Schema for campaign response

name*Name
description?string|null
campaign_type?CampaignType
Default"outbound"
Value in"outbound""nurture""reengagement""onboarding""upsell""event""sequence""custom"
target_audience?|null
exclude_criteria?|null
agent_id?string|null
start_date?|null
end_date?|null
timezone?Timezone
Default"UTC"
language?CampaignLanguage
Default"en"
Value in"en""ny""sw"
send_windows?array<>|null
trigger_type?TriggerType
Default"manual"
Value in"manual""scheduled""event""intent""list_added""form_submit""webhook""api"
trigger_config?|null
goals?|null
conversion_event?string|null
settings?|null
tags?array<string>|null
id*Id
organization_id*Organization Id
created_by*Created By
status?CampaignStatus
Default"draft"
Value in"draft""scheduled""active""paused""completed""archived"
copy_generation_status?CopyGenerationStatus

Campaign-level state for the async generate-copy job.

Default"idle"
Value in"idle""running""complete""failed"
copy_generation_job_id?string|null
total_contacts?Total Contacts
Default0
contacts_completed?Contacts Completed
Default0
contacts_in_progress?Contacts In Progress
Default0
total_sent?Total Sent
Default0
total_delivered?Total Delivered
Default0
total_opened?Total Opened
Default0
total_clicked?Total Clicked
Default0
total_replied?Total Replied
Default0
total_converted?Total Converted
Default0
total_bounced?Total Bounced
Default0
total_unsubscribed?Total Unsubscribed
Default0
created_at*Created At
Formatdate-time
updated_at?|null
launched_at?|null
completed_at?|null
Example Request
curl -X POST 'https://api.luso8.rexplore.ai/api/v1/campaigns' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "name": "string",  "description": "string",  "campaign_type": "outbound",  "target_audience": {},  "exclude_criteria": {},  "agent_id": "string",  "start_date": "2019-08-24T14:15:22Z",  "end_date": "2019-08-24T14:15:22Z",  "timezone": "UTC",  "language": "en",  "send_windows": [    {      "days": [        0      ],      "start": "string",      "end": "string"    }  ],  "trigger_type": "manual",  "trigger_config": {},  "goals": {},  "conversion_event": "string",  "settings": {},  "tags": [    "string"  ],  "id": "string",  "organization_id": "string",  "created_by": "string",  "status": "draft",  "copy_generation_status": "idle",  "copy_generation_job_id": "string",  "total_contacts": 0,  "contacts_completed": 0,  "contacts_in_progress": 0,  "total_sent": 0,  "total_delivered": 0,  "total_opened": 0,  "total_clicked": 0,  "total_replied": 0,  "total_converted": 0,  "total_bounced": 0,  "total_unsubscribed": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "launched_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z"}