End
Send an end event when the Live Activity should dismiss. This route requires a server API key (lh_live_...).
POST /v1/activities/customer-activity-123/end
{
"content_state": {
"status": "delivered",
"eta": 0
}
}POST JSON to https://www.livehive.dev/v1 with a secret key. Example snippets (any language works):
const KEY = process.env.LIVEHIVE_API_KEY // lh_live_...
await fetch("https://www.livehive.dev/v1/activities/abc123/end", {
method: "POST",
headers: {
Authorization: `Bearer ${KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
content_state: { status: "delivered", eta: 0 },
}),
})The body may be empty. If APNs accepts the end event, the activity is marked ended and the dashboard records ended_at plus the APNs result.