POST
/
api
/
v2
/
agents
Create an agent
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
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Agent creation details

name
string
required

Name of the agent to be created

Example:

"Customer Support Agent"

isLiveChatEnabled
boolean
required

Flag to enable or disable live chat for the agent

Example:

true

isImageSharingEnabled
boolean

Flag to enable or disable image sharing

Example:

true

Response

Agent created successfully