Read one re-broadcast target
Code Mode: praxis.media.streams.outputs.retrieve
HTTP: GET /media/v1/streams/{stream_id}/outputs/{output_id}
Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored or trying again, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.
Signature
praxis.media.streams.outputs.retrieve(args:{path:{/** e.g. "mst_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ stream_id:string;/** e.g. "mso_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ output_id:string}}):Promise<{/** The output id (mso_ and 26 lowercase base32 characters); stable and never reused. e.g. "mso_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ id:string;/** Always media.stream.output. e.g. "media.stream.output" */ object:"media.stream.output";/** The target's RTMP address with its application, rtmp:// or rtmps://; the stream key is not part of it. e.g. "rtmps://live.example.com:443/app" */ url:string;/** Always true: the key is write-only and never returned; send a new stream_key with streams.outputs.update to change it. e.g. true */ stream_key_set:true;/** idle means the stream is not live; starting means connecting, or waiting to try again (1 s, then longer up to 60 s); broadcasting means the target accepted the e.g. "broadcasting" */ status:"idle"|"starting"|"broadcasting"|"errored";/** Why the last connection failed, while the output is errored or starting again after a failure; null in every other status. */ error:(({/** OUTPUT_CONNECT_FAILED: the target could not be reached or refused the connection; OUTPUT_TARGET_UNREACHABLE_FROM_PLATFORM: the target is on the Cloudflare netwo e.g. "OUTPUT_PUBLISH_REJECTED" */ code:"OUTPUT_CONNECT_FAILED"|"OUTPUT_TARGET_UNREACHABLE_FROM_PLATFORM"|"OUTPUT_PUBLISH_REJECTED"|"OUTPUT_CONNECTION_LOST"|"OUTPUT_TARGET_FORBIDDEN"|"OUTPUT_UNSUPPORTED_MEDIA";/** A sentence saying what the target answered. e.g. "the target refused the stream: NetStream.Publish.BadName" */ message:string}))|null;/** When the output was created, RFC 3339 UTC. e.g. "2026-11-28T12:00:00.000Z" */ created_at:string;/** When the output last changed (a setting or its status), RFC 3339 UTC. e.g. "2026-11-28T12:05:00.000Z" */ updated_at:string}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| stream_id | path | string | yes | The stream’s id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404. |
| output_id | path | string | yes | The output’s id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The output. |
| 404 | application/json | No such stream or output in your organization, or Media Streams is not released for it. |