Webex Connect multichannel Messaging API is a RESTful API that allows you to send proactive outbound messages and/or respond to incoming customer messages across various channels supported by the platform.
Channels covered by the Messaging API are:
- RCS Business Messaging
- Push Notifications (Android, iOS, Web)
- In-App Messaging (Real-Time App Messaging)
- Apple Messages for Business
- Facebook Messenger
- Twitter DM
You can send a message to a single recipient or to multiple recipients by making a single API call. If you want to send messages to multiple recipients at once you would need to provide the list of recipients in the destination array while making the API call.
You can send batch messages on multiple channels with a single API request. For example, a bank can send a personalized greeting message to its customers using the delivery channel as SMS. Using batch message API requests, you can send messages to up to 1000 destinations (subject to your TPS limits). E.g., if your messaging API TPS configuration is 10 you can send messages to up to 10 destinations at once.
Following are the prerequisites to send and receive messages using Messaging API:
- Login credentials to access Webex Connect
- Authentication Credentials
Either a Service Key or JSON Web Tokens (JWT) must be passed with every API request. For more details visit the API Authentication section.
Webex Connect Messaging API is a RESTful API served over the encrypted HTTPS protocol. For data privacy and security reasons, the standard HTTP protocol is not supported.
Specifies the channel to send a message. (sms/voice/push/rt/fb/twitter/wechat).
The destination parameter is a sub-parameter array of strings. This allows multiple destinations.
The channel parameter encompasses sub-parameters.
This parameter is used when the message consisting of a predefined template.
Routing policy to use. The options are:
Expiry time in UTC format, after which messages will not be pushed. For example, 2015-04-12T13:00:19.456Z or 2015-04-12T18:30:19.456+5:30.
A unique transaction ID up to 50 bytes used by Service Providers to match requests with responses.
A URL that receives notifications. This overrides the service's Notify URL.
Data to be passed alongside notifications to the notifyurl. This can serve as identifying notifications.
This parameter is used to specify the message priority.
This API returns one of the following response codes:
Returned when the request is accepted by Webex Connect.
Returned when an invalid JSON request is sent.
Returned when an invalid service key or profile key is provided in the request.
Service key missing
Returned when the parameter key is missing in the message request.
Mandatory parameters missing
Returned when the mandatory parameters configured in the custom event are missing.
Returned when the parameters are invalid.
Internal error occurred
Returned when an internal error occurs.
Returned when the service is in an inactive state.
Max number of destinations
Returned when an API request exceeds the limit (1000) to send messages using messaging API.