For the complete documentation index, see llms.txt. This page is also available as Markdown.

Events

Retrieve processed events for server-side fraud/risk decisions.

Get processed event by id

get
/request/event/{id}

Returns a processed view of an event for fraud / risk evaluation.

Authentication Pass your secret key as a Bearer token: Authorization: Bearer <secret>. Secrets must not be sent as query parameters — they would be rejected by the upstream WAF and exposed in access logs.

Event availability / eventual consistency Events are processed asynchronously; the event may temporarily return 404 shortly after creation. The official Server SDK retries 404 for a short time window.

Authorizations
AuthorizationstringRequired

Use your Guardian secret key as a Bearer token.

Example: Authorization: Bearer sec_xxx

Do not pass the secret as a query parameter (?secret=...) — such requests are blocked by the upstream WAF and would leak credentials into access logs and referrers.

Path parameters
idstringRequired

Guardian event identifier (e.g. evt_123).

Responses
200

Processed event payload

application/json
get/request/event/{id}

List processed events (paginated)

get
/request/events

Returns a paginated list of processed events for the authenticated site.

Authentication Pass your secret key as a Bearer token: Authorization: Bearer <secret>. Secrets must not be sent as query parameters — they would be rejected by the upstream WAF and exposed in access logs.

Pagination Uses cursor-based pagination for stable, efficient traversal.

  • Use limit to control page size (1-100, default 20)

  • Use cursor from the previous response's pagination.nextCursor to fetch the next page

  • Check pagination.hasMore to determine if more results exist

Filtering

  • visitorId: Filter events by visitor identifier

  • before / after: Filter by timestamp range (ISO 8601 format)

  • order: Sort direction (desc for newest first, asc for oldest first)

Authorizations
AuthorizationstringRequired

Use your Guardian secret key as a Bearer token.

Example: Authorization: Bearer sec_xxx

Do not pass the secret as a query parameter (?secret=...) — such requests are blocked by the upstream WAF and would leak credentials into access logs and referrers.

Query parameters
limitinteger · min: 1 · max: 100Optional

Maximum number of events to return (1-100).

Default: 20
cursorstringOptional

Opaque cursor for pagination. Use nextCursor from the previous response.

visitorIdstringOptional

Filter events by visitor identifier.

beforestring · date-timeOptional

Return events created before this timestamp (ISO 8601).

Example: 2025-01-31T23:59:59Z
afterstring · date-timeOptional

Return events created on or after this timestamp (ISO 8601).

Example: 2025-01-01T00:00:00Z
orderstring · enumOptional

Sort order by creation time.

Default: descPossible values:
Responses
200

Paginated list of processed events

application/json
get/request/events

Last updated

Was this helpful?