CallRecord
Defined in: src/types/webhook-events.ts:41
A call object from the calls field (connect and terminate events).
Indexable
Section titled “Indexable”[
key:string]:unknown
Properties
Section titled “Properties”biz_opaque_callback_data?
Section titled “biz_opaque_callback_data?”
optionalbiz_opaque_callback_data?:string
Defined in: src/types/webhook-events.ts:61
Echo of the biz_opaque_callback_data passed when the call was placed or accepted.
direction?
Section titled “direction?”
optionaldirection?:string
Defined in: src/types/webhook-events.ts:51
USER_INITIATED or BUSINESS_INITIATED.
duration?
Section titled “duration?”
optionalduration?:number
Defined in: src/types/webhook-events.ts:63
Call duration in seconds, on terminate.
end_time?
Section titled “end_time?”
optionalend_time?:string
Defined in: src/types/webhook-events.ts:59
Unix epoch seconds as a string. Only present when the call was picked up.
event:
string
Defined in: src/types/webhook-events.ts:49
connect or terminate.
optionalfrom?:string
Defined in: src/types/webhook-events.ts:45
The caller wa_id.
optionalid?:string
Defined in: src/types/webhook-events.ts:43
The call ID.
start_time?
Section titled “start_time?”
optionalstart_time?:string
Defined in: src/types/webhook-events.ts:57
Unix epoch seconds as a string. Only present when the call was picked up.
status?
Section titled “status?”
optionalstatus?:string
Defined in: src/types/webhook-events.ts:55
Final status of a terminated call: COMPLETED or FAILED.
timestamp?
Section titled “timestamp?”
optionaltimestamp?:string
Defined in: src/types/webhook-events.ts:53
Unix epoch seconds as a string.
optionalto?:string
Defined in: src/types/webhook-events.ts:47
The callee wa_id.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.