---
title: "Invite a member"
method: POST
path: "/v1/org/project/{projectId}/member"
tags: ["Organization Project Member"]
---

# Invite a member

`POST /v1/org/project/{projectId}/member`

## Request

- Base URL: `https://api.roark.ai`
- URL: `https://api.roark.ai/v1/org/project/{projectId}/member`
- Auth: HTTP bearer

Invite a user to the project by email with a role. If the user has no Roark account yet, an invite email is sent and the membership is INVITED until they accept; existing users are added directly. Use this for onboarding and for assigning users to projects.

## Path parameters

- `projectId` string, required

## Request body

- InviteOrgProjectMemberInput
  - `email` string, email, required: Email address to invite
  - `role` 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER', required: Project role to grant

## Response `200`

The created membership

- object
  - `data` OrgProjectMember, required
    - `id` string, required
    - `projectId` string, required
    - `userId` string, nullable, required
    - `inviteeEmail` string, nullable, required
    - `role` 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER', required
    - `status` string, required
    - `configManaged` boolean, required
    - `createdAt` string, required
    - `updatedAt` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

> 187 revisions in range; 1 not diffed.

- **2026-09-28** `f647fa40d8bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/roarkhq/apis/roark-analytics-api/changes/v1/org/project/:projectId/member/post.md)

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) - [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/roarkhq/apis/roark-analytics-api/revisions/1a91a5c90e44?raw)
