Prerequisites
Before making API calls you need two pieces of information from the Dev Resources section of your Red5 Cloud Management Console:- Stream Manager URL — the base URL for all API requests (e.g.
https://sm.example.red5pro.net) - Admin credentials — the admin username and password used to obtain a JWT
The Admin User and Admin Password are available only on the Startup plan and above. If you do not see these fields, upgrade your plan in the Management Console.
Authentication
All Stream Manager 2.0 endpoints require a Bearer JWT in theAuthorization header. Obtain a token by posting your admin credentials to the auth endpoint.
Locate your credentials
In the Red5 Cloud Management Console, open Dev Resources. Copy the Stream Manager URL, Admin User, and Admin Password from the Stream Manager and Admin User section.
Request a JWT
Send a The response contains an
POST request to the auth endpoint with your credentials:accessToken field:Node group name
Many endpoints require a{nodeGroup} path parameter. This value corresponds to the Deployment Name shown in the Red5 Cloud Management Console for your active deployment.
Key API operations
Get a server for publishing
Before your publisher opens a WebRTC or RTMP connection, ask the Stream Manager for the correct origin server. Passtranscode=false when you do not need adaptive bitrate transcoding.
serverAddress as the host in your publisher’s connection string.
Get a server for subscribing
Subscribers should connect to an edge server, not the origin. Omit thetranscode parameter (or pass transcode=false) for a standard playback edge.
serverAddress.
Create a transcoding provision
A provision defines the ABR (adaptive bitrate) ladder for a stream — the set of quality levels the transcoder produces. You must create the provision before the stream is published.streams represents one output rendition. The level field determines playback order — lower numbers are higher quality. Subscribers automatically receive the rendition best suited to their bandwidth.
Set
region to the region identifier that matches your Red5 Cloud deployment (e.g. us-east-1 for United States East). The region names are shown on the Deployments page in the Management Console.Get a transcoder server for publishing
When a provision exists for a stream, direct your publisher to the transcoder rather than a standard origin by passingtranscode=true.
serverAddress. Use this as the publisher host instead of a standard origin.
Request summary
GET /as/v1/streams/stream/{nodeGroup}/{streamName}?transcode=false — Publish server
GET /as/v1/streams/stream/{nodeGroup}/{streamName}?transcode=false — Publish server
Returns the origin server IP for a publisher to connect to. Use this when ABR transcoding is not needed.
GET /as/v1/streams/stream/{nodeGroup}/{streamName} — Subscribe server
GET /as/v1/streams/stream/{nodeGroup}/{streamName} — Subscribe server
Returns an edge server IP for a subscriber to connect to for low-latency playback.
POST /as/v1/provision/{nodeGroup} — Create ABR provision
POST /as/v1/provision/{nodeGroup} — Create ABR provision
Registers a transcoding ladder for a stream name. Must be called before the stream is published with
transcode=true.GET /as/v1/streams/stream/{nodeGroup}/{streamName}?transcode=true — Transcoder server
GET /as/v1/streams/stream/{nodeGroup}/{streamName}?transcode=true — Transcoder server
Returns the transcoder server IP for a publisher to connect to when a provision exists for the stream.
