Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.velahq.xyz/docs/llms.txt

Use this file to discover all available pages before exploring further.

List and filter events that have been ingested into an app.
To send events, use the Ingest Client. This page covers reading events.

List events

const { items, nextCursor } = await appRes.events.list();

With filters

const { items, nextCursor } = await appRes.events.list({
  level: 'error',
  type: 'payment.failed',
  from: '2024-06-01T00:00:00.000Z',
  to: '2024-06-30T23:59:59.999Z',
  limit: 50,
});
ParameterTypeDescription
levelEventLevelFilter by severity (info, warning, error, success)
typestringFilter by event name
fromstringStart of time range (ISO-8601)
tostringEnd of time range (ISO-8601)
limitnumberResults per page (default 25, max 100)
cursorstringPagination cursor from previous response

Cursor pagination

let cursor: string | null | undefined;

do {
  const page = await appRes.events.list({ limit: 100, cursor });
  processBatch(page.items);
  cursor = page.nextCursor;
} while (cursor);