Start Live Activity
Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/ so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities only.
PUT /live-activity/stream/{stream_key}.
This endpoint creates a new Live Activity and returns an activity_id. You will
use that same ID for later update and end calls.
metrics: sendtitle,type, and a non-emptymetricsarray.stats: sendtitle,type, and a non-emptymetricsarray for up to 8 labeled values.segmented_progress: sendtitle,type,number_of_steps, andcurrent_step.progress: sendtitle,type, and eitherpercentageorvaluewithupper_limit.timer: sendtitle,type, andduration_secondsfor a countdown. To start at 00:00 and count up, setcounts_downtofalseand leave outduration_seconds.actionis optional if you want the Live Activity to show one button that opens a URL or triggers a webhook.target.channelsis optional if you want to scope delivery to specific channel slugs.
segmented_progress, number_of_steps is not fixed for the full lifecycle.
You can change it later in update or end calls if the workflow adds or removes
steps.Authorizations
Required. Include Authorization: Bearer ask_123456789 in every request. Replace ask_123456789 with your API key.
Body
Start a new Live Activity. The response includes activity_id for later update and end calls.
Start payload requires title and type. For segmented_progress include number_of_steps and current_step. 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 include duration_seconds for countdowns, or set counts_down false without duration_seconds for an open-ended elapsed timer. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
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.
Optional secondary action button. Supported only for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
Response
Live Activity started