# Workbench request log

<div class="api-op" data-api-operation>
<div class="api-op__main">

<p class="api-endpoint"><span class="method method-get">GET</span> <code>/v1/requests</code></p>

The environment's authenticated /v1 calls, newest first, kept for the plan's retention (3/30/90 days). Each entry holds the method, the route template, the status, the latency, the request ID and the API key; never bodies, headers, tokens, query values, IP addresses or emails. Entries are written off the request path, so a call appears within seconds; under extreme load some may be dropped rather than slow the API.

<dl class="api-facts"><div><dt>Scope</dt><dd><code>workbench:read</code></dd></div><div><dt>Auth</dt><dd>Secret key (<code>sk_…</code>)</dd></div><div><dt>Since</dt><dd>1.0</dd></div></dl>

## Query parameters

<ul class="api-fields">
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">limit</code> <span class="api-field__type">integer</span></p>

<p class="api-field__chips">min 1 · max 100 · default <code>20</code></p>
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">after</code> <span class="api-field__type">string</span></p>
Cursor from next_cursor.
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">before</code> <span class="api-field__type">string</span></p>
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">api_key</code> <span class="api-field__type">string</span></p>
An API key ID (`key_…`).
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">status</code> <span class="api-field__type">string</span></p>
An exact status (`404`) or a status class (`4xx`).
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">path</code> <span class="api-field__type">string</span></p>
A route template exactly as listed, e.g. `/v1/organizations/{org}`.
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">organization</code> <span class="api-field__type">string</span></p>
An organization ID; matches calls whose route names that organization.
</li>
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">request_id</code> <span class="api-field__type">string</span></p>
The `Request-Id` response header of one call.
</li>
</ul>

## Headers

<ul class="api-fields">
<li class="api-field">
<p class="api-field__head"><code class="api-field__name">OhAuthCat-Version</code> <span class="api-field__type">string</span></p>
Minor version; defaults to the environment's pin.
</li>
</ul>

## Responses

<ul class="api-responses">
<li class="api-response"><span class="api-status api-status--ok">200</span> <span>A page of results. <span class="api-field__type">RequestLogList</span></span></li>
<li class="api-response"><span class="api-status api-status--bad">400</span> <span>Invalid request. Codes: <a href="/errors/parameter_invalid/">parameter_invalid</a>, <a href="/errors/parameter_missing/">parameter_missing</a>, <a href="/errors/version_unsupported/">version_unsupported</a> and resource-specific codes from the catalogue. <span class="api-field__type">Error</span></span></li>
<li class="api-response"><span class="api-status api-status--bad">401</span> <span>Codes: <a href="/errors/authentication_required/">authentication_required</a>, <a href="/errors/api_key_invalid/">api_key_invalid</a>. <span class="api-field__type">Error</span></span></li>
<li class="api-response"><span class="api-status api-status--bad">403</span> <span>Codes: <a href="/errors/api_key_scope_missing/">api_key_scope_missing</a>, <a href="/errors/ip_not_allowed/">ip_not_allowed</a>, <a href="/errors/plan_limit_reached/">plan_limit_reached</a>. <span class="api-field__type">Error</span></span></li>
<li class="api-response"><span class="api-status api-status--bad">429</span> <span>Code: <a href="/errors/rate_limited/">rate_limited</a>. Retry-After is set. <span class="api-field__type">Error</span></span></li>
<li class="api-response"><span class="api-status api-status--bad">503</span> <span>Code: <a href="/errors/service_unavailable/">service_unavailable</a>. Retry-After is set; writes are paused. <span class="api-field__type">Error</span></span></li>
<li class="api-response"><span class="api-status api-status--neutral">default</span> <span>Any other error, including <a href="/errors/internal_error/">internal_error</a>. Every code is in the error catalogue. <span class="api-field__type">Error</span></span></li>
</ul>

Errors share one shape; see the [error code catalogue](/errors/).

</div>
<div class="api-op__code">

**curl**

```sh wrap
curl -X GET \
  "https://api.ohauthcat.com/v1/requests" \
  -H "Authorization: Bearer $OHAUTHCAT_API_KEY"
```

**Node**

```javascript wrap
const response = await fetch("https://api.ohauthcat.com/v1/requests", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.OHAUTHCAT_API_KEY}`,
  },
});
const data = await response.json();
```

**Python**

```python wrap
import os
import requests

response = requests.get(
    "https://api.ohauthcat.com/v1/requests",
    headers={"Authorization": f"Bearer {os.environ['OHAUTHCAT_API_KEY']}"},
)
data = response.json()
```

```json title="Response 200" wrap
{
  "object": "list",
  "data": [
    {
      "id": "req_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
      "object": "request",
      "method": "example_method",
      "path": "example_path",
      "status": 1,
      "api_key_id": "key_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
      "organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
      "duration_ms": 1,
      "request_id": "01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
      "created_at": "2026-01-15T09:30:00Z"
    }
  ],
  "has_more": true,
  "next_cursor": "cur_01J9Z3K5V7W8X9Y0Z1A2B3C4D5"
}
```

</div>
</div>
