---
title: "Get team invitation by code"
method: GET
path: "/api/v3/invitations/public/{code}"
tags: ["Team Invitations"]
---

# Get team invitation by code

`GET /api/v3/invitations/public/{code}`

## Request

- Base URL: `https://codemagic.io`
- URL: `https://codemagic.io/api/v3/invitations/public/{code}`
- Auth: none required
- TypeScript: <https://skmtc.dev/codemagic/apis/codemagic-api/docs/api/v3/invitations/public/:code/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `code` string, required

## Response `200`

Request fulfilled, document follows

- PublicInvitationSchemaNoPagination
  - `data` PublicInvitationSchema, required
    - `team_name` string, required
    - `inviter_display_name` string, nullable, required
    - `invitee_email` string, required
    - `roles` union[], required
      - union
        - InviteTeamRoleGrant
          - `role` 'admin' | 'member', required: A team role that can be granted to a member or an invitee. Ownership can't be granted.
          - `scope` 'team', required
        - InviteAppRoleGrant
          - `app_id` string, required
          - `role` 'app_developer' | 'app_viewer', required: An app role a member or an invitee can hold.
          - `scope` 'app', required
    - `created_at` string, date-time, required
    - `expires_at` string, date-time, required

## Other responses

- `400`: The request could not be validated
- `404`: The requested resource does not exist
- `429`: The rate limit has been exceeded

---

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