# PimToken

The PimToken type of the TypeScript SDK, which calendars.listFeedTokens and addressbooks.listFeedTokens take or answer.

```ts
type PimToken = {
  accessCount: number
  collectionId: string
  createdAt: number
  expiresAt: number | null
  id: string
  kind: ('calendar' | 'addressbook')
  label: string | null
  lastAccessedAt: number | null
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `accessCount` | `number` | Number of times this feed token has been accessed |
| `collectionId` | `string` | Target collection ULID |
| `createdAt` | `number` | Creation timestamp in epoch seconds |
| `expiresAt` | `number` \| `null` | Expiration timestamp in epoch seconds, or null for no expiry |
| `id` | `string` | Token identifier |
| `kind` | `('calendar' \| 'addressbook')` | Collection type ('calendar' or 'addressbook') |
| `label` | `string` \| `null` | User label for this feed token, or null |
| `lastAccessedAt` | `number` \| `null` | Timestamp of most recent access in epoch seconds, or null |

## Used by

| Method | What it does |
| --- | --- |
| [`calendars.listFeedTokens`](/docs/sdks/typescript/calendars/list-feed-tokens) | List calendar feed tokens |
| [`addressbooks.listFeedTokens`](/docs/sdks/typescript/addressbooks/list-feed-tokens) | List addressbook feed tokens |

## Used in

[`PimTokenCreated`](/docs/sdks/typescript/types/pim-token-created).
