# Get Workspace Sharing Settings

`GET /shares/workspace`

Lists the authenticated owner’s workspace members and pending invitations, along with workspaces they have joined.
## Authentication

Use one of the following authentication alternatives:

- **API token** (`bearerToken`) : Send a named API token in the Authorization header. Send it in the `Authorization: Bearer <token>` header.
- **Better Auth browser session** (`browserSession`) : Use the Better Auth session cookie from a signed-in browser session. Send it in the `better-auth.session_token` cookie.
## Token permissions

API tokens must include `pages:read`.
## Responses

### 200

Workspace members, joined workspaces, and pending invitations.


### `application/json`

```json
{
  "ownerId": "00000000-0000-0000-0000-000000000000",
  "ownerName": "string",
  "members": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "workspaceOwnerId": "00000000-0000-0000-0000-000000000000",
      "memberId": "00000000-0000-0000-0000-000000000000",
      "memberName": "string",
      "memberEmail": "string",
      "memberAvatarUrl": "string",
      "role": "viewer",
      "createdAt": "string"
    }
  ],
  "memberships": [
    {
      "ownerId": "00000000-0000-0000-0000-000000000000",
      "ownerName": "string",
      "role": "viewer",
      "joinedAt": "string"
    }
  ],
  "pendingInvitations": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "targetType": "string",
      "targetId": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "permission": "viewer",
      "canManage": false,
      "deliveryStatus": "pending",
      "expiresAt": "string",
      "createdAt": "string"
    }
  ]
}
```

### 403

The API token is missing a required scope: pages:read.


### `application/json`

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
