Skip to main content
The First Step
Nov 18, 2025 3:16 PM UTC
Solved

SMS Consent CMN-408 Error

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.

PhongVu
PhongVuAnswer
Community Manager
Nov 18, 2025 4:22 PM UTC

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
PhongVuAnswer
Community Manager
Nov 18, 2025 4:22 PM UTC

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.