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

# Overview

> Manage WhatsApp channels via /api/newsletter/*

**Auth:** `TokenAccount` or `TokenInstance` on every route. Each call validates the instance ownership.

This section covers the `/api/newsletter/*` routes for creating channels, listing subscriptions, getting details, following, and unfollowing. Channels have JIDs ending in `@newsletter` (different from group `@g.us` JIDs).

## Endpoints

| Method | Path                               | Function                                            |
| ------ | ---------------------------------- | --------------------------------------------------- |
| POST   | `/api/newsletter/create/:instance` | [Create channel](/en/api/newsletter/create)         |
| GET    | `/api/newsletter/list/:instance`   | [List subscribed channels](/en/api/newsletter/list) |
| GET    | `/api/newsletter/info/:instance`   | [Channel info](/en/api/newsletter/info)             |
| POST   | `/api/newsletter/join/:instance`   | [Subscribe](/en/api/newsletter/join)                |
| DELETE | `/api/newsletter/leave/:instance`  | [Unsubscribe](/en/api/newsletter/leave)             |

## Accepted identifiers

The `info`, `join`, and `leave` endpoints accept:

| Form      | Example                                           |
| --------- | ------------------------------------------------- |
| JID       | `120363422585881117@newsletter`                   |
| Full link | `https://whatsapp.com/channel/120363422585881117` |
| Code only | `120363422585881117`                              |

## `NewsletterChannel` model

| Field             | Type    | Description                                                 |
| ----------------- | ------- | ----------------------------------------------------------- |
| `jid`             | string  | `<id>@newsletter`                                           |
| `state`           | string  | `active`, `suspended`, `geosuspended`                       |
| `name`            | string  | Channel name                                                |
| `description`     | string  | May be empty                                                |
| `inviteLink`      | string? | `https://whatsapp.com/channel/<id>` (admins / creator only) |
| `subscriberCount` | int     | May be `0` if unknown                                       |
| `pictureUrl`      | string? | Temporary URL from WhatsApp's CDN                           |

## Channel states

| State          | Meaning                                                          |
| -------------- | ---------------------------------------------------------------- |
| `active`       | Operational channel, accepting posts and new followers           |
| `suspended`    | Channel suspended (policy violation), visible but no interaction |
| `geosuspended` | Channel unavailable in your region                               |

## Error envelope

```json theme={null}
{
  "success": false,
  "error": { "message": "newsletter not found" }
}
```

## WhatsMeow client support

<Warning>
  Some routes depend on WhatsMeow client functions that may not be available in certain builds. When that happens, the server returns **HTTP 501** with specific messages:

  * `WhatsApp client does not support newsletter creation`
  * `WhatsApp client does not support listing newsletters`
  * `WhatsApp client does not support FollowNewsletter`
  * `WhatsApp client does not support UnfollowNewsletter`
</Warning>

## Error reference (summary)

| HTTP | Message                                                                              |
| ---- | ------------------------------------------------------------------------------------ |
| 400  | `The 'name' field is required`                                                       |
| 400  | `The 'identifier' query parameter is required (JID @newsletter or invite link/code)` |
| 400  | `Invalid newsletter identifier (use JID @newsletter or invite link/code)`            |
| 400  | `Instance is not connected to WhatsApp`                                              |
| 404  | `newsletter not found`                                                               |
| 500  | `failed to create newsletter: <reason>`                                              |
| 500  | `failed to follow newsletter: <reason>`                                              |
| 500  | `failed to leave newsletter: <reason>`                                               |
| 501  | `WhatsApp client does not support <method>`                                          |

## Next

<CardGroup cols={2}>
  <Card title="Create channel" icon="bullhorn" href="/en/api/newsletter/create">
    Create a new channel linked to the account.
  </Card>

  <Card title="List channels" icon="list" href="/en/api/newsletter/list">
    Return subscribed channels.
  </Card>
</CardGroup>
