# Request capture ## Send a request ```bash curl -X POST https://freebin.org/b/YOUR_BIN_ID/events \ -H "authorization: Bearer YOUR_API_KEY" \ -H "content-type: application/json" \ -d '{"status":"ok"}' ``` A stored capture returns `X-Freebin-Captured: true`. The response status, headers, and body come from the first matching response rule or the bin’s fallback configuration. A configured error status can still indicate a successful capture. ## List captured requests ```bash curl "https://freebin.org/api/v1/bins/YOUR_BIN_ID/interactions?limit=50" \ -H "authorization: Bearer YOUR_API_KEY" ``` Headers and JSON or form fields with common credential names are redacted before storage. Private gzip bodies are returned as `freebin:base64:`. GET and HEAD captures have a null body. The public demo applies additional redaction and does not expose source addresses. ## Inspector filtering The browser inspector filters its loaded retained history by free text, HTTP method, capture time range, path, content type, header name and value, and dotted JSON body fields. Filter and paging state is encoded in the URL and restored by browser history, making a filtered inspector URL shareable with another authorized user. Filters apply in the browser; the request-list API supports pagination rather than these filter predicates. Source: [Freebin API documentation](https://freebin.org/docs) and [Freebin quickstart](https://github.com/corridora/freebin/blob/main/QUICKSTART.md).