Client Credential Grant Type for Data Action - Agentless SMS

According to this blog article https://developer.genesys.cloud/blog/2024-09-27-agentless-sms-api/, an SMS message can be sent via a data action if a Client Credential grant type is used; however, I cannot figure out how to use a Client Credential grant type in the data actions I've tried creating.

Testing the data actions I've created results in the "This request requires a user context. Client credentials cannot be used for requests to this resource." error. I've searched the forums and many posts seem to indicate that the API call cannot be used in a data action because it needs the user context. However since the article I linked above is only from a few weeks ago and clearly states that SMS messages can be sent in a data action, I'm wondering if there's something I'm missing.

So, is it possible to create a data action with Client Credentials grant type that calls the /api/v2/conversations/messages/agentless API to send an agentless message? If so, are there any articles or posts that walk through setting up a data action with a client credential grant type?

HI @Patrick_Spearman i would suggest using sms-notification-guide for info on using non user context requests. If you want to use that from a data action that should be fine.
That blog article mistakenly has "agentless" in it's name, which should be changed as those endpoints it lists are user context based.

Hi @Patrick_Spearman , the updates to the blog is underway. You could use the POST /api/v2/conversations/messages/agentless in a data action with a client credentials grant type. You may use the Add a data actions integration and choose the Genesys Cloud data action integration for the step by step instructions on how to setup. Hope this helps.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.