The log holds no request or answer body, so it never holds content.
GET/v1/request_logs
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.
- 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- Returns
- 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.
Parameters
key_idThe key’s id.
modeThe mode. One of
live,test.statusThe status. One of
2xx,4xx,5xx.pathThe path. At most 200 characters.
rangeThe range. One of
1h,24h,7d,30d.request_idThe request’s id.
limitThe limit. At least 1, at most 200.
cursorThe cursor’s id.
from_atThe from at.
to_atThe to at.
curl -X GET https://api.widar.com/v1/request_logs \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/request_logs
GET/v1/request_logs/{request_id}
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.
- Who may
- Owner, Admin and Developer
- CLI
widar logs get <request_id>- MCP tool
get_api_log- Returns
- The request and its answer, the error explained, and a curl command that reads the key from its environment variable.
Parameters
request_idRequiredThe request’s id. In the path.
curl -X GET https://api.widar.com/v1/request_logs/req_7Kq2Xw9 \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/request_logs/{request_id}