Test And Accept
API ReferenceProjectusers

Accept project invitation

Accept an invitation to join a project

POST
/project-invitations/{token}/accept
AuthorizationBearer <token>

Clerk authentication token

In: header

Path Parameters

tokenstring
Length1 <= length

Response Body

curl -X POST "http://localhost:3001/project-invitations/string/accept"
{
  "success": true,
  "projectId": "string"
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}