Skip to main content
POST
/
campaigns
/
{campaignId}
/
trigger
Trigger a campaign send for one contact
curl --request POST \
  --url https://apix.spotzee.com/api/client/campaigns/{campaignId}/trigger \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": {
    "external_id": "<string>",
    "email": "jsmith@example.com",
    "phone": "<string>",
    "device_token": "<string>",
    "timezone": "<string>",
    "locale": "<string>"
  },
  "event": {}
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.

Path Parameters

campaignId
integer | null

Numeric campaign identifier.

Example:

24

Body

application/json

Fire a trigger campaign for a single contact.

user
object
required

Identifies the contact for a trigger campaign send. Additional custom attributes may be included.

event
object
required

Event payload that drives the trigger send. Available to template Handlebars as {{event}}.

Response

The trigger was queued.

Confirmation that the trigger was queued.

success
boolean
required