Model Structure
The endpoint service ID. This field serves as the unique identifier for the endpoint
RTMP or SRT URL of the endpoint where the stream will be published
The service name of the endpoint. Can be predefined service names like
facebook, periscope, youtube, or generic for custom endpointsStatus of the RTMP/SRT muxer. Possible values:
created, started, finished, failed, broadcastingField Details
endpointUrl
TheendpointUrl field contains the complete streaming URL including the stream key. For social media platforms:
- Facebook Live:
rtmp://live-api-s.facebook.com:80/rtmp/{stream-key} - YouTube Live:
rtmp://a.rtmp.youtube.com/live2/{stream-key} - Twitter/Periscope: Platform-specific RTMP URL
- Custom RTMP: Any valid RTMP URL (e.g.,
rtmp://example.com/live/stream-key) - SRT: SRT protocol URL (e.g.,
srt://example.com:port)
type
Thetype field helps categorize the endpoint. While it can match predefined service names, you can also use generic for custom RTMP/SRT servers.
status
The status field tracks the current state of the streaming endpoint:created- Endpoint has been created but streaming hasn’t startedstarted- Endpoint connection has been initiatedbroadcasting- Successfully streaming to the endpointfinished- Streaming to endpoint has completedfailed- Streaming to endpoint has failed (connection error, authentication failure, etc.)
Example JSON
Multiple Endpoint Example
A broadcast can have multiple endpoints for simultaneous restreaming:Related API Endpoints
- Add Endpoint to Broadcast -
POST /v2/broadcasts/{id}/endpoint - Remove Endpoint from Broadcast -
DELETE /v2/broadcasts/{id}/endpoint/{endpointServiceId} - Get Broadcast with Endpoints -
GET /v2/broadcasts/{id}
Usage Notes
- Endpoints are part of the Broadcast model and are stored in the
endPointListarray - Each endpoint requires a unique
endpointServiceIdwithin the broadcast - You can add or remove endpoints while a broadcast is live
- Failed endpoints will automatically retry connection based on server configuration
- The status field is automatically updated by the server based on the streaming state
