API Documentation
Interact programmatically with the Disaster Detection Platform. Our RESTful API on FastAPI processes imagery and manages inference queues.
/api/v1/detect
Submit a disaster image for processing. The image is passed to the GPU workers via Redis queue.
cURL Example
curl -X POST http://YOUR_IP/api/v1/detect \
-F "[email protected]" \
-F "priority=normal"
/api/v1/jobs/{job_id}
Retrieve the current status of an ongoing detection job (e.g. pending, processing, completed, failed).
cURL Example
curl http://YOUR_IP/api/v1/jobs/123e4567-e89b-12d3...
/api/v1/results/{job_id}
Once completed, fetch the full inference results including disaster type, confidence score, and bounding boxes.
cURL Example
curl http://YOUR_IP/api/v1/results/123e4567-e89b-12d3...
/api/v1/stats
Get overall statistics of the AI platform including number of detections, device metrics, and system load.
cURL Example
curl http://YOUR_IP/api/v1/stats