Push
Start a Live Activity
Start a Live Activity remotely on a contact’s devices, or for a segment, list or tag
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
The whole APNs payload must fit in 4 KB, and the Android FCM message too, or
the request fails with
For everyone with a tag:
activityType. Your iOS app reports these tokens once it calls Sequenzy.observeLiveActivities(of:) (see Live Activities). Requires the transactional:send scope.
To start one activity for many people, such as a game for every fan, name a segment, list or tag instead of a contact. It starts on the devices of every contact in it (up to 100,000 devices), and every copy shares your activityId, so one update or end with broadcast: true reaches them all. This also needs the campaigns:send scope. Like push campaigns, it reaches contacts whatever their email status: push consent is the device’s. When email or subscriberId is present, segmentId, listId and tag are ignored.
The same request starts an Android Live Update on the contact’s Android devices whose app observes the same type name with SequenzyLiveUpdates.observe: promoted on Android 16, an ongoing notification on earlier versions. iOS needs APNs credentials and Android needs a Firebase service account in push settings; a platform without credentials is skipped, and the request fails with 400 when neither is set up.
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, with tokenCount and
platforms ({ "ios": 1, "android": 0 }) counting the devices per platform,
and contactCount the contacts they belong to. 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
Contact whose devices start the activity. Provide
email or subscriberId,
or one of segmentId, listId or tag.Start it for every contact with this tag: one tag name without commas,
matched like campaign tag filters (
Lakers Fan matches lakers-fan).Your Swift
ActivityAttributes type name exactly, such as
DeliveryAttributes. APNs receives it as attributes-type. Android apps
observe the same name.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, or one shared id, such as game-5521, for a start to a
segment, list or tag.Static attributes as JSON, decoded into your attributes struct. A
sequenzy
key you send is replaced.Your
ContentState as JSON. Date fields decode as seconds since
2001-01-01, not Unix time, unless your struct decodes them differently.
Android renderers receive the same object as activity.contentState, and
the attributes as activity.attributes.Apple requires an alert to start an activity:
title and/or body, plus an
optional sound such as default.When iOS shows the activity as out of date: Unix seconds or an ISO 8601 date.
Android renderers receive it as
activity.staleDateMillis.Orders a person’s concurrent activities on iOS; higher shows first. 0 to
1,000,000. Android ignores it.
400.
Responses
A body with a missing or mistyped field is rejected with422 before any other check; invalid ids and dates, a missing target, or more than one of segmentId, listId and tag return 400. More than 100,000 devices in an audience also returns 400: split it into smaller segments with their own activityId. A start for an audience with a key that lacks campaigns:send returns 403, and a segment or list of another workspace returns 404.