---
title: "Create an organization membership"
method: POST
path: "/api/public/v1/organization-membership"
tags: ["OrganizationMembershipResource"]
---

# Create an organization membership

`POST /api/public/v1/organization-membership`

## Request

- Base URL: `https://allquiet.app` (the document declares no server; this is the origin it was published from)
- URL: `https://allquiet.app/api/public/v1/organization-membership`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/allquiet/apis/all-quiet-public-api/docs/api/public/v1/organization-membership/post.ts> (a function with typed inputs; its response is checked against the schema)

Adds a user to an organization with a specified role.

**Required API key permissions**

- **Scope:** `organization-memberships:create`
- **Accepted key types:** organization API key (org-wide), personal access token (org-wide)
- **Access:** Operates on a single organization. Pass organizationId when your API key spans multiple organizations.
- **Required organization role (user-linked keys only):** Owner
- Organization API keys are not subject to organization or team role checks.

## Query parameters

- `organizationId` string, uuid
- `provision` boolean

## Request body

- AllQuietApiPublicOrganizationMembershipsOrganizationMembershipResourceRequest
  - `userId` string, uuid, nullable
  - `email` string, email, nullable
  - `role` string, required

## Response `200`

OK

- AllQuietApiPublicOrganizationMembershipsOrganizationMembershipResourceResponse
  - `id` string, uuid
  - `organizationId` string, uuid
  - `userId` string, uuid, nullable
  - `email` string, nullable
  - `role` string, nullable
  - `isProvisioned` boolean

---

[API](https://skmtc.dev/allquiet/apis/all-quiet-public-api.md) - [All operations](https://skmtc.dev/allquiet/apis/all-quiet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/allquiet/apis/all-quiet-public-api/revisions/a69168a82f2c?raw)
