The Warden AI API uses HTTP RPC-style methods and generally follow the schema:

https://api.warden.metaphy.ai/{version}/{service}.{method}

For example GET https://api.warden.metaphy.ai/v1/predictions.list to list all prediction queries from an API.

HTTP Methods

We strictly use only GET and POST methods. PUT and DELETE are not used.

GET

GET methods are used for reading data. Filtering, sorting, or pagination is done via query parameters.

curl "https://api.warden.metaphy.ai/v1/verify" \
  -H "Authorization: Bearer <ROOT_KEY>"

POST

POST methods are used for creating, updating, and deleting data. Data is passed as application/json in the request body.

curl -XPOST "https://api.warden.metaphy.ai/v1/predict/video" \
  -H "Authorization: Bearer <ROOT_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"videoUrl": "https://cdn.xyz.abc/123.mp4", "name": "My Video"}'