Skip to main content
POST
End a Live Activity
Ends a contact’s activity on every device running it, iOS and Android. Each token is marked ended once APNs or FCM accepts the push, so you can send an end again if one failed. Requires the transactional:send scope. For an activity you started for a segment, list or tag, send broadcast: true instead of a contact to end it on every signed-in device running the activityId, as for broadcast updates. Broadcasts also need the campaigns:send scope. Without dismissalDate, iOS keeps an ended activity on the Lock Screen, and Android keeps the final notification, for up to four hours. Pass 0 or a past date to remove it right away.

Request

string
required
The activity to end.
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.
object
required
Final content shown until the activity is removed. Apple’s end payloads always include it, and iOS can drop an end without it.
integer | string
When to remove it: Unix seconds or an ISO 8601 date.
object
Optional title, body and sound.
string
default:"high"
high or low, as for updates.
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.