---
title: "Invite a new member."
method: POST
path: "/api/v1/teams/invitations"
tags: ["Team Invitations"]
---

# Invite a new member.

`POST /api/v1/teams/invitations`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/teams/invitations`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/teams/invitations/post.ts> (a function with typed inputs; its response is checked against the schema)

Sends an invitation email to the specified address. The recipient must accept the invitation before they become a team member.

## Request body

- object
  - `email` string, email: Email address of the person to invite
  - `role_id` integer: Role ID to assign to the invited member

## Response `201`

Team invitation created successfully

- object
  - `status` 'error' | 'success': The status of the response
  - `data` TeamInvitation
    - `id` integer: Invitation ID
    - `email` string, email: Email address of the invited person
    - `role_id` integer: Role ID assigned to the invited member
    - `team_id` integer: Team ID this invitation belongs to
    - `created_at` string, date-time: When was this invitation created?

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/teams/invitations/post.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
