Invalid Credentials When Sending Fax Via API

Hello,

I have set up an application that authenticates the user using the code authorization grant type. This access token is used to call the /api/v2/conversations/faxes endpoint with the following payload:
{
"name": "test",
"addresses": ["{valid fax number}"],
"documentId": "895fc4d5-d55e-418a-9f6c-9340d5470f4e"
}
The documentId is valid, and the user attempting to send the fax is a member of the containing workspace and was even the user to have uploaded the document.

The user should have all required permissions (in fact we assigned the user an admin role to test if permissions were the issue), and the OAuth client has the following scopes: content-management, content-management:readonly, conversations, conversations:readonly, fax, fax:readonly

This is the response from the API call:
{
"message": "Invalid login credentials.",
"code": "bad.credentials",
"status": 401,
"contextId": "7da52e1a-3d61-4852-a552-daf8fe1116ed",
"details": [],
"errors": []
}
I verified that the access token used is still valid, and tried with a brand new token, but it continues to fail. If anyone sees something I am doing wrong, please let me know as we are working to replace our organization's internal phone system with Genesys Cloud and building this faxing solution is paramount.

Thank you,

Branson

Thanks for including the correlation ID! This appears to be a legitimate denial from the authorization service. Check to be sure you're making requests to the correct region (API hostname) and see if the auth token works with other endpoints. If you've confirmed that your application is making the request to the correct location and the token it's using should be valid, please open a case with Genesys Cloud Care to investigate further as to why the token isn't being honored as valid.

1 Like

Thank you, Tim. I have checked and everything is valid, so I have reached out to Genesys Cloud Care.

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