---
title: "On Unpublish"
method: POST
path: "/stream/unpublish"
tags: ["Stream"]
---

# On Unpublish

`POST /stream/unpublish`

SRS on_unpublish webhook — marks the session artifact as ended.

Called when OBS stops streaming or disconnects.  The session artifact's
context.status is set to "ended" and the ended_at timestamp is recorded.

The stream gateway itself does not record or transcode.  If a recording
is needed, configure a workspace event handler that reacts to the
``stream.session.ended`` event (handled by Astra or a custom handler).

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/agience/apis/agience-platform-api.md) · [All operations](https://skmtc.net/agience/apis/agience-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agience/agience-platform-api/revisions/187bad270c94/schema)
