---
title: "Invite member to organization"
method: POST
path: "/v1/organizations/{id}/members/invite"
tags: ["Organization", "User"]
---

# Invite member to organization

`POST /v1/organizations/{id}/members/invite`

Send an invitation email to a user to join the organization. If the user doesn't exist, a pending user will be created.

## Request body

- object
  - `email` string, email, required — Email address of the user to invite.
  - `role_id` string — Optional role ID to assign the user to when they accept the invitation.

## Response `201`

Example response

- object
  - `id` string, required — ID of the newly created resource.

## Other responses

- `400` — Bad request
- `401` — Unauthorized request
- `403` — Forbidden
- `404` — The requested resource not found
- `500` — Internal Server Error

---

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