inspect_requests
Read the project's request inspector: the most recent requests that hit the mock API (method, path, query, status, origin, captured headers incl. x-* — authorization redacted to its scheme — and a body snippet for writes). Use it to VERIFY what your app / tests / webhook sender actually sent: point code at the mock, run it, then inspect. Pairs with custom_route catch-all bins (e.g. /webhooks/*) for webhook payload + signature debugging. TRAJECTORY ASSERTIONS: filters (method / path / status / status_gte / status_lte / since) return {count} of matches in the retained window, so a grader can assert the agent never called DELETE (method:"DELETE" → count 0), stayed inside /tasks, or produced no 4xx/5xx (status_gte:400 → count 0). Fork per run and the log is exactly one episode's trace. Requires the adminKey, except project "demo" whose inspector is public.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Filter: segment-aware path prefix ("/tasks" matches /tasks and /tasks/5, not /tasksomething). | |
| limit | No | Newest N entries to return (default 20, max 50). | |
| since | No | Filter: only requests at/after this time (epoch ms or ISO-8601) — record the episode start, assert about only that episode. | |
| method | No | Filter: HTTP method, comma-list ok (e.g. "DELETE" or "PUT,PATCH,DELETE"). | |
| status | No | Filter: exact response status (comma-list ok as a string via status_gte/lte for ranges). | |
| project | Yes | Project id. | |
| adminKey | No | Project adminKey (not needed for demo). | |
| status_gte | No | Filter: status >= this (400 = any error). | |
| status_lte | No | Filter: status <= this. |