---
title: "List workspace protected access by account"
method: POST
path: "/api/workspaces/{workspaceId}/enterprise/protected-access/accounts"
tags: ["workspaces"]
---

# List workspace protected access by account

`POST /api/workspaces/{workspaceId}/enterprise/protected-access/accounts`

## Request

- Base URL: `https://rstream.io`
- URL: `https://rstream.io/api/workspaces/{workspaceId}/enterprise/protected-access/accounts`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Request body

- ListWorkspaceProtectedAccessAccountsParams
  - `deviceKeyId` string, required
  - `challenge` string, required
  - `signedAt` string, date-time, required
  - `signature` string, required
  - `q` string
  - `page` integer
  - `pageSize` integer

## Response `200`

Successful response.

- ListWorkspaceProtectedAccessAccountsResponse
  - `accounts` object[], required
    - `userId` string, required
    - `name` string, nullable, required
    - `email` string, email, nullable, required
    - `role` 'owner' | 'admin' | 'member' | 'viewer', required
    - `activeDeviceCount` integer, required
    - `pendingDeviceCount` integer, required
    - `lastTrustedAt` string, date-time, nullable, required
    - `lastRequestedAt` string, date-time, nullable, required
  - `page` integer, required
  - `pageSize` integer, required
  - `total` integer, required
  - `totalPages` integer, required

## Other responses

- `400`: Request validation failed.
- `401`: Authentication is required.
- `403`: The token is not authorized.
- `404`: Workspace not found.

---

[API](https://skmtc.dev/rstream/apis/rstream-api.md) · [All operations](https://skmtc.dev/rstream/apis/rstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rstream/apis/rstream-api/revisions/a840a2c91f22?raw)
