Unable to get SMS Send Message to work with trial account

Trying to post a simple message with URL: https://oauth-cpaas.att.com/smsmessaging/v1/{userId}/outbound/{senderAddress}/request.

When I submit the request it responds with HTTP 400 Bad Request and I’m guessing the %1 value represents the first variable {userId}.
{
“requestError”: {
“serviceException”: {
“messageId”: “SVC0002-a7c0cfb03268ebb4de2d8f51ab82195d”,
“text”: “Invalid input value for message part %1”,
“variables”: [
“url”
]
}
}
}

The examples say the “userId” field is the “preferred_username” located in either the access_token or id_token fields from the authorization request. The examples also show that the value represents a string like UUID but the value returned in my authorization request looks like “z2u17xTMBYv3YGdf”.

Hi @treyvanderpool ,

First I would suggest you to use one of our SDKs, both client and server SDKs supports SMS service.

for the specific issue, you are right the userid is incorrect, please submit a ticket in the support tab at https://apimarket.att.com/portal/support/overview - repair and trouble shoot

FYI, I didn’t see an SDK for the go language.

Hi @treyvanderpool,

I assume you changed the parameters in the URL ({userId}) and ({senderAddress}) with the relevant information?

You can find the userId in the Personal Profile.

azertyuiop^^poiuytreza