---
title: "Create an invite token (admin/superadmin)"
method: POST
path: "/invite"
tags: ["invite"]
---

# Create an invite token (admin/superadmin)

`POST /invite`

## Request body

- object
  - `email` string, email, required
  - `role` string[], required
  - `teamId` string, required

## Response `200`

OK

- object
  - `success` true, required
  - `msg` string, required
  - `data` object, required
    - `token` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

## Changes

- **2026-05-01** `39082d385dda` — 3 breaking, 4 warning, 8 info
  - added the new required request property `teamId`
  - the `role` request property's minItems was increased to `1`
  - removed the success response with the status `201`
  - removed the optional property `details` from the response with the `403` status
  - …11 more
- **2025-08-11** `db719f9e3d34` — 3 breaking, 10 info
  - request body became required
  - the `email` request property type/format changed from `string`/`` to `string`/`email`
  - removed the success response with the status `200`
  - added the non-success response with the status `403`
  - …9 more
- **2025-04-20** `b97ec6888b3c` — 6 breaking, 2 warning, 8 info
  - the response property `data` became optional for the status `200`
  - the response property `msg` became optional for the status `200`
  - the response property `msg` became optional for the status `500`
  - the response property `success` became optional for the status `200`
  - …12 more

[Change history](https://skmtc.dev/bluewave-labs/apis/checkmate-api/changes/invite/post.md)

---

[API](https://skmtc.dev/bluewave-labs/apis/checkmate-api.md) · [All operations](https://skmtc.dev/bluewave-labs/apis/checkmate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bluewave-labs/checkmate-api/revisions/a9ac59e12c59/schema)
