---
title: "POST /v1/user-invitations"
method: POST
path: "/v1/user-invitations"
tags: ["user-invitations"]
---

# POST /v1/user-invitations

`POST /v1/user-invitations`

Send a user invitation to a user. If the user already has an invitation, the invitation will be updated.

## Request body

- union
  - object
    - `type` 'PROJECT', required
    - `email` string, required
    - `projectId` string, required
    - `projectRole` union, required
      - 'ADMIN'
      - 'EDITOR'
      - 'OPERATOR'
      - 'VIEWER'
  - object
    - `type` 'PLATFORM', required
    - `email` string, required
    - `platformRole` union, required
      - 'ADMIN'
      - 'MEMBER'

## Response `201`

Default Response

- object
  - `id` string, required
  - `created` string, required
  - `updated` string, required
  - `email` string, required
  - `status` union, required
    - 'PENDING'
    - 'ACCEPTED'
  - `type` union, required
    - 'PLATFORM'
    - 'PROJECT'
  - `platformId` string, required
  - `platformRole` 'ADMIN' | 'MEMBER', nullable
  - `projectId` string, nullable
  - `projectRole` 'ADMIN' | 'EDITOR' | 'OPERATOR' | 'VIEWER', nullable
  - `link` string

## Changes

> 38 revisions in range; 1 could not be searched.

- **2024-09-03** `b95c8c8e8262` — 1 info
  - added the new optional request property `expireyInSeconds`
- **2024-08-14** `ed47604969c3` — 5 breaking, 6 warning, 2 info
  - the response property `platformRole` became nullable for the status `201`
  - the response property `projectId` became nullable for the status `201`
  - the response property `projectRole` became nullable for the status `201`
  - the `platformRole` response's property type/format changed from ``/`` to `string`/`` for status `201`
  - …9 more
- **2024-07-04** `6067892aa453` — 4 info
  - added `subschema #1, subschema #2` to the `platformRole` response property `anyOf` list for the response status `201`
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `projectRole` response property `anyOf` list for the response status `201`
  - removed `subschema #1, subschema #2` from the `platformRole` response property `anyOf` list for the response status `201`
  - removed `subschema #1, subschema #2` from the `projectRole` response property `anyOf` list for the response status `201`
- …earlier changes not shown

[Full history](https://skmtc.dev/rantirai/apis/activepieces-documentation/changes/v1/user-invitations/post.md)

---

[API](https://skmtc.dev/rantirai/apis/activepieces-documentation.md) · [All operations](https://skmtc.dev/rantirai/apis/activepieces-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rantirai/activepieces-documentation/revisions/225ff954244e/schema)
