Error: use postman to request https://api.sae1.pure.cloud/api/v2/webchat/guest/conversations

Followed by Click of Start Chat button

  1. Request URL:
    https://api.cac1.pure.cloud/api/v2/webchat/guest/conversations
  2. Request Method:
    POST
  3. Status Code:
    400
  4. code: "bad request"
  5. contextId: "98743a36-c71f-4d13-bc38-9d998a577e4f"
  6. details: []
  7. errors: []
  8. message: "Error accessing web deployment."
  9. status: 400
    Payload includes deploymentId organizationId
    Please advise.

Hi,

The deployment you're trying to access does not exist.
Can you check your configuration ?
The title of the post refers to SAE1 region but your url points to CAC1.
The contextId does refer indeed to SAE1.
Deployments are specific to each region.

Alternatively, you can do a manual Http request with following Api to check if your deployment is valid:

GET /api/v2/webdeployments/deployments/<deploymentId>
Content-Type: application/json
Genesys-Organization-Id: <your orgId>
Authorization: Bearer <TOKEN>

Note that it requires a bearer token.

See related doc

Regards,
V.P.

thanks U ! i will check it and try!

hello,I fixed the url request but I still get the error.
Request URL: https://api.sae1.pure.cloud/api/v2/webchat/guest/conversations
Here are Response:
"message": "Error accessing web deployment.",
"code": "bad request",
"status": 400,
"contextId": "778ee822-fa5d-4ba1-9ebf-0f74890b25f9",
"details": [],
"errors": []
Please advise!

Hi,

The deploymentId that you specified is not known in this region.
Double check your configuration.
Go In Admin -> Messenger Deployments
Then select the deployment you're working with.

Check that the deploymentId (in the url path) matches the one you specify in your query.

Best regards,
V.P.

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