search_logs
Search API request logs to troubleshoot failures. Filter by HTTP status, endpoint path, or recipient to find error details and failure reasons.
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 |