v1

latestOpenAPI 3.0.12026-08-0435481.5 MB
Hooks

Get recent logs for a hook

Get recent logs that match the given query for the specified hook with pagination. See GET /api/logs for details on the enableCap parameter and capped-response headers.

get/api/hooks/{id}/recent-logs

Path parameters

idstring required

The unique identifier of the hook.

Query parameters

logKeystring

The log key to filter logs.

enableCapstring

When true, short-circuits the underlying count(*) query: results with more than 10,000 matching logs saturate Total-Number at the sentinel 10001 and emit Total-Number-Is-Capped: true; the Link header omits rel="last" and rel="next". Default false. (This endpoint is already scoped to a single hook over the last 24 hours, so the cap rarely triggers in practice.)

start_timestring

Inclusive lower bound on createdAt, in unix milliseconds. Supplying either start_time or end_time replaces the endpoint's default 24-hour lower bound, so callers can query an arbitrary historical window. Returns 400 if start_time > end_time when both are present.

end_timestring

Inclusive upper bound on createdAt, in unix milliseconds. Supplying either start_time or end_time replaces the endpoint's default 24-hour lower bound.

pageinteger

Page number (starts from 1).

page_sizeinteger

Entries per page.

Response

A list of recent logs for the hook.

idstring required
keystring required
createdAtnumber required