Skip to main content
Answer

SMS Consent CMN-408 Error

  • November 18, 2025
  • 1 reply
  • 31 views

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.

Best answer by PhongVu

Currently this API requires the user “AccountAdministration” permission.

You can check the user permission using the get user feature API.

var endpoint = `/restapi/v1.0/account/~/extension/~/features`
  let queryParams = {
    featureId: ["AccountAdministration"]
  }

var resp = await platform.get(endpoint, queryParams)

You can grant the user permission by either assign the “super admin” role to that user, or create a new custom role with the “Account Administration” and assign that role to the user.

 

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • Answer
  • November 18, 2025

Currently this API requires the user “AccountAdministration” permission.

You can check the user permission using the get user feature API.

var endpoint = `/restapi/v1.0/account/~/extension/~/features`
  let queryParams = {
    featureId: ["AccountAdministration"]
  }

var resp = await platform.get(endpoint, queryParams)

You can grant the user permission by either assign the “super admin” role to that user, or create a new custom role with the “Account Administration” and assign that role to the user.