> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/channels/send-channel-newsletter-invite-link.md).

# Send Channel (Newsletter) invite link

How to share a channel

To send an invitation to a newsletter, you will need an invite code.

It can be obtained using the following methods:

{% embed url="<https://whapi.readme.io/reference/getnewsletters>" %}

or

{% embed url="<https://whapi.readme.io/reference/getnewsletter>" %}

The response to the request will contain an array of information about the  newsletter, including an invite code `"invite_code": "TESTCODE12345":`<br>

```json
{
  "id": "test_id_1234567890@newsletter",
  "name": "Test Newsletter",
  "type": "newsletter",
  "chat_pic": "https://example.com/test_pic_small.jpg",
  "chat_pic_full": "https://example.com/test_pic_full.jpg",
  "created_at": 1700000000,
  "subscribers_count": 1234,
  "invite_code": "TESTCODE12345",
  "verification": false,
  "description_at": "1700001111222333",
  "description": "This is a test newsletter for demo purposes only.",
  "preview": "/v/test_preview_image.jpg",
  "role": "member"
}
```

To send an invitation, use:

{% embed url="<https://whapi.readme.io/reference/sendnewsletterinvite>" %}

You can view the result in the Whatsapp

<figure><img src="https://2417185145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhsdgGmVCG31mEaHyRvxC%2Fuploads%2FC1Fjn7KqIaErCHkLsi8m%2Fimage.png?alt=media&amp;token=968d9e6b-9e2f-42a2-8df3-99f7e9dee427" alt="" width="188"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.whapi.cloud/help-desk/channels/send-channel-newsletter-invite-link.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
