ended - Cognigy Documentation

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

Emitted when the call ends normally, for example, when either party hangs up.

Category

Call

Callback Parameters

Parameter Type Description
session CallSession The ended call session.
endInfo CallEndInfo Information about why the call ended.

Example

client.on('ended', (session, endInfo) => {
  console.log('Call ended. Cause:', endInfo.cause);
  console.log('Originator:', endInfo.originator);
  console.log('Description:', endInfo.description);
});

More Information

Last modified on April 21, 2026