Michael_Kork | 2023-10-31 16:58:02 UTC | #1
We are developing a widget using the Web Messaging Guest API and we would like to get the Messaging configuration.
Is it safe to use this URL or is there another way?
https://api-cdn.(cloud-instance)/webdeployments/v1/deployments/(deployment-id)/config.json
John_Carnell | 2023-10-31 20:41:10 UTC | #2
Hi Michael,
I would recommend NOT going again to the CDN to retrieve the config. This should be considered an internal data structure by Genesys and could be subject to a breaking change with notification to only one. A better approach would be to call GET /api/v2/webdeployments/deployments/{deploymentId} and then get the configuration id out of the returned Configuration attribute. From there you should be able to call GET /api/v2/webdeployments/configurations/{configurationId}/versions and filter out the version that is Active. Our APIS are versioned and we enforce a well-defined breaking change policy on our APIs.
I hope that helps.
Thanks, John Carnell Director, Developer Engagement
John_Carnell | 2023-11-01 00:24:49 UTC | #3
Hi Michael,
One of my co-workers pointed out that you can't use the endpoints here because you are building a guest interface and need to be authorized. I would still recommend that you do not go against the CDN because that is not a version interface. I am going to forward your situation to the Web messaging team and see if they have any advice.
Thanks, John Carnell Director, Developer Engagement
Michael_Kork | 2023-11-01 07:50:20 UTC | #4
Hi John
I also tried /api/v2/webdeployments/deployments/{deploymentId}/configurations with the guest JWT token and I got 401. I guess these calls need an agent authorization.
Waiting for your reply.
DavidST | 2023-11-01 10:20:26 UTC | #5
Hi Michael,
You got 401 because you weren't authenticated. The web messaging guest api is inteneded for guest chats. We deployed a chat using the WMGA, which requires validation of aditional information from Genesys Apis, so, we deployed an api backend to talk with Genesys endpoints B2B.
Hope it helps.
David.
system | 2023-12-01 10:21:11 UTC | #6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 22848