Valyourise Logo

ValYouRise

DevelopmentApi

Accept organization invite

Accepts an organization invite token for the authenticated user and creates the related organization or workspace membership.

POST
/api/org-invites/accept

Accepts an organization invite token for the authenticated user and creates the related organization or workspace membership.

PAT<token>

Personal Access Token

In: header

Request Body

application/json

inviteToken*string
Length16 <= length
[key: string]?never

Response Body

application/json

curl -X POST "https://loading/api/org-invites/accept" \  -H "Content-Type: application/json" \  -d '{    "inviteToken": "stringstringstri"  }'
{
  "$id": "string",
  "organizationId": "string",
  "email": "user@example.com",
  "normalizedEmail": "string",
  "inviteTokenHash": "string",
  "status": "pending",
  "workspaceRole": "workspace_admin",
  "workspaceId": "string",
  "invitedByUserId": "string",
  "expiresAt": "string",
  "acceptedByUserId": "string",
  "acceptedAt": "string"
}
Empty
Empty