# getEvent (https://www.cal-sdk.com/docs/reference/get-event)

Use `getEvent` when you have an event's id and want its current details, including attendees that some providers leave out of listings.

```ts
import { getEvent } from '@cal-sdk/core';

const { event } = await getEvent({ calendar, eventId });
```

## Options [#options]

<TypeTable
  type={{
    eventId: { type: 'string', description: 'A single event, series, occurrence or exception id.', required: true },
    calendarId: { type: 'string', default: "'primary'" },
  }}
/>

Plus the [common options](/docs/reference#common-options).

## Result [#result]

<TypeTable
  type={{
    event: { type: 'CalendarEvent', description: 'The event. `providerMetadata` is typed by the provider.', required: true },
    warnings: { type: 'Warning[]', required: true },
  }}
/>

## Throws [#throws]

- `NotFoundError` when the event or calendar does not exist or is not visible to the user. `resource` says which.
