---
title: "Join a channel or create a thread/comment"
method: POST
path: "/api/community"
tags: ["Community"]
---

# Join a channel or create a thread/comment

`POST /api/community`

## Request

- Base URL: `https://www.joinsandwich.com`
- URL: `https://www.joinsandwich.com/api/community`
- Auth: HTTP bearer

## Request body

- object
  - `channel` string
  - `action` 'join' | 'leave' | 'thread' | 'comment'

## Response `200`

Action result

- object

## Other responses

- `400`: Structured JSON error with code, message, and resolution hint
- `401`: Structured JSON error with code, message, and resolution hint
- `403`: Structured JSON error with code, message, and resolution hint
- `404`: Structured JSON error with code, message, and resolution hint
- `500`: Structured JSON error with code, message, and resolution hint

---

[API](https://skmtc.dev/joinsandwich/apis/sandwich-public-api.md) · [All operations](https://skmtc.dev/joinsandwich/apis/sandwich-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/joinsandwich/apis/sandwich-public-api/revisions/6464c8d2ca48?raw)
