Token creation
POST https://video-agent.8x8.com//api/v1/tokens
This API endpoint allows the creation of a bearer token. The API endpoint can also be used to create a new room, once a room is created, participants can join it, creating a conference. Once a room is created, the validity period is 15 minutes. More example on this API usages can be found here.
Authentication:
- 8x8 Video Interaction API utilizes an 8x8 API Key for authentication.
- NB: (replace the {API key} placeholder with your API key from Connect)
Request
Header Parameters
application/json
Bearer {YourApiKey}
Body
This API endpoint can be used in multiple ways:
- An empty request body will generate a token that can be used to log in an Agent using the iFrame mechanism but without creating a room.
- With a request body (see below) you are getting a token and creating a room. This will allow you to log in the agents later on and to have a room already created after log in.
If you provide a phone number, we will send the link via SMS to the phone number, when an agent logins with the token. If you want to send the link yourself, do not provide a phone number (you can still provide a Call Reference).
"create_room" is an optional parameter, default is false. If you want to create a room while getting the token, you need to set this parameter to ‘true’.
true
“phone_number” is an optional parameter, it should be an international phone number
+6512345678
“call_reference” is an optional parameter, it should be a string of min 8 characters and max 20 characters.
123abcde
Here is an example of successful response:
Schema
{
"":"string"
}
Schema
{
"auth_token":"[...]E5B87qPWXyNNDHBx_LftaHarc"
}
Source: https://developer.8x8.com/connect/reference/management-api · 8x8 CPaaS Developer Docs. Synced for support deflection.
0 Comments