# AddressListEntry

The AddressListEntry type of the TypeScript SDK, which accountAddressLists.addEntry and 3 more methods take or answer.

```ts
type AddressListEntry = {
  createdAt: number
  expiresAt: number | null
  hitCount: number
  lastHitAt: number | null
  note: string | null
  pattern: string
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `createdAt` | `number` | Timestamp when pattern was added in epoch seconds |
| `expiresAt` | `number` \| `null` | Epoch seconds after which the entry stops applying and disappears from the list, or null for never |
| `hitCount` | `number` | Evaluations this entry decided (at least: hits within ten seconds of the previous recorded one are folded into it) |
| `lastHitAt` | `number` \| `null` | Epoch seconds of the last recorded hit, or null if never matched |
| `note` | `string` \| `null` | Optional operator note, or null |
| `pattern` | `string` | Address pattern (e.g. user@example.com, *@example.com, or *@.example.com) |

## Used by

| Method | What it does |
| --- | --- |
| [`accountAddressLists.addEntry`](/docs/sdks/typescript/account-address-lists/add-entry) | Add a pattern to an address list |
| [`accountAddressLists.listEntries`](/docs/sdks/typescript/account-address-lists/list-entries) | List patterns in an address list |
| [`mailboxAddressLists.addEntry`](/docs/sdks/typescript/mailbox-address-lists/add-entry) | Add a pattern to an address list |
| [`mailboxAddressLists.listEntries`](/docs/sdks/typescript/mailbox-address-lists/list-entries) | List patterns in an address list |

## Used in

[`AddressListEntryPage`](/docs/sdks/typescript/types/address-list-entry-page).
