Create a new token for ICE servers
Credentials for ICE servers
Create a new token for ICE servers
Path parameters
-
The SID of the Account that will create the resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
.
POST
/2010-04-01/Accounts/{AccountSid}/Tokens.json
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Tokens.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Ttl=1'
Request example
{"Ttl"=>1}
Response examples (201)
{
"ttl": "86400",
"password": "tE2DajzSJwnsSbc123",
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ice_servers": [
{
"urls": "stun:global.stun.twilio.com:3478"
},
{
"urls": "turn:global.turn.twilio.com:3478?transport=udp",
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
"credential": "tE2DajzSJwnsSbc123"
},
{
"urls": "turn:global.turn.twilio.com:3478?transport=tcp",
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
"credential": "tE2DajzSJwnsSbc123"
},
{
"urls": "turn:global.turn.twilio.com:443?transport=tcp",
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
"credential": "tE2DajzSJwnsSbc123"
}
],
"date_created": "Fri, 01 May 2020 01:42:57 +0000",
"date_updated": "Fri, 01 May 2020 01:42:57 +0000"
}