---
title: "Invite a user to an organization"
method: POST
path: "/organizations/{organizationId}/users"
tags: ["organizations"]
---

# Invite a user to an organization

`POST /organizations/{organizationId}/users`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/organizations/{organizationId}/users`
- Auth: HTTP bearer

Invite a user to an organization as an admin. Sends an invitation email to the invitee.

## Path parameters

- `organizationId` string, required

## Request body

- object
  - `invitee` string, required: The email address of the user to invite
  - `role_type` string: The role type for the user (optional)

## Response `204`

The invitation has been sent successfully

## Other responses

- `400`: Bad request
- `403`: Forbidden - not authorized
- `500`: Internal server error

---

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