# Sending View-Once Messages

**View-once messages** are media messages (images or videos) that can only be viewed a single time by the recipient. To send such a message through the API, you need to set the **`view_once`** attribute to `true` when using the media message endpoint.

#### Example request

```bash
curl --request POST \
     --url https://gate.whapi.cloud/messages/image \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {Your_Token}' \
     --header 'content-type: application/json' \
     --data '{
       "to": "919984351847",
       "media": "https://upload.wikimedia.org/wikipedia/commons/3/3f/JPEG_example_flower.jpg",
       "caption": "Hello, this is a one-time message.",
       "view_once": true
     }'

```

#### Important notes

* Only **images** and **videos** can be sent as view-once messages. Text or other media types are not supported.
* For incoming view-once messages, the **content is not displayed** in webhooks and cannot be retrieved via the GET API. This is a **WhatsApp limitation**. Even if you have the `messageId`, the internal content of a view-once message remains inaccessible.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.whapi.cloud/help-desk/sending/overview-of-other-methods-for-sending/sending-view-once-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
