---
title: "Get an invitation by id"
method: GET
path: "/v1/invitations/{id}"
tags: ["Invitations"]
---

# Get an invitation by id

`GET /v1/invitations/{id}`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/invitations/{id}`
- Auth: API key in header `GREPR-API-KEY`

## Path parameters

- `id` string, required

## Response `200`

Invitation retrieved successfully

- ReadInvitation
  - `createdAt` string, date-time
  - `expiresAt` string, date-time
  - `id` string
  - `inviteeEmail` string
  - `inviterName` string
  - `roleIds` string[]: Role IDs assigned to the invitation
  - `teamAssignments` TeamAssignment[]: Team-specific role assignments
    - `role` 'LEADER' | 'MEMBER', required: The role within the team
    - `teamId` string, required: The ID of the team
    - `teamName` string: Team name (response-only, enriched by server)

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
