End Live Activity
Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/ to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
DELETE /live-activity/stream/{stream_key}.
This endpoint ends an existing Live Activity by activity_id.
metrics: send the finalmetricsarray if you want the ended state to show final values.stats: send the finalmetricsarray if you want the ended state to show final labeled values.segmented_progress: send the finalcurrent_stepand optionally the latestnumber_of_steps.progress: send the finalpercentage, orvaluewithupper_limit.timer: leaveduration_secondsout if you want the ended state to preserve the current timer value.actionis optional if you want the ended state to keep showing a button before dismissal.auto_dismiss_minutesis optional if you want to control how long the ended Live Activity stays visible.
segmented_progress, the final payload can include an updated
number_of_steps as well as the final current_step. The step count does not
need to match the value used when the activity started.Authorizations
Required. Include Authorization: Bearer ask_123456789 in every request. Replace ask_123456789 with your API key.
Body
End an existing Live Activity by activity_id.
End payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer, omit duration_seconds to preserve and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
Optional single action button shown in the Live Activity UI.