API Endpoints

Denzel exposes three different endpoints for end users.
All endpoints are relative to the host. For example if deployed locally on the default port the endpoint /info means localhost:8000/info


GET /info

Endpoint for deployment information. Basically returns the content of app/assets/info.txt.


POST /predict

Endpoint for performing predictions

Request Headers:
Form Parameters:
  • body – Data necessary for prediction, should match the interface defined
Status Codes:
  • 200 OK – Request accepted and entered the task queue
  • 400 Bad Request – Failed to in the reading / verification process.


GET /status/(str: task_id)

Endpoint for checking a task status

  • task_id – Task ID