GET
/
open
/
workspaces
/
{workspaceId}
/
invites
curl --request GET \
  --url https://api.opnform.com/open/workspaces/{workspaceId}/invites \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "email": "jsmith@example.com",
    "role": "admin",
    "status": "pending",
    "valid_until": "2023-11-07T05:31:56Z"
  }
]

List Workspace Invites

Retrieve all pending or accepted invitations for a workspace.

Authentication & Scope

Requires workspace-users-read ability. The requester must be a member of the workspace.

Request

GET /open/workspaces/{workspaceId}/invites HTTP/1.1
Host: api.opnform.com
Authorization: Bearer <token>

Path Parameters

ParameterTypeDescription
workspaceIdnumberID of the workspace.

Response

200 OK – Array of Invite objects.

[
  {
    "id": 55,
    "email": "invitee@example.com",
    "role": "user",
    "status": "pending",
    "valid_until": "2024-06-25T23:59:59Z"
  }
]

403 Forbidden – Token lacks workspace-users-read or you lack access.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

workspaceId
string
required

Response

200
application/json

Successful

The response is of type object[].