Skip to main content

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

Body

required

    phone_route_iduuid
    Example: 993ed018-9e79-4e50-b97b-984bd5534095
    handlerstring

    Possible values: [calling, messaging]

    Example: calling

Responses

A newly created address for the phone number

Schema

    namestring
    Example: reception
    display_namestring
    Example: Reception
    resource_iduuid
    Example: 993ed018-9e79-4e50-b97b-984bd5534095
    typestring
    Example: room
    cover_urluri
    Example: https://example.com/cover.jpg
    preview_urluri
    Example: https://example.com/preview.jpg

    channels

    object

    videouri
    Example: /public/reception?channel=video
    audiouri
    Example: /public/reception?channel=audio
    messaginguri
    Example: /public/reception?channel=messaging