Skip to main content
POST
Start a Live Activity
Starts a Live Activity with push-to-start (iOS 17.2+) on every device of one contact that reported a push-to-start token for activityType. Your app reports these tokens once it calls Sequenzy.observeLiveActivities(of:) (see Live Activities). Requires the transactional:send scope and APNs credentials in push settings. Sequenzy adds sequenzy: { "activityId": "..." } to the attributes. The SDK reads it to report the new activity’s update token under your activityId, which update and end use. The request returns 202 once delivery is queued. When no device can start the activity, it still returns 202 with tokenCount: 0 and sends nothing, so you can fall back to a regular push. Calling start again starts another copy on the same devices; update the running one instead.

Request

string
Contact whose devices start the activity. Provide email or subscriberId.
string
Subscriber whose devices start the activity.
string
required
Your Swift ActivityAttributes type name exactly, such as DeliveryAttributes. APNs receives it as attributes-type.
string
required
Your id for this activity, such as order-1234: 1 to 128 letters, digits, ., :, - or _, starting with a letter or digit. Use one id per person’s activity.
object
default:"{}"
Static attributes as JSON, decoded into your attributes struct. A sequenzy key you send is replaced.
object
required
Your ContentState as JSON. Date fields decode as seconds since 2001-01-01, not Unix time, unless your struct decodes them differently.
object
required
Apple requires an alert to start an activity: title and/or body, plus an optional sound such as default.
integer | string
When iOS shows the activity as out of date: Unix seconds or an ISO 8601 date.
number
Orders a person’s concurrent activities; higher shows first. 0 to 1,000,000.
The whole APNs payload must fit in 4 KB, or the request fails with 400.

Responses

A body with a missing or mistyped field is rejected with 422 before any other check; invalid ids, dates and the missing contact return 400.