I’m working on a PoC for SMS Opt In/Out with our CRM. I'm performing the following request in a Java app using the latest SDK. My app is authenticating using Client Id/Secret and JWT.
var response2 = rc.patch("/restapi/v2/accounts/~/sms/consents", body);
This is the response body I get back.
{"errorCode":"CMN-408","message":"Unauthorized access","errors":[{"errorCode":"CMN-408","message":"Unauthorized access"}]}
I have confirmed that my app has the SMS scope and the SMSSending Feature Flag is turned on. Can you help me troubleshoot what permission/access I might be missing? I have already gone through the getting started tutorial and performed a successful “Ring Out” request, so I know that other REST requests do work.