Postman
Collection v2.1 — dosya veya URL ile import. Bu sitedeki uçlarla aynı. JSON dosyasını import et, bu HTML’i değil.
Import
Dosya. Postman → Import → File → hookest.postman_collection.json.
URL. Postman desktop → Import → Link → yapıştır:
https://api.hookest.com/hookest.postman_collection.json
https://api.hookest.com/postman.json
Lokal: http://localhost:3000/hookest.postman_collection.json. Postman Web localhost çekemez.
Koleksiyon → Variables → api_key = hk_live_…. base_url = https://api.hookest.com.
Anahtarı query’ye koyma. Koleksiyon auth Bearer. Query api_key / key her zaman 401.
Değişkenler
| Değişken | Kullanan |
|---|---|
api_key | Her /v1/* (Bearer) |
base_url | Host |
hook_id | Hook getir |
upload_url | Klibi yükle (Get upload link doldurur) |
upload_id | Yalnız Retry start |
prediction_id | Get prediction (Get upload link doldurur) |
webhook_url | Webhook set |
Predict, Score a clip klasöründe üç istek. Önce Yükleme linki — Send, dosya yok. Koleksiyon upload_url, upload_id, prediction_id kaydeder. Sonra Klibi yükle — Body → binary → Select File → .mp4 → Send. Auth kapalı. Sonra Get prediction. 2xx yüklemeden sonra status awaiting_upload kalırsa klasör dışındaki Retry start.