API
Your Agent can also be executed with HTTP requests. This is useful if you want to integrate your Agent with another service or use it in a different programming language.
Test
-
All your requests need to be authenticated with an API token. See instructions.
-
To start the chat, send a POST request to
https://release0.com/api/v1/agents/<Agent ID>/preview/startChat
.
The first response will contain asessionId
that you will need for subsequent requests. -
To send replies, send POST requests to
https://release0.com/api/v1/sessions/<session ID>/continueChat
Use the following JSON body:Check out the Start preview chat API reference for more information.
Live
-
To start the chat, send a POST request to
https://release0.com/api/v1/agents/<public ID>/startChat
.
The first response will contain asessionId
that you will need for subsequent requests. -
To send replies, send POST requests to
https://release0.com/api/v1/sessions/<session ID>/continueChat
Use the following JSON body:Check out the Start chat API reference for more information.