---
title: "Invite a member"
method: POST
path: "/v0/api/organizations/{organizationId}/invites"
tags: ["Organizations"]
---

# Invite a member

`POST /v0/api/organizations/{organizationId}/invites`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/organizations/{organizationId}/invites`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/organizations/:organizationId/invites/post.ts> (a function with typed inputs; its response is checked against the schema)

Sends an invitation to join the organization. Requires OWNER or ADMIN role.

## Path parameters

- `organizationId` string, uuid, required

## Request body

- object
  - `email` string, email, required
  - `role` string, nullable

## Response `201`

Invite sent

- object
  - `success` boolean, required
  - `invite` object, required
    - `id` string, uuid, required
    - `toEmail` string, required
    - `expiresAt` string, date-time, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found — the referenced resource does not exist (including malformed resource IDs)

---

[API](https://skmtc.dev/anything/apis/anything-api.md) - [All operations](https://skmtc.dev/anything/apis/anything-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anything/apis/anything-api/revisions/1475488f3446?raw)
