Skip to main content
GET
/
v1
/
workspaces
/
{workspace_id}
/
memberships
List workspace memberships
curl --request GET \
  --url https://{defaultHost}/v1/workspaces/{workspace_id}/memberships \
  --header 'X-Authorization: <api-key>'
{
  "memberships": [
    {
      "id": "<string>",
      "user_id": "<string>",
      "workspace_id": "<string>",
      "role": "owner",
      "status": "pending",
      "invitation_token": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "user": {
        "id": "<string>",
        "email": "jsmith@example.com",
        "name": "<string>"
      }
    }
  ],
  "workspace_membership": {
    "id": "<string>",
    "role": "<string>",
    "status": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-Authorization
string
header
required

User Access token

Path Parameters

workspace_id
string
required

Workspace ID

Response

successful

memberships
object[]
workspace_membership
object

Current user's membership in this workspace