# Mensagens

**Mensagens**

**1. Enviar Mensagem de Texto**

* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: application/json

<a class="button secondary">Copiar</a>

```
{
    "body": "Sua mensagem aqui",
    "number": "5511999999999",
    "externalKey": "ID_UNICO_SISTEMA"
}
```

* Pode ser usado numero ticket em canais que não tem número telefone como instagram
* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: application/json

<a class="button secondary">Copiar</a>

```
{
    "body": "Sua mensagem aqui",
    "ticketId": "123",
    "externalKey": "ID_UNICO_SISTEMA"
}
```

**2. Enviar Arquivo**

* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: multipart/form-data

<a class="button secondary">Copiar</a>

```
{
    "media": "(arquivo)",
    "body": "Texto da mensagem",
    "number": "5511999999999",
    "externalKey": "ID_UNICO_SISTEMA"
}
```

* Pode ser usado numero ticket em canais que não tem número telefone como instagram
* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: multipart/form-data

<a class="button secondary">Copiar</a>

```
{
    "media": "(arquivo)",
    "body": "Texto da mensagem",
    "ticketId": "123",
    "externalKey": "ID_UNICO_SISTEMA"
}
```

**3. Enviar Sticker**

* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: multipart/form-data

<a class="button secondary">Copiar</a>

```
{
    "media": "(arquivo)",
    "body": "sticker",
    "number": "5511999999999",
    "externalKey": "ID_UNICO_SISTEMA",
    "sticker": "true"
}
```

**4. Enviar Localização**

* **Método**: POST
* **Endpoint**: `/location`

<a class="button secondary">Copiar</a>

```
{
  "number": "5511999999999",
  "contents": {
    "type": "location",
    "longitude": -27.2842864,
    "latitude": -48.9243959,
    "name": "Nome do Local",
    "address": "Endereço Completo"
  }
}
```

**5. Enviar Mensagem via Parâmetros**

* **Método**: GET
* **Endpoint**: `/params`

<a class="button secondary">Copiar</a>

```
/params/?body=Mensagem&number=5511999999999&externalKey=ID_UNICO&bearertoken=seu-token
```

**6. Enviar arquivo Base64**

* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: application/json

<a class="button secondary">Copiar</a>

```
{
  "body": "Mensagem de teste 2",
  "number": "{{number}}",
  "externalKey": "externalKeydd211",
  "mediaMessage": {
    "mediaType": "application/pdf",
    "fileName": "documento.pdf",
    "media": "JVBERi0xLjMKJcfsj6... [base64 completo do arquivo] ..."
  }
}
```

**7. Enviar Arquivo mediaurl**

* **Método**: POST
* **Endpoint**: `/`
* **Content-Type**: application/json

<a class="button secondary">Copiar</a>

```
{
  "body": "Mensagem de teste 2",
  "number": "{{number}}",
  "externalKey": "externalKeydd211",
  "mediaUrl": "https://img.freepik.com/psd-gratuitas/ilustracao-de-renderizacao-3d-isolada-do-icone-do-google_47987-9777.jpg"
}
```

**Mensagens Interativas**

**1. Mensagem com Botões**

* **Método**: POST
* **Endpoint**: `/apioficial`

<a class="button secondary">Copiar</a>

```
{
    "number": "5511999999999",
    "contents": {
        "type": "button",
        "body": {
            "text": "Texto principal"
        },
        "action": {
            "buttons": [
                {
                    "type": "reply",
                    "reply": {
                        "id": "1",
                        "title": "Botão 1"
                    }
                }
            ]
        }
    }
}
```

**2. Mensagem com Lista**

* **Método**: POST
* **Endpoint**: `/apioficial`

<a class="button secondary">Copiar</a>

```
{
  "number": "5511999999999",
  "contents": {
    "type": "list",
    "header": {
      "type": "text",
      "text": "Título"
    },
    "body": {
      "text": "Descrição"
    },
    "action": {
      "sections": [
        {
          "title": "Seção 1",
          "rows": [
            {
              "id": 1,
              "title": "Item 1",
              "description": "Descrição do item 1"
            }
          ]
        }
      ],
      "button": "Clique aqui"
    }
  }
}
```

**3. Mensagem com Link (CTA)**

* **Método**: POST
* **Endpoint**: `/apioficial`

<a class="button secondary">Copiar</a>

```
{
    "number": "5511999999999",
    "contents": {
        "type": "cta_url",
        "header": {
            "type": "text",
            "text": "Título"
        },
        "body": {
            "text": "Descrição"
        },
        "footer": {
            "text": "Rodapé"
        },
        "action": {
            "name": "cta_url",
            "parameters": {
                "display_text": "Ver Mais",
                "url": "SEU_LINK"
            }
        }
    }
}
```

**4. Solicitar Localização**

* **Método**: POST
* **Endpoint**: `/apioficial`

<a class="button secondary">Copiar</a>

```
{
    "number": "5511999999999",
    "contents": {
        "type": "location_request_message",
        "body": {
            "text": "Por favor compartilhe sua localização"
        },
        "action": {
            "name": "send_location"
        }
    }
}
```


---

# 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://ajuda.super-zapp.com.br/integracoes-super-zapp/variaveis-typebot/mensagens.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.
