---
title: "Invite an email to the org with a role (owner/admin only; the invite email is sent for you)"
method: POST
path: "/v1/orgs/{org_id}/invites"
tags: ["invites"]
---

# Invite an email to the org with a role (owner/admin only; the invite email is sent for you)

`POST /v1/orgs/{org_id}/invites`

## Request

- Base URL: `https://api.wavehouse.cloud`
- URL: `https://api.wavehouse.cloud/v1/orgs/{org_id}/invites`
- Auth: one of:
  - API key in cookie `whc_session`
  - HTTP bearer

## Path parameters

- `org_id` string, required

## Headers

- `Idempotency-Key` string: A unique value you choose per logical request (a random UUID). A retry with the same key and the same request within 24 hours returns the first response, marked Idempotency-Replayed: true, instead of acting twice. The same key with a different request is refused with 422; one sent while the first is still running gets 409.

## Request body

- CreateInviteInput
  - `email` string, email, required: Email to invite
  - `role` 'owner' | 'admin' | 'member', required: Org role to grant on accept

## Response `201`

Created

- InviteView
  - `accept_url` string
  - `created_at` string, date-time
  - `email` string, required
  - `expires_at` string, date-time
  - `invite_id` string, required
  - `org_id` string, required
  - `role` string, required
  - `status` string, required

## Other responses

- `429`: Rate limited, per client IP, API key or org; a client IP is also refused on every route for a while after repeated authentication failures. A limited operation carries RateLimit-Policy and RateLimit on every response; wait Retry-After seconds before retrying.
- `default`: Error

---

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