CanHook
Features Pricing Docs FAQ Blog Log in Get started free

API reference

Quick answer

The capture endpoint POST/GET/ANY https://canhook.com/h/{token} records a request and returns your configured mock response. The dashboard polls an authenticated JSON API to display captured requests.

Capture endpoint

ANY https://canhook.com/h/{token}
→ 200 {"ok":true,"captured":true}   (or your mock response)
→ 404 if the endpoint doesn't exist or is paused
→ 429 if the daily capture limit is reached

Dashboard API (authenticated)

Used by the live inspector; scoped to your account:

GET /api/requests?endpoint={id}&since={id}&method=&q=
GET /api/request/{id}
GET /api/deliveries?rule={id}

All dashboard API routes require an authenticated session and only return data you own.