IVoice

v1 stable

/api/bot/IVoice/v1/

Get voice streaming tokens for audio ingress. Bots stream Opus audio directly to a WebSocket endpoint — no WebRTC needed.

31906fba80639334… SHA-256 contract hash — guaranteed stable

Authentication required

All endpoints require Authorization: Bot <token> header. Get a token →

POST /api/bot/IVoice/v1/StreamToken ConnectVoice

Gets a LiveKit JWT token and WebSocket ingress URL for streaming audio into a voice channel. The bot must be a member of the space, and the channel must be a voice channel.

Request Body VoiceStreamTokenRequest

Field Type
channelId string
spaceId string

Response VoiceStreamTokenResponse

Field Type
ingressUrl string
roomName string
token string

Errors

Status Code Description
400 not_voice_channel Channel is not a voice channel.
403 not_a_member Bot is not a member of this space.
404 channel_not_found Channel does not exist in this space.

Example

$ curl -X POST \
     -H "Authorization: Bot YOUR_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"channelId":"...","spaceId":"..."}' \
     https://api.argon.gl/api/bot/IVoice/v1/StreamToken