SMS APIs

Understand how you can use Webex Connect APIs for sending SMS messages

Webex Connect makes it easy for you to send and receive SMS messages programmatically by offering a rich set of Restful APIs and Webhooks.

APIs for Sending SMS Messages

The following APIs are available for sending SMS messages using Webex Connect:

  • Send SMS API v1 - SMS channel-specific API that is recommended to be used for scenarios wherein your use case involves sending messages only to the SMS channel.
  • Send Message API v2 - This is a multichannel messaging API that can be used for sending messages to one or more of the supported channels. If your use case involves more than one channel and you prefer to use a common structure for that, you can use Send Message API v2.

This apart, while Send Message API v1 supports SMS as one of the channels, we do not recommend using this API for any new SMS services. We continue to support it to avoid any impact on the previously configured services. We no longer add any new capabilities to this API for the SMS channel.

APIRecommended forFeatures SupportedWhat's on roadmap?
Send SMS API v1Use cases that involve only SMS channel.Link ShorteningContact Policy Integration, SmartLinks, Scheduling (using sendAt option), Batching, SMS Templates
Send Message API v2Use cases that involve SMS and other channels supported by Send Message API v2.Contact Policy Integration, Link Shortening, Scheduling (using sendAt option), Selective Delivery Receipts, Batching, SMS Templates, Validity-
Send Message API v1Not recommended to be used for any new SMS services.Not recommended to be used for any new SMS services.-

APIs to Retrieve the Delivery Status of a Send SMS API Request

The following APIs are available for retrieving the delivery status of SMS messages sent using Webex Connect:

  • Get SMS API v1 - This API can be used to track the delivery status of SMS messages sent via the SMS API v1.
  • Get Message API v2 - This API can be used to track the delivery status of SMS messages sent via the Send Message API v2. Additionally, this API can be used to track message delivery status for messages sent to other channels supported via this API.

Outbound Webhooks for Tracking SMS Delivery Status

Webex Connect Messaging APIs are asynchronous. The immediate response provided to confirm whether your API requests were accepted or rejected is not reflective of the final delivery status of your outbound SMS requests. If you would like to programmatically track the delivery status of your outbound SMS requests, you will need to provide a callback/notify URL as part of the API requests.Webex Connectwill send postback SMS delivery receipts to the provided URL in real time. Alternatively, you can configure such callback URLs/webhooks within the Webex Connect Outbound Webhooks configuration section. Refer to this page to know more about this and to view postback samples.