TODO: Resource-level docs
Path parameters
-
Minimum length is
34, maximum length is34. Format should match the following pattern:^IS[0-9a-fA-F]{32}$.
POST
/v2/Services/{ServiceSid}/Roles
curl \
--request POST 'https://ip-messaging.twilio.com/v2/Services/{ServiceSid}/Roles' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=string&Permission=string&Type=channel'
Response examples (201)
{
"account_sid": "string",
"date_created": "2026-05-04T09:42:00Z",
"date_updated": "2026-05-04T09:42:00Z",
"friendly_name": "string",
"permissions": [
"string"
],
"service_sid": "string",
"sid": "string",
"type": "channel",
"url": "https://example.com"
}