Unable to pull fax details via Postman

Unable to pull fax details via Postman with the help of (Genesys cloud API - GET
/api/v2/fax/documents)

Getting below error:

{
"message": "Unable to find user: userId: 8ef52031-6d8a-472b-8541-106015b9357f",
"code": "forbidden",
"status": 403,
"messageParams": {},
"contextId": "8d262762-016d-47aa-900f-2d39ca753938",
"details": [],
"errors": []
}
My OAuth have full permission for Fax.
This API works in the Developer tool.

Did anyone face similar issue?

Hi,

I get the same error when I try using a curl command. We will investigate the issue and let you know if we learn anything.

Regards,
Declan

You can't use client credentials with faxing API resources; you must use one of the user-based grants to authorize.

HI @tim.smith
I am using grant type = Code authorization and redirecting it to Genesys cloud to test first in postman as per below doc.

Getting error - invalidRedirectUrl

In redirect Uri I used

https://apps.usw2.pure.cloud//oauth/authorize
?client_id=<my-client-id>{same as OAuth id}
&response_type=code
&redirect_uri=<http://example.com/oauth/callback>(https://api.usw2.pure.cloud/api/v2/fax/documents?pageSize=25&pageNumber=1)

Can you help me to identify what I am missing?

The error "We did not recognize your redirect url" means that the redirect URL you're sending in the request doesn't match what you've configured for that OAuth client.

Hi @tim.smith

My use case is pretty simple. I want to use genesys cloud fax api via postman to see all fax details available in the inbox of a user.

I am using redirect uri explained in genesys cloud and its gives me error.
I used multiple combination. nothing worked.

Can you help me to find out what should be redirect uri.

That's definitely not a valid redirect URI for several reasons. You could try using the one documented here or the one in postman's documentation or you can use your own URL.

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