/liveActivity/end

Ends an active Live Activity. In addition to signaling the end, this request also delivers a final content update to all current recipients — the iosPayload and androidPayload provided here update the widget's content before it closes.

endDateUtc behavior:

  • If provided, the activity remains visible on both platforms until the specified time. Must be sent as UTC.
  • If omitted, the activity closes immediately on both platforms (equivalent to passing the current UTC time).

Note: A Live Activity expires 13 hours after it was started. End operations are only allowed within this window.


REST-layer validations — HTTP 400, internal code 11:

FieldRuleError message
activityIdRequiredActivityId is required
activityIdActivity has ended and is waiting to expireActivityId '{activityId}' has been ended and is scheduled to close on {endDateUtc} (UTC). No further operations are allowed until it expires.
activityIdNo active subscribers (expired or no permission granted)No active subscribers found for ActivityId: {id}. Users may not have granted permission for live activities or the activity has expired.
activityIdConcurrent lock held — retryableAnother operation is currently in progress for ActivityId '{id}'. Please try again shortly.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Required. The activityId of the Live Activity to end. Must be an active activity (within the 13-hour TTL). Returns HTTP 400 if no active subscribers are found.

date-time

UTC datetime until which the activity remains visible on the device after ending. Must be in UTC. If omitted, the activity closes immediately (equivalent to passing the current UTC time).

iosPayload
object

Optional iOS final state shown before the activity closes. Contains dynamic objects — send whatever fields your widget template expects.

  • contentState — final state data shown in the activity before it closes.
  • alert — optional alert shown when the activity ends.
  • attributes — static attributes for the activity. Fields depend on your app's template.
androidPayload
object

Optional Android final state. Fully dynamic object — send whatever fields your widget template expects.

uuid

Optional idempotency key. See Rest API Idempotency tag for details.

Headers
string
required
Defaults to {$$.env.access_token}
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json