API Documentation for Webhooks

WEBHOOK /webhooks/door-status

Notifies the system when a door is opened or closed.

Sample Payload:

{
    "webhook": "door_status",
    "status": "opened",
    "date_time": "current_date_time"
}

WEBHOOK /webhooks/sensor-status

Reads sensor status (temperature, etc.).

Sample Payload:

 
{
    "webhook": "sensor_status",
    "temperature": 72.9,
    "date_time": "current_date_time"
}

WEBHOOK /webhooks/health-check

Checks if the locker is alive.

Sample Payload:

{
    "webhook": "health_check",
    "status": "alive",
    "date_time": "current_date_time"
}