POST
/
v2
/
agents
/
{agent_id}
/
analytics
/
{convo_id}
curl --request POST \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/agents/{agent_id}/analytics/{convo_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "record": "load",
  "userID": "<string>",
  "ipAddress": "<string>",
  "countryCode": "<string>",
  "langCode": "<string>",
  "browser": "<string>",
  "platform": "<string>",
  "origin": "web-chat",
  "ts": 123,
  "interactionsNum": 123,
  "firstMessageTS": 123,
  "lastMessageTS": 123
}'
{
  "success": true,
  "message": "Analytics added successfully"
}

Authorizations

Authorization
string
header
required

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to add the analytics to

convo_id
string
required

The ID of the conversation associated with the analytics to be added

Body

application/json

Analytics to add to the agent

The body is of type object.

Response

200
application/json

Analytics added

The response is of type object.