Score a clip
Three calls. The file never goes on api.hookest.com.
- Get upload link — empty POST with Bearer. Returns a one-time
upload_url. - Upload the clip — PUT the MP4 to that URL. No Bearer. A 2xx means the file arrived, not that scoring started.
- Get prediction — poll. Stop on
succeededorfailed. 20 credits reserve when status becomesqueued.
If GET stays awaiting_upload after a 2xx upload, call Retry start. Duration is read from the file (max 32s). Needs predict:write on the key. This is a permission on the key, not a request header. Missing it returns 403 api_not_enabled.