Skip to main content

POST /api/v1/viewer-token

Create a short-lived JWT token scoped to specific filters. The token holder can only view events matching the specified constraints.

Request Body

tenant_id
string
Restrict to events for a specific tenant.
actor_id
string
Restrict to events by a specific actor.
ttl
integer
default:"3600"
Token lifetime in seconds. Minimum 60, maximum 86400 (24 hours).

Response

Examples

Embedding

Pass the token to your frontend to render the embedded viewer:
See the Embeddable Viewer guide for React component examples and TTL management.
Viewer tokens are read-only. They cannot be used to ingest events or access any write endpoints.