Apple Messages for Business: Invitation Message

Use this API to send an Apple Messages for Business invitation message to an opted-in customer mobile number. Invitation messages allow a business to start an Apple Messages for Business conversation before an AMB opaque user ID is available. When the customer responds to the invitation, Webex Connect resolves the conversation to the AMB user ID for subsequent messages. Note: Modify YourRegion in the URL to the right to reflect your tenant’s region. See Know your endpoint page. Apple Messages for Business Invitation Messages require Apple invitation entitlement for the business account. Customers must explicitly opt in before you send an invitation message. Invitation messages are Apple-managed template messages and do not support free-form text. Webex Connect derives the Apple invitation template based on the withImage value.


📘

Note:

  • It is recommended to use a valid authorization ID; the failure of notification won’t be logged in Debug Logs.
  • The notify URL should be filled with the proper URL format; otherwise, it would be considered an invalid URL.
  • The notify URL should be provided with proper spacing of the URL; when space is provided in front of the URL or at the end of the URL, it would be considered an invalid URL.

Responses

200

The request is accepted for processing. Webex Connect returns a transaction identifier for the request. Submission status is available through outbound webhooks, Notify URL, and Debug Console.

400

The request is invalid. This response is returned for synchronous Messaging API request validation failures, such as missing mandatory parameters or invalid request values.

Error Codes

Refer to the Apple Messages for Business section in Channel Specific Status Codes.

Important Considerations

  • Invitation messages are addressed to customer mobile numbers.
  • Standard Apple Messages for Business message types continue to use the AMB opaque user ID.
  • Subsequent standard Apple Messages for Business messages must use the resolved AMB opaque user ID.
  • Invitation messages do not support free-form text.
  • To send an Invitation Message with a brand logo, configure the business logo on the Apple Messages for Business app asset and set withImage to true. Webex Connect uses the image-enabled invitation template.
  • If withImage is set to true and the selected Apple Messages for Business app asset does not have a business logo configured, the invitation message transaction fails.
  • To send an Invitation Message without a brand logo, set withImage to false. Webex Connect uses the no-image invitation template.
  • If the customer selects No on the invitation, opts out of invitation messages, or closes the Apple Messages for Business conversation, Webex Connect suppresses subsequent invitation messages to that customer. If another invitation message is attempted for the same customer, the invitation message may fail with the following error: The user you are trying to communicate with, has opted not to receive messages from you. Send another invitation only after customer consent is re-established.
  • Apple does not provide delivery or read status events for invitation messages. Webex Connect provides submission success or failure notifications.
Body Params
string
Defaults to AppleBusinessChat

Channel used to send the message. For this API, the value is AppleBusinessChat.

string

The ID of the app asset that you can obtain from the Connect platform.

destination
array of objects

Destination details for the invitation message. For Invitation Message, use the customer's mobile number.

destination
string

Unique identifier that you can attach to every request as a reference to a particular transaction or event.

string

Data that you have configured to receive on the Notify URL.

string

Configure a URL to receive submission status notifications for an Apple Messages for Business invitation message. This field accepts only a valid URL or a variable. If an invalid URL is passed in the API request or through a variable, the request is not eligible for retries.

string

Unique authentication ID.

Headers
string

Applicable when you want to use the service key for API authentication. The service key is available under the API tab within a service in your Webex Connect tenant.

string

JSON Web Token (JWT) for authentication. For example, bearer <token>.

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json