I'm trying to use this API: /api/v2/knowledge/guest/sessions
but I can't figure out how to put the customer id and context in the body.
this is the body : {
"app": {
"deploymentId":"XXXXX",
"type" :"MessengerKnowledgeApp"
}, "customerId": "?????",
"contexts": [
{
"id": "?????"
}
]
}
A 403 error means you are not authorized to perform the requested action. Ensure you have the correct permissions to perform the requested actions and that you are authenticated successfully. Also try to turn on the Feature Toggle or fix the configuration.
403 error means that provided parameters are invalid.
Make sure that you're using a valid deploymentId when opening the websocket.
Also, verify the domain configuration.
Check if the domain has to be provided or not in your deployment settings. If, required, is it configured in your client ? Does it match what is expected ?
If you enforced domain check, you have to set the origin header accordingly in your request.
See picture below.
You may want to test manually the websocket connection with wscat:
My understanding is that these are your data in the context structure.
It's not strongly typed in the Api and the doc does not detail them, so my guess is that you don't need them in first place
But I could be wrong.
I would leave them empty for the time being with something like "contexts": [{}]