> ## 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.

# Topics and posts

> Topics, posts, drafts, tags, edit history, and reading progress

Paths are relative to `/api/v1`. Inputs list query parameters and JSON fields with their types where known. The success column shows status codes and selected top-level fields, including conditional fields. A dash means no inputs are listed here. Browse other modules in the [route index](https://docs.nodeloc.com/en/api-reference/v1/routes.md).

## Topics, posts, and tags

### /me

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /me/node-blocks` | Session | — | `200` `nodes` |

### /nodes

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `PUT /nodes/{slug}/block` | Session | — | `204` |
| `DELETE /nodes/{slug}/block` | Session | — | `204` |
| `GET /nodes/{slug}/pins` | Public | — | `200` `topics` |
| `GET /nodes/{slug}/tags` | Public | — | `200` `tags` |
| `PUT /nodes/{slug}/tags/{name}` | Session | JSON `name` (string), `create` (boolean), `description` (string), `color` (string), `style` (string), `icon` (string), `group_id` (integer), `node_slug` (string), `staff_only` (boolean), `rules` (string) | `200` `tag` |
| `PATCH /nodes/{slug}/tags/{name}` | Session | JSON `name` (string), `create` (boolean), `description` (string), `color` (string), `style` (string), `icon` (string), `group_id` (integer), `node_slug` (string), `staff_only` (boolean), `rules` (string) | `200` `tag`, `options` |
| `DELETE /nodes/{slug}/tags/{name}` | Session | — | `204` |

### /posts

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `PATCH /posts/{id}` | Session | JSON `raw` (string), `title` (string), `reason` (string), `tags` (string\[]), `node` (string), `min_trust_level` (integer), `login_only` (boolean) | `200` `post` |
| `DELETE /posts/{id}` | Session | JSON `reason` (string), `notify` (boolean), `appealable` (boolean) · The request body is optional | `204` |
| `PUT /posts/{id}/accepted` | Session | JSON `accepted` (boolean) | `204` |
| `PUT /posts/{id}/acknowledgment` | Session | — | `204` |
| `GET /posts/{id}/acknowledgments` | Session | Query `limit` | `200` `total`, `users` |
| `PUT /posts/{id}/adult` | Session | JSON `adult` (boolean) | `204` |
| `PUT /posts/{id}/bookmark` | Session | — | `204` |
| `DELETE /posts/{id}/bookmark` | Session | — | `204` |
| `PUT /posts/{id}/flags` | Session | JSON `locked` (boolean), `collapsed` (boolean) | `204` |
| `GET /posts/{id}/raw` | Session | — | `200` `raw` |
| `GET /posts/{id}/revisions` | Public | — | `200` `post_id`, `post_number`, `revisions`, `author`, `author_avatar`, `posted_at`, `can_restore`, `grace_minutes` |
| `POST /posts/{id}/revisions/{n}/restore` | Session | — | `200` `post` |
| `PUT /posts/{id}/vote` | Session | JSON `value` (integer), `emoji` (string), `from` (string) | `200` `upvotes`, `downvotes`, `viewer_vote` |

### /tags

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /tags` | Public | Query `q`, `node`, `limit` | `200` `tags` |
| `PUT /tags/{name}/follow` | Session | — | `200` `name`, `following` |
| `DELETE /tags/{name}/follow` | Session | — | `200` `name`, `following` |

### /topics

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /topics` | Public | Query `limit`, `sort`, `node`, `tag`, `offset`, `cursor`, `joined`, `featured`, `with_total` | `200` `topics`, `next_offset`, `next_cursor`, `total`, `total_capped` |
| `POST /topics` | Session | JSON `node` (string), `title` (string), `raw` (string), `tags` (string\[]), `min_trust_level` (integer), `login_only` (boolean), `draft_key` (string) | `201` `topic`, `post`, `held` |
| `GET /topics/{id}` | Public | Query `after`, `limit` | `200` `topic`, `posts`, `next_after`, `permissions` |
| `DELETE /topics/{id}` | Session | JSON `reason` (string), `notify` (boolean), `appealable` (boolean) · The request body is optional | `204` |
| `PUT /topics/{id}/adult` | Session | JSON `adult` (boolean) | `204` |
| `PUT /topics/{id}/allow-repost` | Session | JSON `on` (boolean) | `204` |
| `PUT /topics/{id}/dismissal` | Session | — | `204` |
| `DELETE /topics/{id}/dismissal` | Session | — | `204` |
| `GET /topics/{id}/hidden-blocks` | Public | Query `post_ids` | `200` `blocks` |
| `GET /topics/{id}/log` | Public | Query `before` | `200` `entries`, `next_before` |
| `POST /topics/{id}/merge` | Session | JSON `target_id` (integer), `reason` (string) | `200` `topic_id`, `post_number`, `moved` |
| `GET /topics/{id}/merge-candidates` | Session | Query `q` | `200` `scope`, `source`, `topics` |
| `GET /topics/{id}/next-video` | Public | Query `provider` | `200` `video` |
| `POST /topics/{id}/posts` | Session | JSON `raw` (string), `reply_to_post_number` (integer) | `201` `post`, `held` |
| `GET /topics/{id}/related` | Public | Query `kind`, `offset` | `200` `topics`, `next_offset` |
| `GET /topics/{id}/replies` | Public | Query `sort`, `offset`, `limit` | `200` `posts`, `next_offset` |
| `GET /topics/{id}/repost-options` | Session | — | `200` `origin`, `title`, `nodes`, `profile_reason`, `title_min`, `title_max` |
| `GET /topics/{id}/reposts` | Public | — | `200` `reposts` |
| `POST /topics/{id}/reposts` | Session | JSON `to` (string), `node` (string), `title` (string), `comment` (string) | `201` `topic`, `held` |
| `PUT /topics/{id}/state` | Session | JSON `closed` (boolean), `pinned` (boolean), `pin_days` (integer), `pinned_until` (string) | `204` |
| `GET /topics/{id}/thread` | Public | Query `sort`, `limit`, `parent`, `after`, `levels`, `offset` | `200` `posts`, `max_depth`, `shown_replies`, `accepted_answer`, `can_accept`, `next_offset`, `next_after` |

### /users

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /users/{username}/activity` | Public | Query `offset` | `200` `items`, `total`, `next_offset` |
| `GET /users/{username}/posts` | Public | Query `cursor`, `limit` | `200` `posts`, `next_cursor` |
| `GET /users/{username}/topics` | Public | Query `cursor`, `limit` | `200` `topics`, `next_cursor` |
| `GET /users/{username}/voted` | Public | Query `offset` | `200` `items`, `private`, `next_offset` |

### Other endpoints

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /bookmark-folders` | Session | — | `200` `folders`, `total`, `unfiled`, `stale` |
| `POST /bookmark-folders` | Session | JSON `name` (string) | `201` `id`, `name` |
| `PATCH /bookmark-folders/{id}` | Session | JSON `name` (string), `public` (boolean) | `204` |
| `DELETE /bookmark-folders/{id}` | Session | — | `204` |
| `GET /bookmarks` | Session | Query `before`, `limit` | `200` `bookmarks`, `next_before` |
| `POST /bookmarks/move` | Session | JSON `ids` (integer\[]), `folder_id` (integer) | `200` `moved` |
| `POST /bookmarks/remove` | Session | JSON `ids` (integer\[]) | `200` `removed` |
| `POST /bookmarks/restore` | Session | JSON `items` (object\[]) | `200` `restored` |
| `PUT /bookmarks/{id}/note` | Session | JSON `note` (string) | `200` `note` |
| `PUT /bookmarks/{id}/reminder` | Session | JSON `at` (RFC 3339) | `200` `at` |
| `GET /drafts` | Session | — | `200` `drafts`, `limit`, `lifetime_days`, `warn_days` |
| `POST /drafts/delete` | Session | JSON `keys` (string\[]) | `200` `deleted` |
| `GET /drafts/{key}` | Session | Query `optional` | `200` `draft` |
| `PUT /drafts/{key}` | Session | JSON `data` (JSON), `device` (string), `revision` (integer), `force` (boolean) | `200` |
| `DELETE /drafts/{key}` | Session | — | `204` |
| `POST /drafts/{key}/conflict` | Session | JSON `use` (string) | `200` `revision`, `updated_at` |
| `PUT /drafts/{key}/schedule` | Session | JSON `publish_at` (RFC 3339) | `200` `publish_at` |
| `DELETE /drafts/{key}/schedule` | Session | — | `204` |
| `GET /emojis` | Public | — | `200` `emojis`, `packs` |
| `GET /history` | Session | Query `kind`, `q`, `cursor`, `limit` | `200` `items`, `groups`, `total`, `shown`, `paused`, `retention_days`, `undo_seconds`, `resume`, `next_cursor` |
| `POST /history/clear` | Session | — | `200` `removed`, `undo` |
| `POST /history/remove` | Session | JSON `ids` (integer\[]), `since` (RFC 3339), `until` (RFC 3339), `kind` (string), `q` (string) | `200` `removed`, `undo` |
| `POST /history/restore` | Session | JSON `undo` (string) | `200` `restored` |
| `DELETE /history/{id}` | Session | — | `200` `removed`, `undo` |
| `GET /leaderboards/posting` | Public | Query `period`, `by`, `limit` | `200` `period`, `users` |
| `POST /preview` | Session | JSON `raw` (string) | `200` `html`, `ack_label` |
| `GET /saved` | Session | Query `folder`, `kind`, `sort`, `q`, `offset`, `limit` | `200` `bookmarks`, `total`, `next_offset` |
| `GET /tag-groups` | Public | — | `200` `groups` |
| `GET /tag-labels` | Public | Query `names` | `200` `labels` |
| `GET /tag-looks` | Public | — | `200` `icons`, `groups`, `colors`, `styles` |
| `GET /videos/feed` | Public | Query `cursor`, `provider`, `limit` | `200` `videos`, `next_cursor` |

## Reading progress

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `PUT /topics/{id}/read` | Session | JSON `post_number` (integer), `seconds` (integer), `end` (boolean) | `204` |

## Polls

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `PUT /polls/{id}/closed` | Session | JSON `closed` (boolean) | `200` `poll` |
| `GET /polls/{id}/voters` | Public | — | `200` `voters` |
| `PUT /polls/{id}/votes` | Session | JSON `option_ids` (integer\[]) | `200` `poll` |
| `GET /posts/{id}/polls` | Public | — | `200` `polls` |


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