Skip to main content
POST
/
webhooks
/
end-of-call-report
End of call report webhook
curl --request POST \
  --url https://app2.freyavoice.ai/api/v2/webhooks/end-of-call-report \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "end-of-call-report",
  "callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "durationMs": 123,
  "status": "<string>",
  "callEndReasonCategory": "<string>",
  "customer": "<string>",
  "startedAt": "2023-11-07T05:31:56Z",
  "endedAt": "2023-11-07T05:31:56Z",
  "recordingUrl": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "summary": "<string>",
  "endedReason": "<string>",
  "transcript": "<string>"
}
'

Body

application/json
type
enum<string>
required
Available options:
end-of-call-report
callId
string<uuid>
required

Unique identifier for the call

workspaceId
string<uuid>
required

Workspace ID

durationMs
number
required

Call duration in milliseconds

status
string
required

Call status code

callEndReasonCategory
string
required

Call end reason category

customer
string
required

Customer phone number

startedAt
string<date-time>
required

ISO8601 timestamp when call started

endedAt
string<date-time>
required

ISO8601 timestamp when call ended

recordingUrl
string<uri>
required

URL to access the call recording

timestamp
string<date-time>
required

ISO8601 timestamp when webhook was sent

summary
string

AI-generated summary of the call

endedReason
string

Reason why the call ended (e.g., 'customer-ended-call', 'assistant-ended-call')

transcript
string

Full conversation transcript with timestamps

Response

200

Webhook received successfully