---
title: "Create a new project invitation for collaboration"
method: POST
path: "/projects/{project_id}/invitations"
tags: ["Projects"]
---

# Create a new project invitation for collaboration

`POST /projects/{project_id}/invitations`

## Path parameters

- `project_id` string, id, required

## Headers

- `X-CompanyCam-User` string

## Response `201`

The invitation response

- ProjectInvitation
  - `id` string — The unique ID of invitation
  - `project_id` string — The unique ID of the project
  - `invite_url` string — The invite url to accept the invitation
  - `status` 'accepted' | 'expired' | 'pending' — The status of the invitation. It will be one of `accepted`, `expired`, or `pending`
  - `accepted_at` integer — Timestamp when the project invitation was accepted
  - `accepted_by_id` string — The unique ID of the company who accepted the invitation
  - `expires_at` integer — Timestamp when the project invitation expires
  - `creator_id` string — The unique ID of the user who created the invitation
  - `created_at` integer — Timestamp when the project invitation was created on the server
  - `updated_at` integer — Timestamp when the project invitation was last updated

## Other responses

- `400` — Bad Request
- `404` — Not found
- `500` — Unexpected error

---

[API](https://skmtc.net/companycam/apis/core-api.md) · [All operations](https://skmtc.net/companycam/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/companycam/core-api/versions/f2cd76b46603/schema)
