Hookestdocs Postman OpenAPI llms.txt

GET/v1/predict/{id}0 Credits

Prediction holen

Job-Status. Id von Upload-Link. Andere Keys oder älter als 24 Stunden: 404.

Nach dem Link: awaiting_upload. Nach Upload: queued/running = 20 Credits. Bleibt awaiting_upload: Retry start. Stopp bei succeeded/failed. Poll kostenlos.

Das ist eine Berechtigung am Key, kein Request-Header. Fehlt sie, kommt 403 api_not_enabled.

Request-Parameter

NameInTypPflichtBeschreibung
id path string Pflicht Public id, pred_ plus 32 Hex.

Antwort

{
  "object": "prediction",
  "id": "pred_7b3e0c1d2e3f4a5b6c7d8e9f0a1b2c3d",
  "status": "succeeded",
  "created_at": "2026-09-15T14:02:11.000Z",
  "completed_at": "2026-09-15T14:02:24.000Z",
  "input": { "duration_sec": 18 },
  "result": {
    "band": "high",
    "hook_duration_sec": 2.1,
    "category": { "slug": "education" }
  },
  "error": null
}

Antwortfelder

NameTypPflichtBeschreibung
object string Pflicht Immer prediction.
id string Pflicht Public id, pred_ plus 32 Hex.
status string Pflicht awaiting_upload, queued, running, succeeded oder failed.
created_at string Pflicht Wann der Job angelegt wurde.
completed_at string Nullable Gesetzt, wenn der Job endet. Sonst null.
input object Nullable Akzeptierter Input oder null.
input.duration_sec number Nullable Wenn input gesetzt ist.
result object Nullable Score bei Erfolg. Sonst null.
result.band string Optional Wenn result gesetzt ist.
result.hook_duration_sec number Nullable Wenn result gesetzt ist.
result.category object Nullable Wenn result gesetzt ist. Kann selbst null sein.
result.category.slug string Optional Wenn result.category gesetzt ist.
error object Nullable Bei Fehler gesetzt. Sonst null.
error.type string Optional Bei Fehler: unsupported, unsafe oder system_error.
error.message string Optional Bei Fehler. Englischer Text.