---
title: "TypeScript SDK: Events"
description: "The methods of the TypeScript client under Events. The account's event log: page back through it, or poll it forward."
url: https://doorman.fyi/docs/sdk/reference/events
markdown: https://doorman.fyi/docs/sdk/reference/events.md
area: "SDKs and tools"
section: "TypeScript SDK"
---

# TypeScript SDK: Events

The methods of the TypeScript client under Events. The account's event log: page back through it, or poll it forward.

Source: https://doorman.fyi/docs/sdk/reference/events

## client.events.list

TypeScript:
```ts
client.events.list(params: ListEventsParams = {}): Promise<EventPage>
```

Operation [`events.list`](https://doorman.fyi/docs/reference/events.md#events-list): `GET /v1/events`

The account's event log, newest first, with `nextCursor` to continue.

Access `any`: any API key, or a console session. An app token needs `events:read` and `mail:read`.

## client.events.iterate

TypeScript:
```ts
client.events.iterate(params: ListEventsParams = {}): AsyncGenerator<InboxEvent, void, undefined>
```

Every event of the log, newest first, page by page.

## client.events.poll

TypeScript:
```ts
client.events.poll(after: number | string, params: PollEventsParams = {}): Promise<EventPoll>
```

`events.list` with `after`: the events with a larger `seq`, oldest first, and `latestSeq` to poll from next. Start from the newest `seq` you have, or 0.

## client.events.get

TypeScript:
```ts
client.events.get(eventId: string): Promise<EventDetail>
```

Operation [`events.get`](https://doorman.fyi/docs/reference/events.md#events-get): `GET /v1/events/{eventId}`

The event, the payload exactly as it was signed and sent, and every delivery it produced.

Access `any`: any API key, or a console session. An app token needs `events:read` and `mail:read`.
