Upload Contact Lists by Client Credentials Grant Type

Hi, I'd like to automate the process of uploading a contactlist CSV file by creating a java service. I can make a POST call to https://apps.mypurecloud.com/uploads/v2/contactlist, but this call needs an access token in the header (Bearer). My question is....can I get the token through OAuth 2 authentication with a client credentials grant type? What permissions does the client need? Thanks a lot.

@tim.smith @Jerome.Saint-Marc Can you help me with my question ? Thanks a lot

Hello, you can find documentation for the upload process here: https://developer.genesys.cloud/routing/outbound/uploadcontactlists. There are no specific permissions documented.

Thanks for the reply. In the javascript example I found developercenter-tutorials/upload-contacts/javascript/index.html at master · MyPureCloud/developercenter-tutorials · GitHub , a loginImplicitGrant() (user context) is done. I need to use loginClientCredentialsGrant() , I don't have a user context, but I have a java service. Will this work with a loginClientCredentialsGrant() too? Thanks a lot

That's not documented either way. What error are you getting when using client credentials?

Hi Tim, I haven't done a test yet, I'm in the design phase of the java service. The goal was to first understand whether the http call needs a user context or not. Thanks a lot.

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