Valyourise Logo

ValYouRise

DevelopmentApi

List pending organization invites for current user

Returns pending organization invites for the authenticated user, including the data needed to accept or decline them from the inbox UI.

GET
/api/org-invites/pending

Returns pending organization invites for the authenticated user, including the data needed to accept or decline them from the inbox UI.

PAT<token>

Personal Access Token

In: header

Response Body

application/json

curl -X GET "https://loading/api/org-invites/pending"
[
  {
    "invite": {
      "$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"
    },
    "organizationName": "string",
    "organizationSlug": "string",
    "workspaceName": "string"
  }
]
Empty