---
title: "Get Invitation"
method: GET
path: "/v1/invitations/{invitation_id}"
tags: ["team-invitations"]
---

# Get Invitation

`GET /v1/invitations/{invitation_id}`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/invitations/{invitation_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/invitations/:invitation_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get an invitation for the email deep-link landing page.

Args:
    invitation_id: Invitation identifier.
    auth: Authenticated caller.
    service: Team service.

Returns:
    Invitation details, scoped to the caller's email address.

Raises:
    HTTPException: If the identity email is unavailable.

## Path parameters

- `invitation_id` string, uuid, required

## Response `200`

Successful Response

- TeamInvitationResponse: Response model for a team invitation.
  - `id` string, required
  - `team_id` string, required
  - `team_name` string, required
  - `email` string, required
  - `role` 'owner' | 'billing' | 'admin' | 'editor' | 'viewer', required: Team member roles with hierarchical permissions. Wire DTO mirror of the ORM ``TeamRoleType`` enum. Used only for API request/response serialization; authorization decisions route through the ORM matrix (``database_tables.permissions``), never this enum.
  - `status` 'pending' | 'accepted' | 'declined' | 'expired', required: Status of a team invitation.
  - `invited_by` string, required
  - `inviter_name` string, nullable
  - `inviter_email` string, nullable
  - `created_at` string, required
  - `expires_at` string, required
  - `email_sent` boolean: Whether the invitation email was successfully handed off to SendGrid. Only meaningful on the create-invite response; list endpoints do not track historical delivery and default to True.

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/invitations/:invitation_id/get.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
