---
title: "Send an email to invite a user to a team"
method: POST
path: "/team-invitations/send-code"
tags: ["Teams"]
---

# Send an email to invite a user to a team

`POST /team-invitations/send-code`

The user receiving this email can join the team by clicking on the link in the email. If the user does not have an account yet, they will be prompted to create one.

## Request body

- object
  - `team_id` string, required — The unique identifier of the team
  - `email` string, required — The email of the user to invite.
  - `callback_url` string, required — The base callback URL to construct an invite link with. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/team-invitations/accept` endpoint.

## Response `200`

Successful response

- object
  - `success` boolean, required
  - `id` string, required

---

[API](https://skmtc.net/hexclave/apis/hexclave-rest-api-2.md) · [All operations](https://skmtc.net/hexclave/apis/hexclave-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api-2/versions/1c982df54232/schema)
