Skip to main content

API Reference (M2M)

All endpoints below use M2M OAuth2 authentication.

Authentication happens via the https://id.beamxr.io/ URL.

Every other endpoint call happens via the https://enterprise-api.beamxr.io/ URL.

Authentication

EndpointMethodDescription
https://id.beamxr.io/connect/tokenPOSTGet M2M access token (client credentials)
/poolusers/newtokenGETGenerate a pool user token for the Unity SDK

Sessions & Cohorts

EndpointMethodDescription
https://enterprise-api.beamxr.io/sessions/{SessionId}GETGet session details and events
/sessions/activeGETList active sessions
/cohorts/{TenantCohortId}/sessionsGETList sessions in a cohort
/cohorts/{TenantCohortId}/activeGETList active sessions in a cohort

Streaming

EndpointMethodDescription
/sessions/{SessionId}/streams/{StreamingSessionId}/WatchGETGet stream URL and token for viewing

Commands

EndpointMethodDescription
/sessions/{SessionId}/realtime/commandsPOSTSend a command (camera, text, custom variables)
/sessions/{SessionId}/realtime/commands/streamPOSTStart stream remotely
/sessions/{SessionId}/realtime/commands/stream/stopPUTStop stream remotely
/sessions/{SessionId}/realtime/commands/recordPUTStart recording remotely
/sessions/{SessionId}/realtime/commands/record/stopPUTStop recording remotely

Recordings

EndpointMethodDescription
/sessions/{SessionId}/recordingsGETList recordings for a session
/recording/{RecordingId}GETGet a specific recording