cURL
curl --request POST \ --url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "conversation": { "ts": 123, "messagesNum": 0, "title": "<string>", "userID": "<string>" } } '
{ "success": true, "message": "<string>", "data": { "ID": "<string>", "ts": 123, "messagesNum": 123, "title": "<string>", "state": "open", "origin": "web", "userID": "<string>", "tags": [ "<string>" ], "user": {}, "feedback": {} } }
Creates a new conversation for the specified agent, using the V3 endpoints.
{ "conversation": { "ts": 1699999999, "messagesNum": 0, "userName": "John Doe", "userEmail": "[email protected]", "tags": ["new-lead"] } }
{ "success": true, "message": "Successfully created conversation: agent123_convo456", "data": { "ID": "agent123_convo456", "userID": "agent123_convo456", "ts": 1699999999, "messagesNum": 0, "userName": "John Doe", "userEmail": "[email protected]", "tags": ["new-lead"], "lastModified": 1699999999 } }
ts
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the agent
Show child attributes
Conversation created successfully
Conversation object with full details