---
title: "Invite someone into the organization"
method: POST
path: "/api/v1/account/organizations/{id}/invitations"
tags: ["Invitations"]
---

# Invite someone into the organization

`POST /api/v1/account/organizations/{id}/invitations`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/account/organizations/{id}/invitations`
- Auth: HTTP bearer

With auto_accept, the invitation is spent in the same call and the user is created.

## Path parameters

- `id` string, uuid, required

## Request body

- OrganizationInviteRequest: OrganizationInviteRequest schema
  - `auto_accept` boolean
  - `email` string, nullable
  - `is_service` boolean
  - `name` string

## Response `200`

OK

- OrganizationInviteResponse: OrganizationInviteResponse schema
  - `accepted` object, nullable
    - `account` string
    - `account_created` boolean
    - `email` string
    - `generated_password` string, nullable
    - `organization_id` string, uuid
    - `user_id` string, uuid
  - `invitation` object
    - `account` string
    - `created_at` string, date-time
    - `email` string
    - `expires_at` string, date-time
    - `id` string, uuid
    - `token` string
  - `is_service` boolean

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `401`: Missing, invalid or expired credentials
- `403`: The caller may not do this
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
