cURL
curl --request POST \ --url https://api.us-1.platform.polyai.app/{version}/{account_id}/{project_id}/chat/create \ --header 'X-API-KEY: <api-key>' \ --header 'X-TOKEN: <x-token>'
{ "conversation_id": "CONV-1234567890", "response": "Hi, how can I help?" }
You must request an API Key to use PolyAI APIs.
Your PolyAI API key.
Agent authentication token (connector).
API version
Account ID
Project ID
OK
Unique ID for the created conversation
"CONV-1234567890"
Initial response message from the agent
"Hi, how can I help?"