# List Request Logs `GET https://api.getprospect.com/v2/api-logs` The requests your API keys made in the last 15 days, newest first, one keyset page at a time: pass `metadata.pagination.next_cursor` as `before` for the next page while `has_more` is true. An API key reads its own rows only; in the app, a workspace admin reads every key's rows and a member the rows of their own keys. `key_id` narrows to one key. Free: costs no credits; counts against the per-second window of the search rate limit (0 units). ## Authentication Pass your API key in the `x-api-key` header. ## Query parameters - `per_page` (integer, optional, min: 1, max: 500, default: 100): Rows per page, newest first. - `before` (string, optional): Opaque cursor: `metadata.pagination.next_cursor` of the previous page. Absent for the first page; the last page answers `has_more: false` and `next_cursor: null`. - `key_id` (string, optional): Only the rows of this API key. It narrows the rows the caller may already read and never widens them: a key outside the caller's view returns no rows. ## Example request ```bash curl --request GET \ --url https://api.getprospect.com/v2/api-logs \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Response 200 One page of rows; `[]` with `has_more: false` when there are none. ```json { "success": true, "data": [ { "id": "6704f0b2c1d2e3f405162738", "time": "2026-10-08T09:12:44.512Z", "key_id": "66f2a1b3c4d5e6f708192a3b", "key_name": "CRM sync", "method": "POST", "path": "/v2/email/find", "status_code": 200, "duration_ms": 1840, "request_body": "{\"data\":{\"full_name\":\"Jane Doe\",\"domain\":\"example.com\"}}" } ], "metadata": { "timestamp": "2026-10-08T09:30:00.000Z", "pagination": { "per_page": 1, "has_more": true, "next_cursor": "1791450764512_6704f0b2c1d2e3f405162738" } } } ``` ## Response 400 Invalid request (`VALIDATION_ERROR`; `payload.code` says which kind of mistake). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-08T09:30:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "before must be a next_cursor value from a previous page", "payload": { "field": "before", "code": "invalid_format", "received_value": "abc", "received_type": "string", "constraints": { "matches": "before must be a next_cursor value from a previous page" } } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 408 The page query ran past its 5-second budget (`TIMEOUT`); ask again, or for a smaller `per_page`. ## Response 429 Over the per-second window of the `search` rate limit (`RATE_LIMIT`; reading logs spends no units); wait `Retry-After` seconds. ## Response 500 Unexpected server error.