Skip to main content
GET
/
api
/
calls
/
get_end_of_call_report
/
{call_id}
Get End of Call Report
curl --request GET \
  --url https://voiceagent.infers.co/api/calls/get_end_of_call_report/{call_id} \
  --header 'Authorization: <api-key>'
{
  "call_id": "wiuvnwein",
  "type": "phone_call",
  "summary": "The call was very brief, consisting only of a greeting from the AI and a simple acknowledgment from the user saying \"Yes.\"",
  "transcript": "AI: Hello.\nUser: Yes.\n",
  "recordingUrl": "https://...mono.wav",
  "stereoRecordingUrl": "https://...stereo.wav",
  "durationMs": 7734,
  "durationSeconds": 7.734,
  "durationMinutes": 0.1289,
  "cost": 0,
  "startedAt": "2025-04-11T09:49:33.624Z",
  "endedAt": "2025-04-11T09:49:41.358Z",
  "endedReason": "customer-ended-call",
  "messages": [
    {
      "role": "system",
      "message": "This is a blank template with minimal defaults, you can change the model, temperature, and messages.",
      "time": 1744364968450,
      "secondsFromStart": 0
    },
    {
      "role": "bot",
      "message": "Hello.",
      "time": 1744364970174,
      "endTime": 1744364970494,
      "secondsFromStart": 1.44,
      "duration": 320,
      "source": ""
    },
    {
      "role": "user",
      "message": "Yes.",
      "time": 1744364973594,
      "endTime": 1744364973994,
      "secondsFromStart": 4.86,
      "duration": 400.0002
    }
  ]
}

Get End of Call Report

Use this endpoint to fetch a comprehensive report at the end of a call based on call ID.

Authorizations

Authorization
string
header
required

API key for authentication. Email [email protected] to get your API key

Path Parameters

call_id
string
required

The unique ID of the call.

Response

Successful Response

call_id
string
required
summary
string
required

Auto-generated summary of the conversation.

transcript
string
required

Full conversation transcript in plain text.

messages
object[]
required
type
enum<string>

The type of call.

Available options:
phone_call,
web_call
recordingUrl
string<uri>
stereoRecordingUrl
string<uri>
durationMs
integer

Call duration in milliseconds.

durationSeconds
number

Call duration in seconds.

durationMinutes
number

Call duration in minutes.

cost
number

Cost of the call (if applicable).

startedAt
string<date-time>
endedAt
string<date-time>
endedReason
string

Why the call ended.