Skip to main content
GET
/
api
/
v1
/
workspace-memberships
List Workspace Memberships
curl --request GET \
  --url https://api.example.com/api/v1/workspace-memberships \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "privileges": [
        "ROLE_WORKSPACE_OWNER"
      ],
      "userId": "<string>",
      "workspaceId": "<string>",
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "user": {
        "id": "<string>",
        "email": "[email protected]",
        "name": "<string>",
        "picture": "<string>",
        "updatedAt": "2023-11-07T05:31:56Z",
        "createdAt": "2023-11-07T05:31:56Z",
        "emailVerified": true
      },
      "workspace": {
        "name": "<string>",
        "id": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

user_id
string[] | null
workspace_id
string<uuid4>[] | null
expand
enum<string>[] | null
Available options:
user,
workspace

Response

Successful Response

data
WorkspaceMembershipDto · object[]
required