POST
/
v2
/
agents
/
{agent_id}
/
convos
/
{convo_id}
curl --request POST \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/agents/{agent_id}/convos/{convo_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ID": "<string>",
  "userID": "<string>",
  "userName": "<string>",
  "userEmail": "jsmith@example.com",
  "userImage": "<string>",
  "userPhone": "<string>",
  "userBrowser": "<string>",
  "userProfilePic": "<string>",
  "origin": "web-chat",
  "messagesNum": 123,
  "interactionsNum": 123,
  "ts": 123,
  "tags": [
    "<string>"
  ],
  "convoTimeSeconds": 123,
  "firstMessageTS": 123,
  "lastMessageTS": 123,
  "userPlatform": "<string>",
  "state": "requested_chat",
  "chatAssignedTo": "<string>",
  "lastModified": 123,
  "sessionsNum": 123
}'
{
  "success": true,
  "message": "Conversation 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 conversation to

convo_id
string
required

The ID of the conversation to add

Body

application/json

Conversation to add to the agent

The body is of type object.

Response

200
application/json

Conversation added

The response is of type object.