---
# @generated by sylphx-gen 0.1.0 from contracts@6a1bce71c4562366bcd933dde7dec01abbf14a9dde109a6ef2c4ea7c79f1fb3a. Do not edit.
title: "List in Namespaces"
description: "`realtime.namespaces.list` (GET /v1/namespaces): Lists the environment's namespaces."
type: reference
product: realtime
summary: "Lists the environment's namespaces."
updated: 2026-09-28
nav: false
---

Lists the environment's namespaces.

**Not available yet.** Sylphx Realtime is declared in the registry but no backend serves it: every call answers `501` with the problem code `UNIMPLEMENTED`.

- **Path** `GET https://api.realtime.sylphx.com/v1/namespaces`
- **Scope** `realtime:read`
- **Effect** `read` — nothing is written.
- **Collection** [namespaces](/docs/api/namespaces)
- **Query** `page_size`, `page_token`
- **Host** `https://api.realtime.sylphx.com`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `page_size` | `int32` | At most this many namespaces; the service caps it. |
| `page_token` | `string` | The `next_page_token` of the previous page. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `namespaces` | `Namespace[]` | The page of namespaces. |
| `next_page_token` | `string` | Empty on the last page. |

### Namespace

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The namespace name: 1 to 32 characters of `a-z`, `0-9`, `-` and `_`, starting with a letter. It is the part of a channel before the first colon, and never changes. Required. |
| `history` | `HistoryPreset` | How much history channels keep. Default NONE. One of `none`, `short`, `standard`. |
| `presence` | `bool` | Whether channels track who is present. Default off. |
| `client_publish` | `bool` | Whether a client holding a token with the publish capability may publish. Default off: only servers publish. |
| `create_time` | `timestamp` | When the namespace was created. Output only. |
| `update_time` | `timestamp` | When the rules last changed. Output only. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.realtime.sylphx.com/v1/namespaces" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.realtime.namespaces.list({})
```

**Rust**

```rust
let response = sx.realtime().namespaces().list(Default::default()).await?;
```

**MCP**

```json
{ "method_id": "realtime.namespaces.list", "args": {} }
```
