RelayrtcDocs
Get started
Documentation
Node SDK

Types

Public request, response and configuration types exported by the Node SDK.

On this page

Import

TypeScript
import type { CreateRoomInput, ParticipantPermission, Room } from '@relayrtc/node'
 
const input: CreateRoomInput = { name: 'Team call', maxParticipants: 10 }
const permissions: readonly ParticipantPermission[] = ['room:join', 'audio:publish']
 
function roomLabel(room: Room) {
  return room.name
}

Types are exported from the package root. Validation rules and defaults are listed on each method page. A type describes the shape; the API still validates the request.

JsonValue

A JSON value accepted in metadata or event data.

TypeScript
export type JsonValue = string | number | boolean | null | JsonObject | readonly JsonValue[]

JsonObject

A JSON object with string keys.

TypeScript
export interface JsonObject { readonly [key: string]: JsonValue }

RetryOptions

Retry settings for GET requests. Defaults and bounds are in Request options.

TypeScript
export interface RetryOptions {
  readonly maxAttempts?: number
  readonly initialDelayMs?: number
  readonly maxDelayMs?: number
}

RelayServerOptions

Constructor settings. See RelayServer for defaults and URL rules.

TypeScript
export interface RelayServerOptions {
  readonly apiUrl: string
  readonly apiKey: string
  readonly timeoutMs?: number
  readonly retry?: false | RetryOptions
  readonly maxResponseBytes?: number
  readonly fetch?: typeof globalThis.fetch
}

RequestOptions

Overrides for one request. See Request options.

TypeScript
export interface RequestOptions {
  readonly idempotencyKey?: string
  readonly signal?: AbortSignal
  readonly timeoutMs?: number
  readonly retry?: false
}

ApiContext

The project, environment and scopes of the configured key.

TypeScript
export interface ApiContext {
  readonly apiVersion: string
  readonly projectId: string
  readonly environmentId: string
  readonly keyId: string
  readonly keyType: 'publishable' | 'secret'
  readonly scopes: readonly string[]
}

RoomStatus

The stored lifecycle of a room.

TypeScript
export type RoomStatus = 'created' | 'active' | 'ending' | 'ended' | 'failed'

Room

The REST room record. This is different from a browser Room object.

TypeScript
export interface Room {
  readonly id: string
  readonly projectId: string
  readonly environmentId: string
  readonly name: string
  readonly metadata: JsonObject
  readonly status: RoomStatus
  readonly maxParticipants: number
  readonly createdAt: string
  readonly startedAt: string | null
  readonly endedAt: string | null
}

CursorPage

A page of rooms or participants. When pageInfo.hasNextPage is true, pass pageInfo.endCursor as cursor in the next request.

TypeScript
export interface CursorPage<T> {
  readonly nodes: readonly T[]
  readonly pageInfo: { readonly endCursor: string | null; readonly hasNextPage: boolean }
}

CreateRoomInput

The body for rooms.create.

TypeScript
export interface CreateRoomInput {
  readonly name: string
  readonly metadata?: JsonObject
  readonly maxParticipants?: number
}

ListRoomsQuery

Room list filters and cursor pagination.

TypeScript
export interface ListRoomsQuery {
  readonly cursor?: string
  readonly limit?: number
  readonly status?: RoomStatus
  readonly search?: string
  readonly joinable?: boolean
}

RuntimeOperation

The status of asynchronous runtime cleanup.

TypeScript
export interface RuntimeOperation {
  readonly id: string
  readonly kind: string
  readonly status: 'pending' | 'running' | 'failed' | 'completed'
  readonly attempts: number
  readonly lastError: string | null
  readonly completedAt: string | null
  readonly [key: string]: unknown
}

CleanupResult

A completed cleanup or a pending operation returned by rooms.end and participants.remove.

TypeScript
export type CleanupResult =
  | { readonly status: 'completed'; readonly httpStatus: 204 }
  | { readonly status: 'pending'; readonly httpStatus: 202; readonly operation: RuntimeOperation }

ParticipantPermission

Capabilities granted by a participant token.

TypeScript
export type ParticipantPermission = typeof participantPermissions[number]

CreateParticipantTokenInput

Participant identity, token lifetime and permissions.

TypeScript
export interface CreateParticipantTokenInput {
  readonly participantName: string
  readonly permissions?: readonly ParticipantPermission[]
  readonly metadata?: JsonObject
  readonly ttlSeconds?: number
}

RenewParticipantTokenInput

The body for tokens.renew. The token and session must identify the caller's existing active participant; renewal cannot change their identity or permissions.

TypeScript
export interface RenewParticipantTokenInput {
  readonly participantToken: string
  readonly sessionId: string
  readonly ttlSeconds?: number
}

ParticipantToken

A newly issued participant token and its identity.

TypeScript
export interface ParticipantToken {
  readonly token: string
  readonly participantId: string
  readonly tokenId: string
  readonly expiresAt: string
}

Participant

A participant record returned by room participant endpoints.

TypeScript
export interface Participant {
  readonly id: string
  readonly roomId: string
  readonly externalId: string | null
  readonly name: string
  readonly metadata: JsonObject
  readonly role: string
  readonly joinedAt: string
  readonly leftAt: string | null
}

ListParticipantsQuery

Participant list filters and cursor pagination.

TypeScript
export interface ListParticipantsQuery {
  readonly cursor?: string
  readonly limit?: number
  readonly status?: 'active' | 'left'
}

CreateTurnCredentialsInput

Optional allocation scope. Provide roomId and sessionId together. Include participantId to require that session's participant to match a trusted backend identity. See turn.createCredentials.

TypeScript
export type CreateTurnCredentialsInput =
  | { readonly roomId: string; readonly sessionId: string; readonly participantId?: string }
  | { readonly roomId?: never; readonly sessionId?: never; readonly participantId?: never }

TurnCredentials

Short-lived ICE configuration for TURN.

TypeScript
export interface TurnCredentials {
  readonly expiresAt: string
  readonly username: string
  readonly ttlSeconds: number
  readonly iceServers: readonly {
    readonly urls: readonly string[]
    readonly username?: string
    readonly credential?: string
    readonly credentialType?: 'password'
  }[]
}

WebhookEventType

An event that a webhook endpoint can subscribe to.

TypeScript
export type WebhookEventType = typeof webhookEventTypes[number]

WebhookEndpointStatus

Whether new deliveries can be sent.

TypeScript
export type WebhookEndpointStatus = 'enabled' | 'disabled'

WebhookDeliveryStatus

The current delivery state.

TypeScript
export type WebhookDeliveryStatus = 'pending' | 'delivering' | 'succeeded' | 'failed' | 'cancelled'

WebhookScopeQuery

Optional project and environment scope. It must match the secret key.

TypeScript
export interface WebhookScopeQuery {
  readonly projectId?: string
  readonly environmentId?: string
}

OffsetQuery

Scope and offset pagination for webhook endpoint lists.

TypeScript
export interface OffsetQuery extends WebhookScopeQuery {
  readonly limit?: number
  readonly offset?: number
}

OffsetPagination

Offset pagination metadata.

TypeScript
export interface OffsetPagination {
  readonly limit: number
  readonly offset: number
  readonly total: number
}

CreateWebhookInput

The settings for a new receiver.

TypeScript
export interface CreateWebhookInput {
  readonly url: string
  readonly eventTypes: readonly WebhookEventType[]
  readonly status?: WebhookEndpointStatus
}

UpdateWebhookInput

The settings to replace on an existing receiver.

TypeScript
export interface UpdateWebhookInput {
  readonly url?: string
  readonly eventTypes?: readonly WebhookEventType[]
  readonly status?: WebhookEndpointStatus
}

WebhookEndpoint

A receiver record without its signing secret.

TypeScript
export interface WebhookEndpoint {
  readonly id: string
  readonly projectId: string
  readonly environmentId: string
  readonly url: string
  readonly eventTypes: readonly WebhookEventType[]
  readonly status: WebhookEndpointStatus
  readonly signingSecretVersion: number
  readonly signingSecretRotatedAt: string
  readonly createdAt: string
  readonly updatedAt: string
}

RevealedWebhookEndpoint

A receiver returned by creation or rotation, including a signing secret to save securely.

TypeScript
export interface RevealedWebhookEndpoint extends WebhookEndpoint {
  readonly signingSecret: string
  readonly rotationPolicy: 'immediate replacement'
}

WebhookEndpointList

A page of configured receivers.

TypeScript
export interface WebhookEndpointList {
  readonly endpoints: readonly WebhookEndpoint[]
  readonly pagination: OffsetPagination
}

WebhookEvent

The event envelope sent as JSON to a receiver.

TypeScript
export interface WebhookEvent {
  readonly id: string
  readonly type: WebhookEventType
  readonly projectId: string
  readonly environmentId: string
  readonly occurredAt: string
  readonly data: JsonObject
}

WebhookDelivery

A delivery record and its latest outcome.

TypeScript
export interface WebhookDelivery {
  readonly id: string
  readonly endpointId: string
  readonly eventId: string
  readonly projectId: string
  readonly environmentId: string
  readonly url: string
  readonly status: WebhookDeliveryStatus
  readonly attemptCount: number
  readonly runAttemptCount: number
  readonly replayCount: number
  readonly lastError: string | null
  readonly nextAttemptAt: string | null
  readonly deliveredAt: string | null
  readonly runStartedAt: string
  readonly createdAt: string
  readonly updatedAt: string
}

WebhookDeliveryAttempt

One HTTP attempt, including its result.

TypeScript
export interface WebhookDeliveryAttempt {
  readonly id: string
  readonly attemptNumber: number
  readonly replayCount: number
  readonly status: 'started' | 'succeeded' | 'failed' | 'abandoned'
  readonly signingSecretVersion: number
  readonly signatureTimestamp: number
  readonly httpStatus: number | null
  readonly errorCode: string | null
  readonly startedAt: string
  readonly finishedAt: string | null
}

WebhookDeliveryDetail

The delivery, event, original JSON body and attempt history.

TypeScript
export interface WebhookDeliveryDetail extends WebhookDelivery {
  readonly event: WebhookEvent
  readonly rawBody: string
  readonly attempts: readonly WebhookDeliveryAttempt[]
}

WebhookDeliveryList

A page of deliveries.

TypeScript
export interface WebhookDeliveryList {
  readonly deliveries: readonly WebhookDelivery[]
  readonly pagination: OffsetPagination
}

ListWebhookDeliveriesQuery

Filters and pagination for delivery logs.

TypeScript
export interface ListWebhookDeliveriesQuery extends OffsetQuery {
  readonly status?: WebhookDeliveryStatus
}

ReplayWebhookDeliveryInput

The current replay counter required for an explicit replay.

TypeScript
export interface ReplayWebhookDeliveryInput { readonly expectedReplayCount: number }

WebhookSignatureContract

The signature headers and delivery policy reported by the API.

TypeScript
export interface WebhookSignatureContract {
  readonly version: 'v1'
  readonly algorithm: 'HMAC-SHA256'
  readonly signatureHeader: string
  readonly deliveryIdHeader: string
  readonly replayCountHeader: string
  readonly secretVersionHeader: string
  readonly signedContent: string
  readonly signatureFormat: string
  readonly secretEncoding: string
  readonly toleranceSeconds: number
  readonly attemptsPerRun: number
  readonly maximumExplicitReplays: number
  readonly backoffSeconds: readonly number[]
  readonly maximumRunAgeDays: number
  readonly terminalRetentionDays: number
  readonly [key: string]: string | number | readonly number[]
}

UsageCategory

The usage category to request.

TypeScript
export type UsageCategory = 'all' | 'rooms' | 'participants' | 'sfu' | 'turn' | 'signaling' | 'screen-share' | 'streaming'

UsageRange

A preset reporting window.

TypeScript
export type UsageRange = '24h' | '7d' | '14d' | '30d'

UsageQuery

A preset or explicit usage window. Do not combine range with startedAt and endedAt.

UsageWindowQuery is an internal helper used by this public type:

TypeScript
type UsageWindowQuery =
  | { readonly range?: UsageRange; readonly startedAt?: never; readonly endedAt?: never }
  | { readonly range?: never; readonly startedAt: string; readonly endedAt: string }
TypeScript
export type UsageQuery = UsageWindowQuery & {
  readonly projectId?: string
  readonly environmentId?: string
  readonly granularity?: 'hour' | 'day'
  readonly category?: UsageCategory
}

UsageMetric

A supported metric identifier.

TypeScript
export type UsageMetric =
  | 'participantSeconds' | 'participantMinutesDerived' | 'audioParticipantSeconds'
  | 'videoParticipantSeconds' | 'screenShareSeconds' | 'screenShareIngressBytes'
  | 'screenShareEgressBytes' | 'sfuIngressBytes' | 'sfuEgressBytes' | 'turnIngressBytes'
  | 'turnEgressBytes' | 'turnRelaySeconds' | 'turnSessions' | 'roomsCreated' | 'roomsStarted'
  | 'roomSeconds' | 'averageConcurrentParticipants' | 'peakConcurrentParticipants'
  | 'peakConcurrentRooms' | 'signalingConnections' | 'signalingConnectionSeconds'
  | 'signalingMessagesIn' | 'signalingMessagesOut'

UsageMetrics

All usage metric values.

TypeScript
export type UsageMetrics = Readonly<Partial<Record<UsageMetric, number>>>

UsageMetricDefinition

The unit and meaning of one usage metric.

TypeScript
export interface UsageMetricDefinition {
  readonly unit: 'seconds' | 'minutes' | 'bytes' | 'count' | 'participants'
  readonly aggregation: 'sum' | 'union_seconds' | 'count' | 'peak' | 'time_weighted_average' | 'derived' | 'gauge'
  readonly integer: boolean
  readonly definition: string
  readonly source: string
}

UsageResponse

Scoped usage totals, buckets and data quality. See Usage schema.

TypeScript
export interface UsageResponse {
  readonly scope: { readonly organizationId: string; readonly projectId: string; readonly environmentId: string }
  readonly category: UsageCategory
  readonly window: {
    readonly range: UsageRange | 'custom'
    readonly startedAt: string
    readonly endedAt: string
    readonly timezone: 'UTC'
    readonly endExclusive: true
  }
  readonly bucketDefinition: {
    readonly granularity: 'hour' | 'day'
    readonly alignment: 'UTC calendar boundaries'
    readonly partialEdges: 'clipped to requested window'
    readonly durations: 'lifecycle intervals clipped to each bucket'
    readonly events: 'attributed to occurrence time'
  }
  readonly metricDefinitions: Readonly<Partial<Record<UsageMetric, UsageMetricDefinition>>>
  /** Included for all/streaming reports; service measurements are unpriced origin observations. */
  readonly serviceUsage?: ServiceUsageReport
  readonly summary: UsageMetrics
  readonly buckets: readonly { readonly startedAt: string; readonly endedAt: string; readonly metrics: UsageMetrics }[]
  readonly dataQuality: {
    readonly sessionHistory: 'complete' | 'partial'
    readonly messageHistory: 'complete' | 'partial'
    readonly turnTraffic: 'unavailable' | 'partial' | 'authoritative'
    readonly mediaDurations: 'observation_time'
  }
}

ServiceUsageReport

Matching SDK builds export ServiceUsageReport and its metric, coverage, definition, resource and project types. UsageResponse.serviceUsage is optional because RTC-only categories do not return this report. See service metrics and coverage.

TypeScript
export interface ServiceUsageReport {
  readonly window: {
    readonly startedAt: string
    readonly endedAt: string
    readonly timezone: 'UTC'
    readonly endExclusive: true
    readonly granularity: 'hour' | 'day'
  }
  readonly summary: ServiceUsageMetrics
  readonly metricDefinitions: Readonly<Record<ServiceUsageMetric, ServiceUsageMetricDefinition>>
  readonly rules: Readonly<Record<string, string>>
  readonly buckets: readonly {
    readonly startedAt: string
    readonly endedAt: string
    readonly metrics: ServiceUsageMetrics
  }[]
  readonly coverage: ServiceUsageMetricCoverage
  readonly journalStartedAt: string
  readonly historicalCoverage: 'complete' | 'partial'
  readonly deliveryAuthority: 'origin'
  readonly pricing: 'unpriced'
  readonly resources: readonly ServiceUsageResource[]
  readonly projects: readonly ServiceUsageProject[]
  readonly resourceLimit: 100
  readonly resourcesTruncated: boolean
}

ServiceUsageCoverage is 'observed' | 'estimated' | 'partial' | 'unavailable'. Service metric values are separate from RTC UsageMetrics. They describe observed service quantities with pricing: 'unpriced', not plan allowances or computed charges.

Streaming contracts

Stream and playback types, including CreateIngestCredentialInput, IngestCredentialSummary, IngestCredentialList, RotatedIngestCredential, CreatePlaybackGrantInput and StreamPlaybackReadiness, are described with the stream methods. Install a release that includes these contracts before using them.

Webhook verification types

TypeScript
export type WebhookHeaders = Headers | Readonly<Record<string, string | readonly string[] | undefined>>
 
export interface WebhookVerificationOptions {
  readonly now?: Date
  readonly toleranceSeconds?: number
}

See verifyWebhookRequest for raw body requirements and timestamp validation.

RelayApiErrorOptions

TypeScript
export interface RelayApiErrorOptions {
  readonly status?: number | null
  readonly requestId?: string | null
  readonly retryable?: boolean
  readonly retryAfterMs?: number | null
}

See RelayApiError.

Additional public types

The package root also exports the following contracts. Import only the types your application needs. Input contracts describe management requests; result contracts describe returned data. Types do not grant authority or apply server validation.

Streaming

See the streaming contract for field requirements, defaults and errors.

ExportContract
StreamSource{ kind: 'room'; roomId: string; videoTrackIds?: string[]; audioTrackIds?: string[] } | { kind: 'whip' | 'rtmp' }
StreamProfileaudioOnly, width, height, fps, videoBitrate, audioBitrate, layout.
CreateStreamInputname, source, profile, maxDurationSeconds, retentionSeconds.
UpdateStreamInputversion.
StreamState'ready' | 'starting' | 'live' | 'reconnecting' | 'stopping' | 'ended' | 'failed'
StreamSessionid, streamId, state, desiredState, generation, attempts, lastError, and additional fields.
StreamResourceid, organizationId, projectId, environmentId, name, source, profile, and additional fields.
StreamDetailsessions.
StreamListQuerycursor, limit.
StreamPagedata, nextCursor.
IngestCredentialHandoverpolicy, status, retryAfterSeconds.
StreamingOperationid, streamId, kind, broadcastId, outputId, sessionId, status, and additional fields.
StreamingUsagestreamId, sourceSeconds, ingressBytes, programBytes, coverage, samples.

Broadcast

See the broadcast contract for field requirements, defaults and errors.

ExportContract
BroadcastState| "created" | "waiting_for_source" | "starting" | "live" | "reconnecting" | "degraded" | "stopping" | "stopped" | "failed"
CreateBroadcastInputstreamId, name, destinationIds, outputs, waitTimeoutSeconds, maxDurationSeconds.
BroadcastCommandInputversion.
BroadcastResourceid, streamId, organizationId, projectId, environmentId, name, state, and additional fields.
BroadcastOutputid, broadcastId, kind, destinationId, destinationName, outputSeconds, bytes, and additional fields.
BroadcastUsagebytes, transcodeSeconds, runSeconds, outputSeconds, reservationSeconds, samples, coverage.
BroadcastDetailusage.
ListBroadcastsQuerycursor, limit, order, activeOnly, streamId, state.
BroadcastPagedata, nextCursor, limits.

Destination

See the destination contract for field requirements, defaults and errors.

ExportContract
DestinationProfile"remux" | "720p" | "1080p"
StreamDestinationid, streamId, name, host, protocol, port, profile, and additional fields.
DestinationSnapshotid, version, credentialVersion, name, profile.
CreateDestinationInputname, endpoint, streamKey, profile, enabled.
UpdateDestinationInputversion, name, endpoint, profile, enabled.
RotateDestinationSecretInputversion, streamKey.
DestinationPagedata, nextCursor.

Recording

See the recording contract for field requirements, defaults and errors.

ExportContract
RecordingPolicymode, maxDurationSeconds, retentionSeconds, region, allowPartial, exportMp4, segmentEvents, and additional fields.
RecordingState| "queued" | "recording" | "finalizing" | "ready" | "failed" | "deleting" | "deleted"
RecordingResourceid, streamId, broadcastId, assetId, projectId, environmentId, state, and additional fields.
MediaAssetid, recordingId, streamId, broadcastId, state, partial, durationSeconds, and additional fields.
AssetAccessGrantassetId, action, url, expiresAt.
RecordingPlaybackmode, recordingId, assetId, streamId, sourceSessionId, generation, state, and additional fields.
StartRecordingInputbroadcastId, policy.
RecordingPagedata, nextCursor.

Schedule

See the schedule contract for field requirements, defaults and errors.

ExportContract
ScheduleState| "scheduled" | "starting" | "running" | "ending" | "completed" | "missed" | "failed" | "cancelled"
ScheduleTimingstartsAt, endsAt, timeZone, sourceWaitSeconds, catchUpSeconds, publisherEarlySeconds, viewerEarlySeconds, and additional fields.
ScheduledBroadcastid, streamId, broadcastId, operationId, organizationId, projectId, environmentId, and additional fields.
ScheduleOperationid, scheduleId, broadcastId, broadcastOperationId, status, errorCode, createdAt, and additional fields.
ScheduledPlaybackscheduleId, streamId, broadcastId, state, scheduleState, sourceSessionId, generation, and additional fields.
CreateScheduleInputbroadcast, timing.
UpdateScheduleInputversion, timing.
SchedulePagedata, nextCursor, limits.

Restream

See the restream contract for field requirements, defaults and errors.

ExportContract
RestreamProtocol"hls_pull" | "rtmp_push" | "whip_push"
RestreamState"created" | "probing" | "ready" | "connecting" | "live" | "recovering" | "stopped" | "failed"
RestreamSourceid, streamId, projectId, environmentId, name, protocol, host, and additional fields.
RestreamSessionid, sourceId, kind, state, attempts, fetchedBytes, processingSeconds, and additional fields.
RestreamDetailsession, health, usage.
CreateRestreamSourceInputstreamId, name, protocol, endpoint, authorization, redistributionAuthorized, reconnectBudget, and additional fields.
UpdateRestreamSourceInputversion, name, endpoint, authorization, redistributionAuthorized, reconnectBudget, maxDurationSeconds, and additional fields.

Clip

See the clip contract for field requirements, defaults and errors.

ExportContract
ClipInterval| { kind: "last"; seconds: number } | { kind: "media"; startSeconds: number; endSeconds: number } | { kind: "wall"; start: string; end: string }
CreateClipInputrecordingId, interval, cutMode, retentionSeconds, label.
ClipResourceid, streamId, broadcastId, sourceRecordingId, recordingId, assetId, label, and additional fields.
ClipListQuerycursor, limit.
ClipPagedata, nextCursor.
RollingBufferPolicyenabled, durationSeconds, maxBytes, consentAcknowledged.
ClipWindowrecordingId, broadcastId, kind, state, startSeconds, endSeconds, wallStart, and additional fields.

Mixer

See the mixer contract for field requirements, defaults and errors.

ExportContract
MixerSourceid, streamId.
MixerLayersourceId, x, y, width, height, z, fit, and additional fields.
MixerOverlayLayeroverlayId, x, y, width, height, z, opacity.
MixerTextLayerid, text, x, y, width, height, z, and additional fields.
MixerAudiosourceId, gainDb, muted.
MixerScenename, layout, background, layers, overlays, texts, audio, and additional fields.
MixerSceneResourceid, mixerId, version, scene.
MixerOverlayid, name, width, height, sizeBytes.
MixerResourceid, broadcastId, streamId, projectId, environmentId, state, version, and additional fields.
MixerOperationid, mixerId, kind, revision, status, errorCode, createdAt, and additional fields.
MixerCommandResultmixer, operation.
CreateMixerInputsources.
PutMixerSceneInputversion, scene.
ActivateMixerSceneInputversion, sceneId, sceneVersion.
CreateMixerOverlayInputname, contentType, dataBase64.

Dvr

See the dvr contract for field requirements, defaults and errors.

ExportContract
DvrPolicyenabled, durationSeconds, maxBytes, endedRetentionSeconds, consentAcknowledged.
DvrPolicyResourcepolicy, version, effective.
DvrPlaybackstreamId, broadcastId, windowId, sourceSessionId, generation, state, startSeconds, and additional fields.

Guest

See the guest contract for field requirements, defaults and errors.

ExportContract
GuestMediaaudio, video, screen.
GuestRole"host" | "cohost" | "moderator" | "guest" | "viewer"
GuestDelegation"invite" | "approve" | "moderate"
GuestResourceid, kind, state, version, name, media, mutedAudio, and additional fields.
GuestStageenabled, version, maxGuests, occupied, layout, roomId.
GuestRosterdata, nextCursor, stage.
GuestJoinGranttoken, participantId, roomId, expiresAt, version, media, signalingUrl.
GuestDecisionversion, subject.
InviteGuestInputrecipientSubject, media, ttlSeconds.
RequestGuestInputsubject, media.
AudienceGrantInputsubject, name, role, delegations, ttlSeconds.
GuestStageInputenabled, version, maxGuests, layout.

Use live streaming to select the relevant workflow. Exact method inputs and results appear on the resource pages; limits and validation remain authoritative on the API.