cURL
curl --request POST \ --url https://app.livechatai.com/api/v2/agents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Customer Support Agent", "isLiveChatEnabled": true, "isImageSharingEnabled": true } '
Create a new AI agent in your workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Agent creation details
Name of the agent to be created
"Customer Support Agent"
Flag to enable or disable live chat for the agent
true
Flag to enable or disable image sharing
Agent created successfully