I want to automatically update SMS subscription status through a Data Extension.
At first, I was going to use an import definition in Mobile Connect and then put in an automation. It went well for unsubscribing but not resubscribing. You can read about this issue from this post. Briefly once we import them with active status, their "global" status will turn into active status but the keyword status is still opted-out. I checked it by myself.
Therefore QueueMO REST API seems like a promised solution (its document HERE). The thing is I don't know how to use it properly. They have the sample code:
Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
POST /sms/v1/queueMO/
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
{
"mobileNumbers" : [
"15555551212"
],
"shortCode" : "86288",
"messageText" : "CODETEST"
}
How do I get the YOUR_SUBDOMAIN
and Bearer YOUR_ACCESS_TOKEN
values? I doubt if I will have to make additional steps in order to make the API call and get the response after that. Eventually I will have to put the QueueMO in a Script activity, right?
P/s: it isn't mandatory to use QueueMO. Any helps would be appreciated. Thanks.