Lets you assign a callback URL to a specific long code or toll-free phone number in your account for POST notifications of inbound SMS or MMS messages, or delivery receipts (DLRs) of messages you have sent from that number.
Callback Service
- Make sure to assign a publicly accessible URL for your messaging callback service.
Endpoint
POST /numbers/{id}/relationships/{callback_type}Request Parameters
Path Parameters
id
integer requiredThe phone number to be associated with the messaging callback URL.
-
callback_type
string requiredCallback type to be associated with the specified phone number. Allowed values are:
- sms_callback
Called for inbound SMS messages (see Receive an SMS).
- mms_callback
Called for inbound MMS messages (see Receive an MMS).
- sms_dlr_callback
Called for SMS Delivery Receipts (see Receive a DLR).
- mms_dlr_callback
Called for inbound MMS Delivery Receipts (see Receive a DLR).
- sms_callback
Body Parameter
-
callback_url
string requiredThe callback URL to be assigned to your longcode or toll-free number. For example, if you specify 18331231234 and sms_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 a DLR.