A PlaybackGrant resource allows developers to generate a grant to initialize the Twilio Live Player SDK and connect to a livestream.
Path parameters
-
The unique string generated to identify the PlayerStreamer resource associated with this PlaybackGrant
Minimum length is
34, maximum length is34. Format should match the following pattern:^VJ[0-9a-fA-F]{32}$.
POST
/v1/PlayerStreamers/{Sid}/PlaybackGrant
curl \
--request POST 'https://media.twilio.com/v1/PlayerStreamers/{Sid}/PlaybackGrant' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'AccessControlAllowOrigin=string&Ttl=42'
Response examples (201)
{
"account_sid": "string",
"date_created": "2026-05-04T09:42:00Z",
"sid": "string",
"url": "https://example.com"
}