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

# Messaging and participation

> Chat, notifications, follows, reports, points, achievements, and games

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

## Chat and direct messages

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /chat` | Session | — | `200` `channels`, `groups`, `directs`, `directs_next`, `unread_count` |
| `PUT /chat/channels/{id}/membership` | Session | — | `204` |
| `DELETE /chat/channels/{id}/membership` | Session | — | `204` |
| `GET /chat/channels/{id}/messages` | Session | Query `before`, `after`, `limit`, `read` | `200` `messages`, `conversation_id`, `next_before`, `last_read_id`, `unread_count` |
| `POST /chat/channels/{id}/messages` | Session | JSON `raw` (string), `reply_to` (integer) | `201` `message` |
| `PUT /chat/conversations/{id}/mute` | Session | — | `204` |
| `DELETE /chat/conversations/{id}/mute` | Session | — | `204` |
| `PUT /chat/conversations/{id}/read` | Session | JSON `message_id` (integer) | `204` |
| `POST /chat/groups` | Session | JSON `name` (string), `usernames` (string\[]) | `201` `group` |
| `PUT /chat/groups/{id}` | Session | JSON `name` (string), `owner` (string) | `204` |
| `DELETE /chat/groups/{id}` | Session | — | `204` |
| `GET /chat/groups/{id}/members` | Session | — | `200` `members`, `owner_me`, `max_members` |
| `POST /chat/groups/{id}/members` | Session | JSON `usernames` (string\[]) | `204` |
| `DELETE /chat/groups/{id}/members/{username}` | Session | — | `204` |
| `DELETE /chat/messages/{id}` | Session | — | `204` |
| `GET /chat/unread` | Session | — | `200` `unread_count` |
| `GET /messages` | Session | Query `before`, `before_id`, `limit` | `200` `conversations`, `next`, `unread_count` |
| `GET /messages/{username}` | Session | Query `before`, `after`, `limit`, `read` | `200` `messages`, `conversation_id`, `next_before`, `last_read_id`, `unread_count` |
| `POST /messages/{username}` | Session | JSON `raw` (string), `reply_to` (integer) | `201` `message` |

## Notifications

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /notifications` | Session | Query `filter`, `before`, `limit` | `200` `notifications`, `unread`, `next_before` |
| `POST /notifications/read` | Session | JSON `up_to_id` (integer), `id` (integer) | `204` |
| `GET /notifications/stream` | Session | — | `200` `text/event-stream` |
| `POST /notifications/unread` | Session | JSON `id` (integer) | `200` `changed` |
| `DELETE /notifications/{id}` | Session | — | `204` |

## Push and Telegram

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `POST /me/notify-test` | Session | JSON `channel` (string) | `204` |
| `GET /me/telegram` | Session | — | `200` `available`, `linked`, `enabled`, `bot` |
| `PUT /me/telegram` | Session | JSON `enabled` (boolean) | `204` |
| `POST /telegram/webhook/{secret}` | Telegram webhook secret | Use the configured webhook URL and Telegram Update JSON. Send the secret in the `X-Telegram-Bot-Api-Secret-Token` header | `200` `ok` |

## Email

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `POST /email/webhooks/{provider}` | Provider signature | Raw provider payload (up to 1 MiB) | `204` |
| `GET /me/email-status` | Session | — | `200` `bouncing`, `score`, `threshold` |

## Follows and blocks

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /me/blocks` | Session | — | `200` `users` |
| `PUT /topics/{id}/follow` | Session | JSON `level` (string) | `204` |
| `PUT /users/{username}/block` | Session | — | `204` |
| `DELETE /users/{username}/block` | Session | — | `204` |
| `PUT /users/{username}/follow` | Session | — | `204` |
| `DELETE /users/{username}/follow` | Session | — | `204` |
| `GET /users/{username}/followers` | Public | Query `before`, `limit` | `200` `users` |
| `GET /users/{username}/following` | Public | Query `before`, `limit` | `200` `users` |

## Moderation and reports

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `POST /appeals` | Session | JSON `post_id` (integer), `topic_id` (integer), `text` (string) | `201` `appeal` |
| `POST /me/deletion` | Session | JSON `password` (string) | `204` |
| `GET /me/restrictions` | Session | — | `200` `restrictions` |
| `POST /me/restrictions/{kind}/{id}/appeal` | Session | JSON `reason` (string), `text` (string), `login` (string), `password` (string) | `201` `appeal` |
| `POST /nodes/{slug}/mod-log/{id}/undo` | Session | — | `204` |
| `POST /nodes/{slug}/reports` | Session | JSON `reason` (string), `note` (string) | `204` |
| `GET /nodes/{slug}/review` | Session | Query `status`, `kind`, `item`, `before`, `limit` | `200` `items`, `next_before` |
| `POST /nodes/{slug}/review/{id}/refund-reputation` | Session | JSON `note` (string) | `200` `refunded` |
| `POST /nodes/{slug}/review/{id}/reopen` | Session | JSON `note` (string) | `204` |
| `POST /nodes/{slug}/review/{id}/resolve` | Session | JSON `action` (string), `note` (string), `reputation_penalty` (integer), `also_lift` (integer\[]) | `200/204` |
| `POST /nodes/{slug}/review/{id}/restore-post` | Session | JSON `note` (string) | `204` |
| `PUT /nodes/{slug}/watch/{user_id}` | Session | JSON `watch` (boolean), `reason` (string), `days` (integer) | `204` |
| `DELETE /nodes/{slug}/watch/{user_id}` | Session | — | `204` |
| `PUT /posts/{id}/hidden` | Session | JSON `hidden` (boolean), `reason` (string) | `204` |
| `GET /posts/{id}/moderate` | Session | — | `200` `scope`, `node`, `first_post`, `hidden`, `author`, `can_penalize`, `max_days`, `reputation_penalty_max`, `open_reports` |
| `POST /posts/{id}/moderate` | Session | JSON `reason` (string), `note` (string), `post_action` (string), `user_action` (string), `days` (integer), `reputation_penalty` (integer), `on_conflict` (string) | `200` `scope`, `post_action`, `user_action`, `item_id`, `reputation_deducted`, `closed_items` |
| `POST /posts/{id}/reports` | Session | JSON `reason` (string), `note` (string) | `204` |
| `POST /posts/{id}/restore` | Session | — | `204` |
| `POST /restrictions/lookup` | Account credentials | JSON `login` (string), `password` (string) | `200` `restrictions` |
| `POST /restrictions/{kind}/{id}/appeal` | Session or account credentials | JSON `reason` (string), `text` (string), `login` (string), `password` (string) | `201` `appeal` |

## Risk controls and appeals

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `POST /risk/appeals` | Session or account credentials | JSON `kind` (string), `body` (string), `login` (string), `password` (string) | `204` |

## Points and ledger

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /checkin` | Session | — | `200` `checked_in_today`, `today_points`, `days`, `total`, `streak` |
| `POST /checkin` | Session | — | `200` `points`, `balance`, `day` |
| `GET /points` | Session | — | `200` `balance`, `transfer` |
| `GET /points/history` | Session | Query `month`, `kinds`, `direction`, `group`, `before`, `limit` | `200` `entries`, `total` |
| `GET /points/leaderboard` | Public | Query `period`, `page`, `limit` | `200` `period`, `users`, `total`, `page`, `next_page`, `updated_at`, `refresh_minutes` |
| `GET /points/summary` | Session | Query `month` | `200` `month`, `income`, `expense`, `kinds`, `active_months`, `week_income` |
| `POST /points/transfers` | Session | JSON `to` (string), `amount` (integer), `memo` (string) · Required `Idempotency-Key` header (1–100 bytes) | `200` `transaction_id`, `amount`, `fee`, `balance` |

## Achievements

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /achievements` | Session | — | `200` `achievements`, `showcase`, `max_showcase`, `unlocked_count`, `total`, `reputation`, `energy_earned`, `reputation_earned` |
| `PUT /achievements/{key}/pin` | Session | — | `204` |
| `DELETE /achievements/{key}/pin` | Session | — | `204` |
| `GET /users/{username}/achievements` | Public | — | `200` `showcase`, `reputation` |
| `GET /users/{username}/achievements/unlocked` | Public | — | `200` `achievements`, `unlocked_count`, `total` |

## Reputation

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /me/reputation` | Session | — | `200` `reputation`, `pending`, `tier`, `tier_name`, `next`, `needed`, `progress`, `week`, `sources`, `tiers`, `legend_review`, `tier_review`, `upgrade_locked_until`, `onboarding_done_at`, `week_by_source`, `tasks`, `rate_30d` |
| `GET /me/reputation/ledger` | Session | Query `before`, `limit` | `200` `items`, `next` |

## Tasks

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `GET /me/tasks` | Session | — | `200` `tasks`, `week_reputation`, `week_cap`, `reputation_eligible` |

## Community games and rewards

| Method and path | Access | Inputs | Success |
| - | - | - | - |
| `PATCH /lotteries/{id}` | Session | JSON `draw_at` (RFC 3339), `max_participants` (integer), `min_trust_level` (integer), `title` (string), `min_tickets` (integer), `max_tickets` (integer), `min_participants` (integer), `prizes` (object\[]) | `200` `lottery` |
| `GET /lotteries/{id}/participants` | Public | — | `200` `participants`, `participant_count`, `ticket_count` |
| `POST /lotteries/{id}/tickets` | Session | JSON `tickets` (integer), `random` (boolean) · Required `Idempotency-Key` header (1–100 bytes) | `200` `tickets` |
| `GET /posts/{id}/lottery` | Public | — | `200` `lottery` |
| `POST /posts/{id}/lottery` | Session | JSON `title` (string), `draw_at` (RFC 3339), `min_tickets` (integer), `max_tickets` (integer), `min_participants` (integer), `max_participants` (integer), `min_trust_level` (integer), `prizes` (object\[]) | `201` `lottery` |
| `GET /posts/{id}/points` | Public | — | `200` `tips`, `system_actions` |
| `POST /posts/{id}/tips` | Session | JSON `amount` (integer), `note` (string) | `201` `tip` |
| `DELETE /tips/{id}` | Session | — | `204` |
| `GET /topics/{id}/red-envelope` | Public | — | `200` `red_envelope` |
| `POST /topics/{id}/red-envelope` | Session | JSON `total` (integer), `count` (integer) | `201` `red_envelope` |


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