Assign Resource to phone route
Assigns an existing Fabric resource as a phone number's calling or messaging handler. Use it when inbound traffic to an owned number should run an AI Agent, script, Call Flow, Relay Application, or another resource. This operation does not purchase or import the number; use Purchase phone number or Import phone number first when needed.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Learn more about API scopes.
Path parameters
Universal Unique Identifier.
The unique identifier of the Resource.
Request body
Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"name": "justice-league",
"display_name": "Justice League",
"cover_url": "https://coverurl.com",
"preview_url": "https://previewurl.com",
"locked": true,
"channels": {
"audio": "/external/resource_name?channel=audio"
},
"created_at": "2024-05-06T12:20:00Z",
"type": "app"
}Changes
Changed in 1 of the 161 revisions of this API.11
- ▲
removed the success response with the status
response-success-status-removed
- ○
added the success response with the status
response-success-status-added
- ▲
Of the 161 revisions, 3 have a changelog that could not be searched.