CampaignsCreate campaign
Campaigns

Create campaign

Create a new campaign.

curl -X POST "https://api.flameup.ai/api/v1/workspaces/example_string/campaigns" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "John Doe",
  "trigger_type": "event",
  "trigger_config": {},
  "messages": [
    {
      "type": "push",
      "template": {
        "title": "example_string",
        "body": "example_string",
        "data": {}
      }
    }
  ]
}'
{
  "id": "example_string",
  "workspace_id": "example_string",
  "name": "John Doe",
  "status": "draft",
  "trigger_type": "event",
  "trigger_config": {},
  "audience_config": {},
  "created_at": "2024-12-25T10:00:00Z",
  "updated_at": "2024-12-25T10:00:00Z"
}
POST
/workspaces/{workspaceId}/campaigns
POST
Security Scheme
Bearer Token
Bearer Tokenstring
Required

Your Flameup API key (passed as Bearer token)

Your Flameup API key (passed as Bearer token)
Content-Typestring
Required

The media type of the request body

Options: application/json
trigger_typestring
Required
Options: event, webhook, schedule, dynamic_schedule
Request Preview
Response

Response will appear here after sending the request

Authentication

BearerAuth
header
Authorizationstring
Required

Bearer token. Your Flameup API key (passed as Bearer token)

Path Parameters

Responses

Was this page helpful?
Built with Documentation.AI

Last updated today