Skip to main content

POST /api/v1/public/campaigns/

Creates a new campaign with the specified name. Auth: X-API-Key

Request Body

{
  "name": "My New Campaign"
}

Response

{
  "success": true,
  "campaign": {
    "id": 123,
    "name": "My New Campaign",
    "status": "DRAFT",
    "timezone": "Europe/Amsterdam",
    "language": "en",
    "email_max_messages": 40,
    "linkedin_max_messages": 100,
    "linkedin_max_connections": 50,
    "sending_window": {},
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  }
}

Example

curl -X POST -H "X-API-Key: <key>" \
  -H "Content-Type: application/json" \
  -d '{"name": "My New Campaign"}' \
  "https://api.seleqt.ai/api/v1/public/campaigns/"