Score conversation
Send conversational message data from any source for AXIS scoring and analysis
Body
Stable ticket or conversation ID from the source system. CraftCX rejects duplicate imports for the same source and ticket_id.
1"ticket_123"
Conversation transcript items in chronological order. Each item requires external_id, kind, content, author, and timestamp. Use kind=comment for internal notes.
1 - 50 elements[
{
"external_id": "msg_1",
"kind": "message",
"content": "Why was I charged twice?",
"author": {
"type": "contact",
"external_id": "cus_123",
"name": "Jane Customer"
},
"timestamp": 1700000000000
},
{
"external_id": "msg_2",
"kind": "message",
"content": "I can help with billing.",
"author": {
"type": "ai",
"external_id": "billing-agent",
"name": "Billing Bot"
},
"ai_tool": "custom",
"timestamp": 1700000001000
},
{
"external_id": "note_1",
"kind": "comment",
"content": "Escalated to billing for license review.",
"author": {
"type": "teammate",
"external_id": "tea_123",
"name": "Jason"
},
"timestamp": 1700000002000
}
]Source system for this import. Defaults to custom. CraftCX uses source with ticket_id and message external_id to identify imports and reject duplicates.
1"zendesk"
Optional ticket or conversation subject from the source system.
"Billing question"
Response
The ingested event receipt. Note; we aim to
respond as quickly as possible, so we return a 202 Accepted
status code, and process the event asynchronously.The CraftCX ticket ID for the accepted import.
"pfh0haxfpzowht3oi213cqos"
The ticket ID from the source system.
"ticket_123"
The source namespace used for import identity.
"zendesk"
The import receipt status.
accepted "accepted"