---
title: "List collaboration rooms"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API › rooms

`GET /rooms`

## Authentication

- `cookieAuth`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/rooms' \
  --cookie 'better-auth.session_token=<better-auth.session_token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/rooms';
const options = {method: 'GET', headers: {cookie: 'better-auth.session_token=<better-auth.session_token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/rooms"

headers = {"cookie": "better-auth.session_token=<better-auth.session_token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "rooms": [
    {
      "roomId": "string",
      "tenantId": "string",
      "workspaceId": "string",
      "title": "string",
      "visibility": "private",
      "createdAt": 0,
      "property1": null,
      "property2": null
    }
  ]
}
```

- `rooms` (`listRooms.response.200.rooms`; array<object>, required)
  - `roomId` (`listRooms.response.200.rooms.roomId`; string, required)
  - `title` (`listRooms.response.200.rooms.title`; string, required)
  - `tenantId` (`listRooms.response.200.rooms.tenantId`; string, optional)
  - `workspaceId` (`listRooms.response.200.rooms.workspaceId`; string, optional)
  - `visibility` (`listRooms.response.200.rooms.visibility`; string, optional)
    - one of `"private"`, `"shared"`
  - `createdAt` (`listRooms.response.200.rooms.createdAt`; number, optional)

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listRooms.response.401.error`; string, required)
- `ok` (`listRooms.response.401.ok`; boolean, optional)
- `detail` (`listRooms.response.401.detail`; string, optional)
- `code` (`listRooms.response.401.code`; string, optional)


Source: https://tryshiba.dev/reference/api/rooms/listRooms/index.md
