---
title: "Sends an organization invite to the given email."
method: POST
path: "/api/organization/invite"
tags: ["Organization"]
---

# Sends an organization invite to the given email.

`POST /api/organization/invite`

## Request

- Base URL: `https://passivelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://passivelogic.com/api/organization/invite`
- Auth: one of:
  - API key in header `X-PL-AUTH`
  - API key in header `Authorization: PL-API-KEY`
  - API key in header `PL-API-KEY`
  - HTTP basic
- TypeScript: <https://skmtc.dev/passivelogic/apis/passivelogic-http-api/docs/api/organization/invite/post.ts> (a function with typed inputs; its response is checked against the schema)

Generates and sends an invitation link for the given organization to the given user email with a default rolw of ReadOnlyUser.

## Request body

- InviteUserToOrganizationData: Parameters required to invite a user to an organization
  - `orgID` string, uuid, required: ID of the organization to which this invite pertains
  - `expiration` string, date-time, nullable: Timestamp at which this invitation will no longer be valid
  - `role` 'PrivilegedUser' | 'ReadOnlyUser' | 'StandardUser' | 'SuperUser'
  - `inviteEmail` string, required: Email to send the invite to

## Response `200`

OK

- OrgInviteResponse: Response indicating that an organization invitation was successfully sent.
  - `message` string, required: Message with additional information
  - `inviteID` string, uuid, required: ID of the invitation generated/sent

---

[API](https://skmtc.dev/passivelogic/apis/passivelogic-http-api.md) - [All operations](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/revisions/28fce63bcdbb?raw)
