Skip to main content
POST
/
telephony
/
callCompleted
Complete call and store transcript
curl --request POST \
  --url https://demo.enneo.ai/api/mind/telephony/callCompleted \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channelId": "call_123abc456",
  "transcript": [
    {
      "speaker": "agent",
      "message": "Hello, my name is AI Assistant. How can I help you today?",
      "timestamp": "2024-01-23T14:32:11Z"
    }
  ],
  "ticketId": 123,
  "duration": 300,
  "totalDurationSeconds": 300,
  "botDurationSeconds": 45,
  "queueDurationSeconds": 30,
  "humanDurationSeconds": 225
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

JWT-based authentication

Body

application/json
channelId
string
required

Unique identifier of a third party system of this call. If a channelId was provided during a previous /agentConnected api call, the transcript will be appended to the corresponding ticket

Example:

"call_123abc456"

transcript
object[]
required

Complete transcript of the call

ticketId
integer | null

Optional ticket id of the enneo call ticket. If provided, the transcript will be attached to the given ticket id

Example:

123

duration
integer | null

DEPRECATED: Use totalDurationSeconds instead

Example:

300

totalDurationSeconds
integer | null

Total call duration from start to end in seconds

Example:

300

botDurationSeconds
integer | null

Duration spent with the voice bot (automated conversation) in seconds

Example:

45

queueDurationSeconds
integer | null

Duration spent waiting in queue for an agent in seconds

Example:

30

humanDurationSeconds
integer | null

Duration spent talking with a human agent in seconds

Example:

225

Response

Successful operation

Data format of Enneo success messages

success
boolean

Operation was successful

Example:

true