Assign a Resource as Call/Message handler on a Phone Number
POST/resources/:id/phone_routes
Assign a Resource as Call/Message handler on a Phone Number
Request
Path Parameters
id uuidrequired
The ID of the Resource
- application/json
Body
required
phone_route_id uuid
Example:
993ed018-9e79-4e50-b97b-984bd5534095
handler string
Possible values: [calling
, messaging
]
Example:
calling
Responses
- 200
A newly created address for the phone number
- application/json
- Schema
- Example (from schema)
Schema
name string
Example:
reception
display_name string
Example:
Reception
resource_id uuid
Example:
993ed018-9e79-4e50-b97b-984bd5534095
type string
Example:
room
cover_url uri
Example:
https://example.com/cover.jpg
preview_url uri
Example:
https://example.com/preview.jpg
channels
object
video uri
Example:
/public/reception?channel=video
audio uri
Example:
/public/reception?channel=audio
messaging uri
Example:
/public/reception?channel=messaging
{
"name": "reception",
"display_name": "Reception",
"resource_id": "993ed018-9e79-4e50-b97b-984bd5534095",
"type": "room",
"cover_url": "https://example.com/cover.jpg",
"preview_url": "https://example.com/preview.jpg",
"channels": {
"video": "/public/reception?channel=video",
"audio": "/public/reception?channel=audio",
"messaging": "/public/reception?channel=messaging"
}
}