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

# Node 与频道

> Node 目录、成员、版主、发现与外部频道

路径相对于 `/api/v1`。请求栏列出常用查询参数、JSON 字段及数据类型。成功栏列出状态码和部分顶层字段；可选字段随请求和账号权限变化。破折号表示此表未列参数。完整分组见[路由索引](https://docs.nodeloc.com/api-reference/v1/routes.md)。

## Node 与成员

### /nodes

| 方法与路径 | 入口权限 | 请求参数 | 成功响应 |
| - | - | - | - |
| `GET /nodes` | 公开 | 查询 `cursor`, `q`, `page`, `limit`, `per` | `200` `nodes`, `per_page`, `page`, `next_page`, `next_cursor` |
| `POST /nodes` | 登录 | JSON `parent` (string), `slug` (string), `name` (string), `description` (string), `color` (string), `open_for_nodes` (boolean), `visibility` (string), `topic_policy` (string), `rules` (object\[]), `logo_upload_id` (integer) | `201` `node` |
| `GET /nodes/recommended` | 公开 | 查询 `limit` | `200` `nodes` |
| `GET /nodes/slug-available` | 登录 | 查询 `slug`, `name` | `200` `slug`, `available`, `same_name` |
| `GET /nodes/square` | 公开 | — | `200` `groups` |
| `GET /nodes/{slug}` | 公开 | — | `200` `node`, `online_count`, `today_topics`, `moderators`, `widgets`, `banner_url`, `logo_dark_url`, `banner_dark_url`, `posting`, `rules`, `topic_template`, `permissions` |
| `PUT /nodes/{slug}` | 登录 | JSON `name` (string), `description` (string), `color` (string), `topic_policy` (string), `reply_policy` (string), `visibility` (string) | `200` `node` |
| `GET /nodes/{slug}/access` | 登录 | — | `200` `entries`, `groups` |
| `PUT /nodes/{slug}/access` | 登录 | JSON `entries` (object\[]) | `204` |
| `PUT /nodes/{slug}/appearance` | 登录 | JSON `color` (string), `logo_upload_id` (integer), `banner_upload_id` (integer), `logo_dark_upload_id` (integer), `banner_dark_upload_id` (integer), `icon_text` (string), `banner_preset` (integer), `base_color` (string), `pin_color` (string), `tint_enabled` (boolean) | `204` |
| `PUT /nodes/{slug}/automation` | 登录 | JSON `auto_close_hours` (integer), `private_after_hours` (integer), `solved_enabled` (boolean), `accept_reposts` (boolean), `min_topic_tier` (integer), `likes_no_rep` (boolean) | `200` `auto_close_hours`, `private_after_hours`, `solved_enabled`, `accept_reposts`, `min_topic_tier`, `likes_no_rep` |
| `POST /nodes/{slug}/certification` | 登录 | JSON `note` (string) | `204` |
| `PUT /nodes/{slug}/details` | 登录 | JSON `name` (string), `description` (string), `member_label` (string), `online_label` (string) | `200` `node` |
| `PUT /nodes/{slug}/favorite` | 登录 | — | `200` `favorite` |
| `DELETE /nodes/{slug}/favorite` | 登录 | — | `200` `favorite` |
| `GET /nodes/{slug}/flairs` | 公开 | — | `200` `flairs` |
| `POST /nodes/{slug}/flairs` | 登录 | JSON `text` (string), `color` (string), `style` (string), `icon` (string), `mod_only` (boolean), `grant_app` (string), `position` (integer) | `201` `flair` |
| `PUT /nodes/{slug}/flairs/{id}` | 登录 | JSON `text` (string), `color` (string), `style` (string), `icon` (string), `mod_only` (boolean), `grant_app` (string), `position` (integer) | `200` `flair` |
| `DELETE /nodes/{slug}/flairs/{id}` | 登录 | — | `204` |
| `GET /nodes/{slug}/invitees` | 登录 | 查询 `q` | `200` `users` |
| `POST /nodes/{slug}/invitees` | 登录 | JSON `username` (string) | `200` `invited`, `existing` |
| `GET /nodes/{slug}/invites` | 登录 | 查询 `before` | `200` `invites`, `next_before` |
| `POST /nodes/{slug}/invites` | 登录 | JSON `max_uses` (integer), `days` (integer), `expires_in` (integer), `requires_review` (boolean), `replace` (string) | `201` `invite` |
| `GET /nodes/{slug}/invites/mine` | 登录 | — | `200` `invite` |
| `DELETE /nodes/{slug}/invites/{id}` | 登录 | — | `204` |
| `GET /nodes/{slug}/join-requests` | 登录 | — | `200` `requests` |
| `POST /nodes/{slug}/join-requests` | 登录 | JSON `reason` (string) | `204` |
| `POST /nodes/{slug}/join-requests/{id}` | 登录 | JSON `approve` (boolean) | `204` |
| `GET /nodes/{slug}/manage` | 登录 | — | `200` `archived`, `role`, `can_edit`, `is_staff`, `is_admin`, `can_transfer`, `node`, `rules`, `moderators`, `pending_transfer` |
| `GET /nodes/{slug}/members` | 登录 | 查询 `offset`, `q`, `role` | `200` `members`, `next_offset` |
| `DELETE /nodes/{slug}/members/{user_id}` | 登录 | — | `204` |
| `PUT /nodes/{slug}/members/{user_id}/flair` | 登录 | JSON `flair_id` (integer) | `204` |
| `PUT /nodes/{slug}/membership` | 登录 | — | `204` |
| `DELETE /nodes/{slug}/membership` | 登录 | — | `204` |
| `GET /nodes/{slug}/mod-log` | 登录 | 查询 `before` | `200` `logs`, `next_before` |
| `PUT /nodes/{slug}/moderators/{user_id}` | 登录 | — | `204` |
| `DELETE /nodes/{slug}/moderators/{user_id}` | 登录 | — | `204` |
| `PUT /nodes/{slug}/notification` | 登录 | JSON `level` (string) | `200` `level`, `muted` |
| `PUT /nodes/{slug}/owner` | 登录 | JSON `user_id` (integer) | `200` `pending` |
| `DELETE /nodes/{slug}/owner` | 登录 | — | `204` |
| `POST /nodes/{slug}/owner/answer` | 登录 | JSON `accept` (boolean) | `204` |
| `GET /nodes/{slug}/restrictions` | 登录 | — | `200` `restrictions` |
| `POST /nodes/{slug}/restrictions` | 登录 | JSON `username` (string), `kind` (string), `reason` (string), `days` (integer), `delete_recent_hours` (integer), `notify` (boolean), `on_conflict` (string) | `204` |
| `PUT /nodes/{slug}/restrictions/{user_id}` | 登录 | JSON `kind` (string), `reason` (string), `days` (integer), `delete_recent_hours` (integer), `notify` (boolean), `on_conflict` (string) | `204` |
| `DELETE /nodes/{slug}/restrictions/{user_id}` | 登录 | — | `204` |
| `PUT /nodes/{slug}/rules` | 登录 | JSON `rules` (object\[]) | `200` `rules` |
| `PUT /nodes/{slug}/slow-mode` | 登录 | JSON `seconds` (integer) | `204` |
| `GET /nodes/{slug}/stats` | 登录 | — | `200` `week`, `daily` |
| `PUT /nodes/{slug}/tag-policy` | 登录 | JSON `min_tags` (integer), `restricted` (boolean), `options` (string\[]) | `200` `min_tags`, `restricted`, `options` |
| `PUT /nodes/{slug}/topic-template` | 登录 | JSON `template` (string) | `204` |
| `GET /nodes/{slug}/widgets` | 登录 | — | `200` `widgets`, `image_urls`, `nodes`, `suggestions`, `rules`, `tags`, `limits`, `types` |
| `PUT /nodes/{slug}/widgets` | 登录 | JSON `widgets` (object\[]) | `200` `widgets` |

### 其他接口

| 方法与路径 | 入口权限 | 请求参数 | 成功响应 |
| - | - | - | - |
| `GET /node-options` | 公开 | 查询 `q` | `200` `nodes` |
| `GET /node-parents` | 登录 | 查询 `q` | `200` `nodes` |
| `GET /node-picker` | 登录 | 查询 `mode`, `q`, `exclude` | `200` `nodes` |
| `GET /node-picker/{slug}` | 登录 | 查询 `mode`, `exclude` | `200` `node`, `rules`, `topic_template`, `profile`, `posting` |
| `GET /node-sections` | 公开 | 查询 `q` | `200` `nodes` |
| `POST /onboarding/nodes` | 登录 | JSON `nodes` (string\[]) | `200` `joined` |

## 外部频道绑定

| 方法与路径 | 入口权限 | 请求参数 | 成功响应 |
| - | - | - | - |
| `GET /nodes/{slug}/channels` | 登录 | — | `200` `channels`, `posters`, `platforms`, `poll_minutes`, `poll_range`, `max_channels` |
| `POST /nodes/{slug}/channels` | 登录 | JSON `kind` (string), `name` (string), `source` (string), `post_as` (string), `title_prefix` (string), `tags` (string\[]), `daily_limit` (integer), `review` (boolean), `embed` (boolean), `enabled` (boolean), `backfill` (integer), `poll_minutes` (integer) | `201` `channel` （新建 Webhook 时包含 `secret`） |
| `POST /nodes/{slug}/channels/check` | 登录 | JSON `kind` (string), `source` (string) | `200` `problem`, `found` |
| `PUT /nodes/{slug}/channels/{id}` | 登录 | JSON `kind` (string), `name` (string), `source` (string), `post_as` (string), `title_prefix` (string), `tags` (string\[]), `daily_limit` (integer), `review` (boolean), `embed` (boolean), `enabled` (boolean), `backfill` (integer), `poll_minutes` (integer) | `200` `channel` |
| `DELETE /nodes/{slug}/channels/{id}` | 登录 | — | `204` |
| `GET /nodes/{slug}/channels/{id}/items` | 登录 | 查询 `limit` | `200` `items` |
| `POST /nodes/{slug}/channels/{id}/secret` | 登录 | — | `200` `secret`, `webhook_url` |
| `POST /nodes/{slug}/channels/{id}/sync` | 登录 | — | `200` `new`, `problem` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.