Create alias address
Creates an alias address that forwards to an existing resource in your project. name and resource_id are required; display_name defaults to name, channels to all three, codecs to none, and context to public. The handler resource can't be changed later: to point an alias at a different resource, delete it and create a new one.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Calling, Fax, Messaging, or Video.
Learn more about API scopes.
Request body
Example request
{
"name": "support",
"display_name": "Support Line",
"channels": [
"audio",
"messaging"
],
"codecs": [
"OPUS",
"PCMU"
]
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"type": "alias",
"name": "support",
"display_name": "Support Line",
"channels": [
"audio",
"messaging",
"video"
],
"codecs": [],
"uri": "/public/support",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z"
}Changes
Changed in 1 of the 161 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 161 revisions, 3 have a changelog that could not be searched.