Live Activity streams use a stableDocumentation Index
Fetch the complete documentation index at: https://activitysmith.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
stream_key for the thing you want to keep
visible. Send the latest state to that key whenever the data changes.
- The first
PUTstarts the Live Activity. - Next
PUTrequest with the samestream_keyupdates it. DELETEends the Live Activity when the work is done.
What is a stream_key?
A stream_key is a stable name for one ongoing process.
Examples:
prod-web-1deployment-mainnightly-backupev-charging
stream_key for one system, workflow, or process.
Example
stream_key whenever the state
changes.
End Live Activity
UseDELETE /live-activity/stream/:stream_key when the tracked process is
finished and you want to dismiss the Live Activity. You can include final
values before it is removed.
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.
content_state is optional here. Include it if you want one last update before the Live Activity is dismissed.
If you later send another PUT request with the same stream_key,
ActivitySmith starts a new Live Activity.
Stream responses
Stream responses include anoperation field:
started: ActivitySmith started a new Live Activity for thisstream_keyupdated: ActivitySmith updated the current Live Activitynoop: the incoming state matched the current state, so no update was sentended: returned byDELETE /live-activity/stream/:stream_key