# API logs

> widar marks AI output for the EU AI Act and California's AI Transparency Act: an invisible watermark and a signed C2PA credential on text, images, audio and video, in one API, by Bynn Intelligence.

Documentation index: https://widar.com/llms.txt

The examples in these docs use invented companies, such as Lumen Labs B.V., and invented values: none is a real check, mark, signature or certificate.

Section: API reference. URL: https://widar.com/docs/api-logs

Every request made with your workspace's keys in the last 30 days: method, path, status, key and time, never a body.

Updated December 3, 2026

The log holds no request or answer body, so it never holds content.

## List API requests

Each request made with the workspace's keys, newest first: time, method, path, status, the error's code, duration, key, mode and request id. Each request is kept 7 days and the counts 30, with no personal data.

`GET /v1/request_logs`. Who may: Owner, Admin and Developer. CLI: `widar logs list [--key-id <key_id>] [--mode <live|test>] [--status <2xx|4xx|5xx>] [--path </v1/...>] [--range <1h|24h|7d|30d>] [--request-id <req_...>] [--from-at <iso>] [--to-at <iso>] [--limit <n>] [--cursor <c_...>]`. MCP tool: `list_api_logs`.

**Parameters**
- `key_id` (id (key_)): The key's id.
- `mode` (enum): The mode. One of `live`, `test`.
- `status` (enum): The status. One of `2xx`, `4xx`, `5xx`.
- `path` (string): The path. At most 200 characters.
- `range` (enum, default "24h"): The range. One of `1h`, `24h`, `7d`, `30d`.
- `request_id` (id (req_)): The request's id.
- `limit` (integer, default 50): The limit. At least 1, at most 200.
- `cursor` (id (c_)): The cursor's id.
- `from_at` (string): The from at.
- `to_at` (string): The to at.

**Returns** page of API requests: The requests that match, newest first. The first page (no cursor) also has how many matched in all, how many succeeded, were refused and failed, their median time, the routes called, and the range's requests over time by result; a page read with a cursor has its requests only.

API:

```bash
curl -X GET https://api.widar.com/v1/request_logs \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar logs list
```

MCP tool `list_api_logs`:

```json
{
  "name": "list_api_logs",
  "arguments": {}
}
```

## Read an API request

One request by its request id: what was sent and what came back, the key masked and every value withheld, the error in plain words with what to change, and the call as a curl command.

`GET /v1/request_logs/{request_id}`. Who may: Owner, Admin and Developer. CLI: `widar logs get <request_id>`. MCP tool: `get_api_log`.

**Parameters**
- `request_id` (id (req_), required): The request's id. In the path.

**Returns** API request: The request and its answer, the error explained, and a curl command that reads the key from its environment variable.

API:

```bash
curl -X GET https://api.widar.com/v1/request_logs/req_7Kq2Xw9 \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar logs get req_7Kq2Xw9
```

MCP tool `get_api_log`:

```json
{
  "name": "get_api_log",
  "arguments": {
    "request_id": "req_7Kq2Xw9"
  }
}
```
