Retrieve Web messaging config.json via API

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

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

1 Like

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

1 Like

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.

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.

2 Likes

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