POST
/
telephony
/
callReceived
curl --request POST \
  --url https://demo.enneo.ai/api/mind/telephony/callReceived \
  --header 'Content-Type: application/json' \
  --data '{
  "contractId": 123456,
  "customerId": 789012,
  "phone": "+491234567890",
  "transcript": [
    {
      "speaker": "bot",
      "message": "Hello, my name is AI Assistant. How can I help you today?",
      "timestamp": "2024-01-23T14:32:11Z"
    }
  ],
  "userId": 42,
  "channelId": "call_123abc456"
}'
{
  "success": true,
  "ticketId": 123
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Body

application/json
contractId
integer | null

Optional contract id, if provided will be used for customer identification

customerId
integer | null

Optional customer id, if provided will be used for customer identification

phone
string | null

Optional phone number, if provided will be used for customer identification

transcript
object[]

Array of previous bot transcript entries

A single entry in a conversation transcript

userId
integer | null

Optional id of agent that accepted the call. If that agent has a browser window of enneo open, he will be redirected to the newly created ticket. Same effect as a subsequent /telephony/agentConnected API call.

channelId
string | null

Optional unique identifier of a third party system of this call. If provided, then it can be used as reference for any future updates to this call flow

Response

200
application/json
Successful operation
success
boolean
ticketId
integer

ID of the newly created enneo ticket