search_logs
Retrieve and filter API request logs by HTTP status, error class, endpoint, or recipient. Get matching entries with a breakdown of error types to diagnose failures.
Instructions
Smart search over API request logs: fetch recent logs and filter by HTTP status, status class (e.g. only errors), endpoint path substring, and/or recipient. Returns matching entries plus a breakdown of error types. Use to find why requests are failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample | No | How many recent logs to scan (default 100) | |
| status | No | Exact HTTP status to match, e.g. 422 | |
| only_errors | No | Keep only entries with status >= 400 | |
| path_contains | No | Substring of the endpoint path, e.g. "/emails" | |
| recipient_contains | No | Substring to match against recipient/email fields |