POST
/
trigger
curl --request POST \
  --url https://hub.suprsend.com/trigger/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workflow": "_workflow_slug_",
  "recipients": [
    {
      "is_transient": true,
      "distinct_id": "id1",
      "$channels": [
        "<string>"
      ],
      "$email": [
        "<string>"
      ],
      "$preferred_language": "<string>",
      "$timezone": "<string>"
    }
  ],
  "actor": {
    "is_transient": true,
    "distinct_id": "id1"
  },
  "data": {
    "$attachments": [
      {
        "url": "https://bitcoincore.org/bitcoin.pdf",
        "filename": "billing.pdf",
        "ignore_if_error": true
      }
    ]
  },
  "tenant_id": "<string>",
  "$idempotency_key": "<string>"
}'
{
  "status": "success"
}

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Body

application/json

Response

202
application/json
202 - Accepted

All workflow requests will be accepted as long as the API request is correct. To verify if the execution was successful, check the 'Requests' tab under the 'Logs' section on the SuprSend dashboard.