Skip to main content

Webhooks

A webhook can be specified with realtime message types recording_start, session_start, and supervisor_join_session.

note

Webhooks are sent as POST requests with Content-Type: application/json.

upload_ready

The webhook specified in recording_start is called if the recording was successfully uploaded.

ParametersTypeDescription
statusStringValue "upload_ready".
msgStringStatus description.
rec_idStringAffected recording.
client_idStringAffected client.
recording_started_atTime ISO8601Server-time when the recording was started.
recording_first_frame_written_atTime ISO8601Server-time when the first video-frame was written to the recording-file.
recording_first_peerframe_captured_atTime ISO8601Timestamp when the first video-frame was captured at the client/peer side. This information is calculated using the RTCP synchronization info provided by the webrtc-browser-implementation.
recording_stopped_atTime ISO8601Server-time when the recording was stopped.
recording_file_duration_msIntDuration of the recording file in [ms]. This is the duration according to the video-PTS written to the webm-file. This should exactly match the duration a webm-player might show.
recording_file_size_bytesIntSize of recording file in bytes.
info

We think that for synchronization purposes the recording_first_peerframe_captured_at might be quite handy. Since it contains a timestamp from the client it should only be compared with timestamps originated from the client as well.

upload_failed

The webhook specified in recording_start is called if the upload of the recording failed.

ParametersTypeDescription
statusStringValue "upload_failed".
msgStringStatus description.
rec_idStringAffected recording.
client_idStringAffected client.
upload_status_codeIntStatus code when upload was tried. This reflects the http status code returned when trying to upload the recording.

session_finished

The webhook specified in session_start is called when the session has finished.

ParametersTypeDescription
statusStringValue "session_finished".
msgStringStatus description.
rec_idStringAffected recording.
client_idStringAffected client.
started_atTime ISO8601Start of this session.
stopped_atTime ISO8601End of this session.

supervisor_session_finished

The webhook specified in supervisor_join_session is called when the supervisor session has finished.

ParametersTypeDescription
statusStringValue "supervisor_session_finished".
supervisor_session_idStringID of the supervisor session.
supervisor_client_idStringID of the supervisor client.
agent_session_idStringID of the agent sessions.
agent_client_idStringID of the agent client.
started_atTime ISO8601Start of this supervisor session.
stopped_atTime ISO8601End of this supervisor session.