A webhook is an HTTP endpoint receiving the tags detected.

Cochl dashboard users can set up a webhook for a project, and detections on the project will be sent to the webhook.

HTTP method

POST HTTP requests will be sent to a webhook.

HTTP request body

HTTP request body will include detection result in the JSON format below.

You can refer to the list of possible tag_name values here.

The timestamp value indicates when the detection happened, and it’s in Unix time format.

    "tag_name": "Gunshot",
    "project_id": "b48adb0a-9bfe-4e30-9ac8-61b8a10541ff",
    "timestamp": 1679494615,