Endpoint

POST /numbers/{id}/relationships/{callback_type}

Request Parameters

Path Parameters

  • id
    integer required

    The phone number to be associated with the messaging callback URL.

  • callback_type
    string required

    Callback type to be associated with the specified phone number. Possible values are sms_callback, mms_callback, and dlr_callback.

Body Parameter

  • callback_url
    string required

    The callback URL to be assigned to your longcode or toll-free number. For example, if you specify 18331231234 and dlr_callback as path parameters, the value that you set this field to will be the URL associated with the outbound SMS DLR callback service for 18331231234. To learn more about Flowroute's DLR callback service, see Receive an SMS DLR.

Response Format

On success, the HTTP status code in the response header is 204 No Content which means that the server successfully processed the request and is not returning any content. On error, the header status code is an error code and the response body contains an array of error objects.