Search log events
Search log events for the project associated with your API key. Returns the same event payload shape used by the logs UI. Use POST when sending filters.
Request
- Base URLhttps://api.kapso.ai/platform/v1
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Free-text search query. Blank queries are allowed for browsing narrowed by source, filters, or problems_only.
Time window to search. Use context with around to fetch nearby events.
Log source to search. Use all to search every source.
Only return problem or error events.
Alias for problems_only.
Maximum number of events returned.
Cursor returned as pagination.next_cursor from a previous response.
Center a context search around this timestamp. Use with period=context.
Include this event in the page when available.
Include an event for this resource in the page when available.
Response
Success
Example response
{
"data": {
"events": [
{
"id": "evt_1",
"source": "external_api_log",
"level": "info",
"status": "failed",
"message": "POST /v1/messages",
"resource_type": "external_api_log",
"http_method": "POST",
"endpoint": "/v1/messages",
"api_key_name": "Production key",
"response_status": 422,
"event_type": "agent_iteration_started",
"flow_name": "Support workflow",
"step_identifier": "agent_1"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.