Skip to content

CallRecord

Defined in: src/types/webhook-events.ts:41

A call object from the calls field (connect and terminate events).

[key: string]: unknown

optional biz_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.


optional direction?: string

Defined in: src/types/webhook-events.ts:51

USER_INITIATED or BUSINESS_INITIATED.


optional duration?: number

Defined in: src/types/webhook-events.ts:63

Call duration in seconds, on terminate.


optional end_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.


optional from?: string

Defined in: src/types/webhook-events.ts:45

The caller wa_id.


optional id?: string

Defined in: src/types/webhook-events.ts:43

The call ID.


optional start_time?: string

Defined in: src/types/webhook-events.ts:57

Unix epoch seconds as a string. Only present when the call was picked up.


optional status?: string

Defined in: src/types/webhook-events.ts:55

Final status of a terminated call: COMPLETED or FAILED.


optional timestamp?: string

Defined in: src/types/webhook-events.ts:53

Unix epoch seconds as a string.


optional to?: 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.