Skip to main content
POST
Update a Live Activity
Sends new content state to every running copy of a contact’s activity: one per device of that contact that reported an update token for activityId, whether you started it with start or the app started it. Requires the transactional:send scope. Activities are addressed per contact by default. Any app install can report a token under any activityId, so Sequenzy only sends to the tokens linked to the contact you name. For an activity you started for a segment, list or tag, send broadcast: true instead of a contact: the update goes to every signed-in device running the activityId, of any contact (at most 10 devices per contact, 100,000 in all). Anyone signed in to your app who runs that id gets the content, so broadcast only shared content, never a per-person id like an order. Broadcasts also need the campaigns:send scope. It reaches every running copy of the activity, on iOS and as an Android Live Update. Each request carries a fixed timestamp. iOS and the Sequenzy Android SDK ignore a push that is not newer than the last one they applied, so a retried or late delivery never replaces newer content. When no running copy of the contact’s activity has reported a token yet, the request returns 202 with tokenCount: 0.

Request

string
required
The activity to update.
object
required
The new ContentState as JSON.
object
Optional title, body and sound. Lights the screen and shows the expanded view.
string
default:"high"
high delivers immediately and counts against Apple’s Live Activity update budget. low does not count against it and may be delayed. Updates with an alert always go at high priority.
string
Contact whose activity it is. Provide email or subscriberId, or broadcast.
string
Subscriber whose activity it is.
boolean
default:"false"
true sends to every signed-in device running this activityId, of any contact, instead of one contact’s devices. Ignored when email or subscriberId is present.
integer | string
Unix seconds or an ISO 8601 date.
number
Orders a person’s concurrent activities.

Responses

A body with a missing or mistyped field is rejected with 422 before any other check; invalid ids and dates, or a request with neither a contact nor broadcast, return 400. A broadcast that matches more than 100,000 devices also returns 400, and one sent with a key that lacks campaigns:send returns 403.