FleetWorks sends webhook events to your configured server URL to provide real-time updates about call progress, outcomes, and extracted data. Each event includes relevant information about the call’s status and any associated data.

Call ended event payload

call_ended event is sent when a call is finished. It contains the call’s recording URL and a transcript of the conversation.
event
string
required
Event type: call_ended
callId
number
required
Unique call identifier
createdAt
string
required
Call created time
recordingUrl
string
URL to download call recording
formattedTranscript
string
Text transcription of the call
transcript
TranscriptMessage[]
extractedData
object
Extracted data from call’s transcript
inputData
object
The input payload provided when initiating the API request that triggered this call. This includes all the original request parameters, including any custom metadata that was passed in the request.
toPhone
string
The phone number that the call was made to
fromPhone
string
The phone number that the call was made from
callType
string
The type of call. Possible values:

Tool calls event payload

tool_calls events are sent during the call when a tool is called. It contains the function name and its arguments.
event
string
required
Event type: tool_calls
callId
number
required
Unique call identifier
createdAt
string
required
Call created time
function
ToolCallFunction

Transcript event payload

transcript events are sent in real-time during the call whenever new transcription data is received from the transcription service.
event
string
required
Event type: transcript
callId
number
required
Unique call identifier
createdAt
string
required
Call created time
formattedTranscript
string
Text transcription of the call
transcript
TranscriptMessage[]