Triggered when call was completed succesfully

The schema defines the following properties:

state (string, enum, required)

Current state of the call. Must be equal to completed

This element must be one of the following enum values:

apiCode (string, required)

The code used to authorize against VoIP provider API.

callId (string, required)

Call identifier complient with UUID V4.

Additional restrictions:

timestamp (string, required)

Time when the event was dispatched. Must be complient with RFC3339 section 5.6. Example: 2016-01-30T15:56:03+02:00

actualTime (string, required)

Time when the event has actually happened. Must be complient with RFC3339 section 5.6. Example: 2016-01-30T15:56:03+02:00

duration (integer, required)

Duration of the call.

metadata (object)

Arbitrary metadata.

Example

{
  "state": "completed",
  "apiCode":"QWERTASDRZXC",
  "callId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "timestamp": "2016-04-03T15:24:16+02:00",
  "actualTime": "2016-04-03T15:24:11+02:00",
  "duration": 10
}