RelayrtcDocs
Get started
Documentation
REST API v1

REST API v1

Manage rooms, participants, usage and webhooks over HTTP.

On this page

Base URL

Use the API URL configured for your RelayRTC deployment, with the /v1 prefix. Local development uses http://localhost:8080/v1.

The examples use RELAYRTC_API_URL for that base and RELAYRTC_SECRET_KEY for your secret key.

Shell
curl "$RELAYRTC_API_URL/" \
  -H "Authorization: Bearer $RELAYRTC_SECRET_KEY"

Authentication

Pass a bearer API key on every request. Management endpoints require a secret key and the documented scope.

See authentication for scopes and environment boundaries.

Resources

ResourceOperations
RoomsCreate, list, read, end and inspect runtime cleanup.
Participant tokensIssue a token to join one room; renew active credentials.
ParticipantsList, read, remove and inspect cleanup.
TURN credentialsIssue temporary ICE relay credentials.
UsageRead all usage or one category.
WebhooksConfigure receivers, rotate secrets, inspect deliveries and replay.
ReportingRead project reports, analytics and console organization reports.
StreamsSource configuration, credentials, playback grants and asynchronous operations.
BroadcastsIndividual runs and output state.
DestinationsExternal RTMP/RTMPS distribution.
Recordings and assetsCapture, retention, private playback and downloads.
SchedulesTimed events and event access windows.
External sourcesApproved HLS pulls and push-source lifecycle.
Clips and DVRRetained highlights and rolling live windows.
Mixers and guestsProgram composition and controlled RTC stages.

Request and response bodies

Use Content-Type: application/json for JSON writes. Successful objects are returned directly, without a data wrapper.

Room and participant lists return nodes and pageInfo. Streaming collections generally return data and nextCursor; webhook lists use offset pagination. Some bounded streaming lists have no pagination. See pagination formats for each family. A 204 response has no JSON body.

Unknown fields are rejected by strict request schemas.

Example IDs, dates and credentials are illustrative. Use resource IDs and secrets returned by your deployment.

Transport

This reference documents HTTP endpoints. Joining a live room, sending in-room messages and transferring audio/video use the browser SDK and signaling service.

Version and request headers

Responses include x-relayrtc-api-version: v1 and x-request-id. Include the request ID when investigating an error.

Streaming resources

Streams REST documents stream configuration, source sessions, grants, usage and durable operations when streaming is enabled. The private playback path protects every child object. Use compatible API and SDK builds; package availability is listed in installation.