RSeng87 | 2023-07-11 21:15:27 UTC | #1
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?
Declan_ginty | 2023-07-12 09:10:43 UTC | #2
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
tim.smith | 2023-07-12 13:42:55 UTC | #3
You can't use client credentials with faxing API resources; you must use one of the user-based grants to authorize.
Shiva_Gupta | 2023-07-26 19:03:50 UTC | #4
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. https://developer.genesys.cloud/authorization/platform-auth/use-authorization-code
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?
tim.smith | 2023-07-26 19:30:26 UTC | #5
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.
Shiva_Gupta | 2023-07-26 19:45:15 UTC | #6
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.
tim.smith | 2023-07-26 20:21:53 UTC | #7
ShivaGupta, post:4, topic:20947
`redirecturi=<http://example.com/oauth/callback>(https://api.usw2.pure.cloud/api/v2/fax/documents?pageSize=25&pageNumber=1)`
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.
system | 2023-08-26 20:22:26 UTC | #8
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20947