# Check invitation status by UID

Checks whether an event with a specific iCalendar UID is already filed across any of the mailbox's calendars and returns the user's current RSVP response.

## `GET /api/v1/identities/{identityId}/calendars/invitations`

### Path parameters

- `identityId` (string, required) — Identity ULID identifier

### Query parameters

- `uid` (string, required, 1–512 chars) — iCalendar event UID

### Responses

**200** — Invitation status and current RSVP response

`application/json` → PimInvitationStatus

- `amOrganizer` (boolean, required) — True if the current user is the organizer of this event
- `calendarId` (string | null, required) — ID of the calendar holding this event, or null
- `found` (boolean, required) — True if this event is already saved in a calendar
- `href` (string | null, required) — DAV resource path of the stored event, or null
- `myAddress` (string | null, required) — Email address of this mailbox listed as an attendee, or null
- `myPartstat` (string | null, required) — Caller's current RSVP participation status (ACCEPTED, DECLINED, TENTATIVE), or null
- `organizer` (string | null, required) — Organizer email address, or null

**401** — unauthorized: the bearer credential is missing, malformed, expired, or revoked. Carries a `WWW-Authenticate: Bearer` challenge

`application/json` → ErrorBody

**404** — Mailbox not found or not accessible

`application/json` → ErrorBody

**503** — temporary_failure: the platform's storage could not answer just now; retry after the Retry-After window. Any operation can answer this. A write that got it may have been applied, so retry it with the same idempotency key where it takes one, or read the state back first (see Transient failures in the API description)

`application/json` → ErrorBody

### Example request

```bash
curl -X GET 'https://api.open.email/api/v1/identities/{identityId}/calendars/invitations' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.calendars.getInvitationStatus`](/docs/sdks/typescript/calendars/get-invitation-status)

```ts
const pimInvitationStatus = await openemail.calendars.getInvitationStatus(identityId, { uid: '…' })
```
