---
title: "Invite a member"
method: POST
path: "/api/organizations/members/invite"
tags: ["Organizations"]
---

# Invite a member

`POST /api/organizations/members/invite`

## Request

- Base URL: `https://demo.supercheck.dev`
- URL: `https://demo.supercheck.dev/api/organizations/members/invite`
- Auth: API key in cookie `better-auth.session_token`

Create a pending invitation and send email. Counts accepted invitations per user (`INVITE_RATE_LIMIT_MAX`, default 10/hour). Authorization, invalid or duplicate requests, and rejected inserts do not consume quota. Requires org_admin or org_owner. Only org_owner can invite org_admin. Requires an interactive browser session. Project-scoped CLI tokens receive 403.

## Request body

- OrganizationInviteRequest
  - `email` string, email, required
  - `role` 'org_owner' | 'org_admin' | 'project_admin' | 'project_editor' | 'project_viewer', required
  - `selectedProjects` string[]: Required for project_admin and project_editor. Must be active projects in the current organization.

## Response `200`

Invitation created

- object
  - `success` boolean
  - `data` object
    - `id` string
    - `email` string
    - `role` string
    - `status` string
    - `expiresAt` string, date-time
    - `inviteLink` string
    - `emailSent` boolean

## Other responses

- `400`: Invalid invite payload or user already a member
- `401`: Authentication required or token invalid
- `403`: Insufficient permissions
- `429`: Rate limit exceeded
- `500`: Internal server error

## Changes

- **2026-10-19** `bfc5fb32bad1`: 1 info
  - the endpoint scheme security `sessionCookie` was added to the API
- **2026-10-01** `0114b54c259d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/supercheck-io/apis/supercheck-api/changes/api/organizations/members/invite/post.md)

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) - [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) - [OpenAPI document](https://skmtc.dev/supercheck-io/apis/supercheck-api/revisions/7fa0162c07bd?raw)
