Skip to main content
DELETE
Node
Use this endpoint when the process you are tracking is finished and you want to dismiss the managed Live Activity stream.
  • Call it with the same stream_key you used for stream updates.
  • You can include optional content_state with final values.
  • By default, iOS removes the Live Activity after two minutes.
  • Set auto_dismiss_minutes to choose a different dismissal time, including 0 for immediate dismissal.

Authorizations

Authorization
string
header
required

Required. Include Authorization: Bearer ask_123456789 in every request. Replace ask_123456789 with your API key.

Path Parameters

stream_key
string
required

Stable identifier for one ongoing thing. Allowed characters: letters, numbers, underscores, and hyphens.

Maximum string length: 255
Pattern: ^[A-Za-z0-9_-]+$

Body

application/json

Optional payload for ending a managed stream. When omitted, ActivitySmith ends the stream using the latest known state when possible.

content_state
object

Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, and timer types. For timer, send duration_seconds to start or reset a bounded timer; omit duration_seconds on later updates to preserve the existing timer window.

action
object

Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, and segmented_progress Live Activities.

secondary_action
object

Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.

alert
object

Response

Managed stream ended

Returned after a managed stream is ended and removed.

success
boolean
required
operation
enum<string>
required
Available options:
ended
stream_key
string
required
timestamp
string<date-time>
required
activity_id
string | null
devices_queued
integer
devices_notified
integer