TransactionalSend push to multiple recipients

Send push to multiple recipients

Send one title/body to up to 1000 recipients. Requires push:send.

Recipient semantics: user_id must be the Flameup person UUID (not an external id — a non-UUID value fails that recipient), and device_token acts as a selector among that person's active devices, not a raw address — a token that is not one of the person's active devices yields status: skipped, never a send to an unregistered device. Content renders against the named person, with variables merged per recipient (recipient values win).

Always 200: per-recipient failures come back as status: failed entries in results, in request order. The workspace send policy applies per recipient, as on the single-send route.

curl -X POST "https://api.flameup.ai/api/v1/workspaces/example_string/push/send/batch" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "title": "example_string",
  "body": "example_string",
  "image_url": "example_string",
  "action_url": "example_string",
  "recipients": [
    {
      "user_id": "123e4567-e89b-12d3-a456-426614174000",
      "device_token": "example_string",
      "platform": "ios",
      "variables": {}
    }
  ],
  "variables": {},
  "tags": [
    "example_string"
  ]
}'
{
  "results": [
    {
      "message_id": "9f2c1e77-4a1b-4c2e-9a0f-51a6b2d3c8e4",
      "status": "sent",
      "sent_at": "2024-12-25T10:00:00Z",
      "provider": "fcm",
      "provider_id": "example_string",
      "error": "example_string",
      "skip_reason": "no_active_device_tokens"
    }
  ],
  "summary": {
    "total": 42,
    "sent": 42,
    "failed": 42,
    "processed": "2024-12-25T10:00:00Z"
  }
}
POST
/workspaces/{workspaceId}/push/send/batch
POST
Base URLstring

Target server for requests. Edit to use your own host.

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
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

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

Path Parameters

Responses

resultsarray

One result per recipient, in request order.

summaryobject