---
title: "Create a team invitation"
method: POST
path: "/v1/teams/{team_id}/team_invitations"
tags: ["Team Invitations"]
---

# Create a team invitation

`POST /v1/teams/{team_id}/team_invitations`

This endpoint allows you to create a team invitation from an existing team and invitation.

If you are using a personal access token, you must have "can manage" permission on the team or be a workspace manager.

## Path parameters

- `team_id` integer, required

## Request body

- object
  - `id` integer
  - `invitation_id` integer, required
  - `team_id` integer
  - `is_team_leader` boolean
  - `team_permission` 'can_manage' | 'cannot_manage' — team_permission is replaced by is_team_leader
  - `incident_permission` 'can_view' | 'can_edit' | 'full_access'

## Response `201`

Team invitation created

- object
  - `id` integer
  - `invitation_id` integer
  - `team_id` integer
  - `is_team_leader` boolean
  - `team_permission` 'can_manage' | 'cannot_manage' — team_permission is replaced by is_team_leader
  - `incident_permission` 'can_view' | 'can_edit' | 'full_access'

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Permission denied
- `404` — Not found
- `409` — Data conflict
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
