GetSubscriptionStatus
Returns the current subscription status for one or more mobile numbers or subscriber keys in Salesforce Marketing Cloud. This procedure identifies whether each contact is subscribed, unsubscribed, or pending confirmation, supporting compliance with communication preferences and opt-in regulations.
EXECUTE GetSubscriptionStatus MobileNumbers = '["15555555555"]' EXECUTE GetSubscriptionStatus SubscriberKeys = '["ExampleSubKey1"]'
Input
| Name | Type | Required | Description |
| MobileNumbers | String | False | Specifies an array of mobile numbers for which subscription status information is requested. Each number is evaluated against MobileConnect subscription records to determine whether the contact is currently opted in, opted out, or pending confirmation. |
| SubscriberKeys | String | False | Specifies an array of subscriber keys for which subscription status information is requested. Subscriber keys allow subscription checks to be performed even when mobile numbers change or when multiple numbers are associated with a single contact. |
Result Set Columns
| Name | Type | Description |
| Contacts | String | Returns detailed subscription status information for each mobile number or subscriber key provided in the request. This information can include opt-in status, opt-out status, pending confirmations, and any applicable messaging restrictions. |