{"openapi":"3.1.0","info":{"title":"website-hook - Next.js OpenAPI Spec by Scalar","description":"This file has been autogenerated, check out the docs to see how to customize these options","version":"0.1.0"},"paths":{"/api/reference":{"get":{"summary":"use to set the summary","description":"use jsdoc tag to set the description","responses":{}}},"/api/webhooks":{"post":{"summary":"Create a webhook","description":"Allocates a new disposable webhook endpoint for the caller's IP and returns its URL, creation time, and expiry. Subject to rate limiting and an optional per-IP quota on active webhooks.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/statistics/cleanup":{"get":{"summary":"Preview cleanup","description":"Reports what an expired-data cleanup pass would remove, without deleting anything.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}},"delete":{"summary":"Run cleanup","description":"Permanently deletes expired webhooks and their captured requests, and returns what was removed.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/statistics/storage":{"get":{"summary":"Storage stats","description":"Returns current storage usage (webhook and captured-request counts/size), for the statistics dashboard.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/statistics/traffic":{"get":{"summary":"Traffic stats","description":"Returns request-volume statistics over the given time window (see resolveWindow for accepted values), for the statistics dashboard.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/statistics/webhooks":{"get":{"summary":"List webhooks","description":"Returns webhooks for the statistics dashboard, optionally filtered by the `q` search term.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/webhooks/{id}":{"get":{"summary":"Retrieve a webhook","description":"Returns metadata for the webhook with the given id, or 404 if it does not exist or has expired.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}},"delete":{"summary":"Delete a webhook","description":"Removes the webhook with the given id and its captured requests. Idempotent: deleting an already-gone webhook still returns 204 (spec R3).","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/webhooks/{id}/requests":{"get":{"summary":"List captured requests","description":"Returns a page of requests captured by the given webhook, newest first, paginated via `limit` (default 20, max 100) and an opaque `cursor`. 404 if the webhook does not exist.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/statistics/webhooks/{id}/requests":{"get":{"summary":"List requests for a webhook","description":"Returns up to `limit` (default 5, max 100) recent requests captured by the given webhook, for the statistics dashboard. 404 if the webhook does not exist.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}},"/api/webhooks/{id}/requests/{requestId}":{"get":{"summary":"Retrieve one captured request","description":"Returns the full captured request (headers, body, timing) identified by requestId under the given webhook. 404 if the webhook or the request does not exist.","parameters":[],"responses":{"unknown":{"description":"unknown return type: ReturnStatement","content":{"application/json":{}}}}}}},"servers":[{"url":"https://webhook.lik.is"}]}