REST API

Authenticate with header Authorization: Bearer <token>. Get a token in Settings → API Tokens.

POST /api/customer        {"email":"x@example.com","first_name":"X","last_name":"Y","custom":{"plan":"pro"}}
POST /api/trigger         {"email":"x@example.com","event":"purchase","data":{"order_id":"123"}}
GET  /api/campaigns       ?status=Scheduled|Sent|Draft