---
title: "WhatsApp - Baileys"
description: "API WhatsApp Baileys - Mensagens instantâneas e integrações de longo prazo"
lang: en
canonical: https://doc.apibrasil.io/apis/planos/fd253842-bc08-11ef-bacf-000c298680d9
markdown: https://doc.apibrasil.io/apis/planos/fd253842-bc08-11ef-bacf-000c298680d9.md
source: apibrasil-documentation
---

# WhatsApp - Baileys

> API WhatsApp Baileys - Mensagens instantâneas e integrações de longo prazo

- **Category:** Messaging
- **Billing:** by plan, with Bearer Token and DeviceToken
- **Price:** R$12.90 per month
- **Limit:** 1,000 per month
- **Registration:** CPF or CNPJ
- **Version:** v2
- **Published by:** APIBrasil
- **OpenAPI specification:** https://doc.apibrasil.io/apis/planos/fd253842-bc08-11ef-bacf-000c298680d9/openapi.json

## How to call

**Base address:** `https://gateway.apibrasil.io/api/v2`

Authentication: the `Authorization: Bearer <token>` header AND a `DeviceToken: <device token>` header. This API is billed per plan, and without the second header it refuses.

## Endpoints (59 endpoints)

**Contents**

1. `POST /evolution/message/sendText`
2. `POST /evolution/message/sendText`
3. `POST /evolution/message/sendText`
4. `POST /evolution/message/sendStatus`
5. `POST /evolution/message/sendStatus`
6. `POST /evolution/message/sendStatus`
7. `POST /evolution/message/sendText/queue`
8. `POST /evolution/message/sendButtons`
9. `POST /evolution/call/offer`
10. `POST /evolution/instance/restart`
11. `POST /evolution/message/sendPoll`
12. `POST /evolution/message/sendMedia`
13. `POST /evolution/group/fetchAllGroups?getParticipants=true`
14. `GET /evolution/instance/connectionState`
15. `POST /evolution/settings/set`
16. `GET /evolution/settings/find`
17. `GET /evolution/instance/connect`
18. `POST /evolution/instance/create`
19. `POST /evolution/chat/whatsappNumbers`
20. `POST /evolution/chat/findChats`
21. `GET /evolution/chat/findMessages`
22. `POST /evolution/chat/fetchProfilePictureUrl`
23. `POST /evolution/chat/findContacts`
24. `POST /evolution/chat/getBase64FromMediaMessage`
25. `POST /evolution/message/sendMedia`
26. `POST /evolution/message/sendMedia`
27. `POST /evolution/message/sendMedia`
28. `POST /evolution/message/sendWhatsAppAudio`
29. `POST /evolution/message/sendWhatsAppAudio`
30. `POST /evolution/message/sendSticker`
31. `POST /evolution/message/sendSticker`
32. `POST /evolution/message/sendLocation`
33. `POST /evolution/message/sendReaction`
34. `POST /evolution/message/sendContact`
35. `DELETE /evolution/instance/logout`
36. `DELETE /evolution/instance/delete`
37. `PUT /evolution/instance/restart`
38. `POST /evolution/chat/fetchProfile`
39. `DELETE /evolution/chat/deleteMessageForEveryone`
40. `POST /evolution/chat/updateProfileName`
41. `POST /evolution/chat/updateProfileStatus`
42. `POST /evolution/chat/updateProfilePicture`
43. `DELETE /evolution/chat/removeProfilePicture`
44. `GET /evolution/chat/fetchPrivacySettings`
45. `POST /evolution/chat/updatePrivacySettings`
46. `POST /evolution/group/create`
47. `POST /evolution/group/updateGroupPicture?groupJid=120363314888103300`
48. `POST /evolution/group/updateGroupSubject?groupJid=120363314888103300`
49. `POST /evolution/group/updateGroupDescription?groupJid=120363314888103300`
50. `GET /evolution/group/inviteCode?groupJid=120363314888103300`
51. `POST /evolution/group/revokeInviteCode?groupJid=120363314888103300`
52. `POST /evolution/group/sendInvite`
53. `GET /evolution/group/inviteInfo?groupJid=120363314888103300`
54. `GET /evolution/group/findGroupInfos?groupJid=120363314888103300`
55. `POST /evolution/group/updateParticipant?groupJid=120363314888103300`
56. `POST /evolution/group/updateSetting?groupJid=120363314888103300`
57. `POST /evolution/label/handleLabel`
58. `GET /evolution/label/findLabels`
59. `GET /evolution/group/participants?groupJid=120363314888103300`

### 1. POST /evolution/message/sendText

Com esse endpoint é possível você enviar mensagens no WhatsApp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendText`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "text": "Teste Evolution API, via APIBRASIL!",
  "options": {
    "delay": 1,
    "presence": "composing"
  }
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendText" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","text":"Teste Evolution API, via APIBRASIL!","options":{"delay":1,"presence":"composing"}}'
```

The catalog does not publish a sample response for this endpoint.

### 2. POST /evolution/message/sendText

Com esse endpoint é possível você responder uma mensagem com o ID

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendText`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "text": "Teste Evolution API, via APIBRASIL!",
  "options": {
    "delay": 1,
    "presence": "composing"
  }
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendText" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","text":"Teste Evolution API, via APIBRASIL!","options":{"delay":1,"presence":"composing"}}'
```

The catalog does not publish a sample response for this endpoint.

### 3. POST /evolution/message/sendText

Com esse endpoint é possível você marcar de forma fantasta todos membros de um grupo

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendText`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "text": "Teste Evolution API, via APIBRASIL!",
  "options": {
    "delay": 1,
    "presence": "composing"
  }
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendText" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","text":"Teste Evolution API, via APIBRASIL!","options":{"delay":1,"presence":"composing"}}'
```

The catalog does not publish a sample response for this endpoint.

### 4. POST /evolution/message/sendStatus

Com esse endpoint é possível enviar textos para o Stories

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendStatus`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendStatus" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 5. POST /evolution/message/sendStatus

Com esse endpoint é possível enviar imagens ou vídeos para o Stories

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendStatus`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendStatus" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 6. POST /evolution/message/sendStatus

Com esse endpoint é possível enviar áudio para o Stories

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendStatus`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendStatus" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 7. POST /evolution/message/sendText/queue

Endpoint beta

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendText/queue`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "text": "Teste Evolution API, via APIBRASIL!",
  "options": {
    "delay": 1,
    "presence": "composing"
  }
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendText/queue" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","text":"Teste Evolution API, via APIBRASIL!","options":{"delay":1,"presence":"composing"}}'
```

The catalog does not publish a sample response for this endpoint.

### 8. POST /evolution/message/sendButtons

Com esse endpoint é possível enviar botões de templates (ESSE ENDPOINT PODE SOFRER ALTERAÇÕES SEM AVISO PREVIO)

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendButtons`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendButtons" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 9. POST /evolution/call/offer

Com esse endpoint é possível fazer ligações fakes, tomando a atenção do usuário (ESSE ENDPOINT PODE SOFRER ALTERAÇÕES SEM AVISO PREVIO)

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/call/offer`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "{{remoteJid}}",
  "isVideo": false,
  "callDuration": 3
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/call/offer" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"{{remoteJid}}","isVideo":false,"callDuration":3}'
```

The catalog does not publish a sample response for this endpoint.

### 10. POST /evolution/instance/restart

Com esse endpoint é reiniciar uma instância nova

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/restart`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/instance/restart" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 11. POST /evolution/message/sendPoll

Com esse endpoint é possivel enviar uma enquete

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendPoll`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "options": {
    "delay": 1200,
    "presence": "composing"
  },
  "name": "Main text of the poll",
  "selectableCount": 1,
  "values": [
    "Question 1",
    "Question 2",
    "Question 3"
  ]
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendPoll" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","options":{"delay":1200,"presence":"composing"},"name":"Main text of the poll","selectableCount":1,"values":["Question 1","Question 2","Question 3"]}'
```

The catalog does not publish a sample response for this endpoint.

### 12. POST /evolution/message/sendMedia

Com esse endpoint é possível enviar imagens e arquivos em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "mediatype": "image",
  "mimetype": "image/png",
  "caption": "Teste de caption",
  "media": "/9j/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAA....",
  "fileName": "Imagem.png"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","mediatype":"image","mimetype":"image/png","caption":"Teste de caption","media":"/9j/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAA....","fileName":"Imagem.png"}'
```

The catalog does not publish a sample response for this endpoint.

### 13. POST /evolution/group/fetchAllGroups?getParticipants=true

Com esse endpoint é possível obter participantes de um grupo

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/fetchAllGroups?getParticipants=true`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/fetchAllGroups?getParticipants=true" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 14. GET /evolution/instance/connectionState

Com esse endpoint é possível buscar o status de uma instância

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/connectionState`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/instance/connectionState" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 15. POST /evolution/settings/set

Com esse endpoint é setar as configurações do WhatsApp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/settings/set`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "reject_call": true,
  "msg_call": "I do not accept calls",
  "groups_ignore": true
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/settings/set" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"reject_call":true,"msg_call":"I do not accept calls","groups_ignore":true}'
```

The catalog does not publish a sample response for this endpoint.

### 16. GET /evolution/settings/find

Com esse endpoint é buscar as configurações do WhatsApp

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/settings/find`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/settings/find" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 17. GET /evolution/instance/connect

Com esse endpoint é possível conectar uma instãncia já criada

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/connect`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/instance/connect" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 18. POST /evolution/instance/create

Com esse endpoint é criar uma instância nova

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/create`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "instanceName": "123456",
  "qrcode": true
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/instance/create" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"instanceName":"123456","qrcode":true}'
```

The catalog does not publish a sample response for this endpoint.

### 19. POST /evolution/chat/whatsappNumbers

Com esse endpoint é possível obter os numeros de todos os chats

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/whatsappNumbers`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "numbers": [
    "55911111111",
    "55922222222",
    "55933333333",
    "55944444444",
    "55955555555"
  ]
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/whatsappNumbers" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"numbers":["55911111111","55922222222","55933333333","55944444444","55955555555"]}'
```

The catalog does not publish a sample response for this endpoint.

### 20. POST /evolution/chat/findChats

Com esse endpoint é possivel buscar todas os chats

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/findChats`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/findChats" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 21. GET /evolution/chat/findMessages

Com esse endpoint é possivel buscar todas as mensagens

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/findMessages`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/chat/findMessages" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 22. POST /evolution/chat/fetchProfilePictureUrl

Com esse endpoint é possível obter a imagem de perfil em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/fetchProfilePictureUrl`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/fetchProfilePictureUrl" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434"}'
```

The catalog does not publish a sample response for this endpoint.

### 23. POST /evolution/chat/findContacts

Com esse endpoint é possivel buscar todas os contatos

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/findContacts`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/findContacts" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 24. POST /evolution/chat/getBase64FromMediaMessage

Com esse endpoint é possivel obter as mídias das mensagens em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/getBase64FromMediaMessage`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/getBase64FromMediaMessage" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 25. POST /evolution/message/sendMedia

Com esse endpoint é possível enviar XLSX via URL

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "mediatype": "document",
  "mimetype": "document/doc",
  "caption": "Teste de caption",
  "media": "UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiB.....",
  "fileName": "Arquivo.docx"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","mediatype":"document","mimetype":"document/doc","caption":"Teste de caption","media":"UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiB.....","fileName":"Arquivo.docx"}'
```

The catalog does not publish a sample response for this endpoint.

### 26. POST /evolution/message/sendMedia

Com esse endpoint é possível enviar XLSX em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "mediatype": "document",
  "mimetype": "document/doc",
  "caption": "Teste de caption",
  "media": "UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiB.....",
  "fileName": "Arquivo.docx"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","mediatype":"document","mimetype":"document/doc","caption":"Teste de caption","media":"UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiB.....","fileName":"Arquivo.docx"}'
```

The catalog does not publish a sample response for this endpoint.

### 27. POST /evolution/message/sendMedia

Com esse endpoint é possível enviar PDF em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "mediatype": "document",
  "mimetype": "document/pdf",
  "caption": "Teste de caption",
  "media": "/9j/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZ......",
  "fileName": "aquivo-pdf.pdf"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendMedia" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","mediatype":"document","mimetype":"document/pdf","caption":"Teste de caption","media":"/9j/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZ......","fileName":"aquivo-pdf.pdf"}'
```

The catalog does not publish a sample response for this endpoint.

### 28. POST /evolution/message/sendWhatsAppAudio

Com esse endpoint é possível enviar áudio narrado via URL

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendWhatsAppAudio`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendWhatsAppAudio" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 29. POST /evolution/message/sendWhatsAppAudio

Com esse endpoint é possível enviar áudio narrado em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendWhatsAppAudio`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendWhatsAppAudio" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 30. POST /evolution/message/sendSticker

Com esse endpoint é possível enviar uma figurinha via URL

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendSticker`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendSticker" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 31. POST /evolution/message/sendSticker

Com esse endpoint é possível enviar uma figurinha em Base64

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendSticker`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendSticker" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 32. POST /evolution/message/sendLocation

Com esse endpoint é possível enviar a Localização

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendLocation`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434",
  "name": "Bora Bora",
  "address": "French Polynesian",
  "latitude": -16.505538233564373,
  "longitude": -151.7422770494996
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendLocation" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434","name":"Bora Bora","address":"French Polynesian","latitude":-16.505538233564373,"longitude":-151.7422770494996}'
```

The catalog does not publish a sample response for this endpoint.

### 33. POST /evolution/message/sendReaction

Com esse endpoint é possivel enviar uma reação com o ID da mensagem

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendReaction`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendReaction" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 34. POST /evolution/message/sendContact

Com esse endpoint é possível enviar a Contato

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/message/sendContact`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/message/sendContact" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 35. DELETE /evolution/instance/logout

Com esse endpoint é fazer logout da conexão do WhatsApp

- **Method:** `DELETE`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/logout`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X DELETE "https://gateway.apibrasil.io/api/v2/evolution/instance/logout" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 36. DELETE /evolution/instance/delete

Com esse endpoint é possivel fechar definitivamente a conexão do WhatsApp

- **Method:** `DELETE`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/delete`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X DELETE "https://gateway.apibrasil.io/api/v2/evolution/instance/delete" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 37. PUT /evolution/instance/restart

Com esse endpoint é possivel reiniciar a conexão com WhatsApp

- **Method:** `PUT`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/instance/restart`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X PUT "https://gateway.apibrasil.io/api/v2/evolution/instance/restart" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 38. POST /evolution/chat/fetchProfile

Com esse endpoint é possivel obter o perfil do Whatsapp Business

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/fetchProfile`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "number": "5531994359434"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/fetchProfile" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"number":"5531994359434"}'
```

The catalog does not publish a sample response for this endpoint.

### 39. DELETE /evolution/chat/deleteMessageForEveryone

Com esse endpoint, você deleta uma mensagem específica passando o messageid

- **Method:** `DELETE`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/deleteMessageForEveryone`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X DELETE "https://gateway.apibrasil.io/api/v2/evolution/chat/deleteMessageForEveryone" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 40. POST /evolution/chat/updateProfileName

Com esse endpoint é possivel alterar o nome do perfil do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/updateProfileName`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "name": "APIBrasil"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/updateProfileName" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"name":"APIBrasil"}'
```

The catalog does not publish a sample response for this endpoint.

### 41. POST /evolution/chat/updateProfileStatus

Com esse endpoint é possivel alterar o status do perfil do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/updateProfileStatus`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "status": "Unavailable for calls"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/updateProfileStatus" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"status":"Unavailable for calls"}'
```

The catalog does not publish a sample response for this endpoint.

### 42. POST /evolution/chat/updateProfilePicture

Com esse endpoint é possivel alterar o foto do perfil do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/updateProfilePicture`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "picture": "https://avatars.githubusercontent.com/u/136080052?s=200&v=4"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/updateProfilePicture" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"picture":"https://avatars.githubusercontent.com/u/136080052?s=200&v=4"}'
```

The catalog does not publish a sample response for this endpoint.

### 43. DELETE /evolution/chat/removeProfilePicture

Com esse endpoint é possivel remover o foto do perfil do whatsapp

- **Method:** `DELETE`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/removeProfilePicture`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X DELETE "https://gateway.apibrasil.io/api/v2/evolution/chat/removeProfilePicture" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 44. GET /evolution/chat/fetchPrivacySettings

Com esse endpoint é possivel obter a privacidade perfil do whatsapp

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/fetchPrivacySettings`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/chat/fetchPrivacySettings" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 45. POST /evolution/chat/updatePrivacySettings

Com esse endpoint é possivel alterar a privacidade do perfil do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/chat/updatePrivacySettings`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/chat/updatePrivacySettings" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 46. POST /evolution/group/create

Com esse endpoint é possivel criar grupos de WhatsApp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/create`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "subject": "Test 02",
  "description": "optional",
  "participants": [
    "5531900000000",
    "5531900000000"
  ]
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/create" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"subject":"Test 02","description":"optional","participants":["5531900000000","5531900000000"]}'
```

The catalog does not publish a sample response for this endpoint.

### 47. POST /evolution/group/updateGroupPicture?groupJid=120363314888103300

Com esse endpoint é possivel alterar a privacidade do grupo do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/updateGroupPicture?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "image": "https://evolution-api.com/files/sticker.png"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/updateGroupPicture?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"image":"https://evolution-api.com/files/sticker.png"}'
```

The catalog does not publish a sample response for this endpoint.

### 48. POST /evolution/group/updateGroupSubject?groupJid=120363314888103300

Com esse endpoint é possivel alterar o assunto de um grupo do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/updateGroupSubject?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "subject": "Group Name or Subject"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/updateGroupSubject?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"subject":"Group Name or Subject"}'
```

The catalog does not publish a sample response for this endpoint.

### 49. POST /evolution/group/updateGroupDescription?groupJid=120363314888103300

Com esse endpoint é possivel alterar a descrição de um grupo do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/updateGroupDescription?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "description": "Group Description or Rules"
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/updateGroupDescription?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"description":"Group Description or Rules"}'
```

The catalog does not publish a sample response for this endpoint.

### 50. GET /evolution/group/inviteCode?groupJid=120363314888103300

Com esse endpoint é possivel obter o invite code de um grupo do whatsapp

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/inviteCode?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/group/inviteCode?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 51. POST /evolution/group/revokeInviteCode?groupJid=120363314888103300

Com esse endpoint é possivel revogar um invite code de um grupo do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/revokeInviteCode?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/revokeInviteCode?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 52. POST /evolution/group/sendInvite

Com esse endpoint é possivel enviar um invite code para uma pessoa

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/sendInvite`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/sendInvite" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 53. GET /evolution/group/inviteInfo?groupJid=120363314888103300

Com esse endpoint é possivel obter informações de um invite de um grupo do WhatsApp

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/inviteInfo?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/group/inviteInfo?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 54. GET /evolution/group/findGroupInfos?groupJid=120363314888103300

Com esse endpoint é possivel obter informações de um invite pelo Jid

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/findGroupInfos?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/group/findGroupInfos?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 55. POST /evolution/group/updateParticipant?groupJid=120363314888103300

Com esse endpoint é possivel revogar um invite code de um grupo do whatsapp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/updateParticipant?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/updateParticipant?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 56. POST /evolution/group/updateSetting?groupJid=120363314888103300

Com esse endpoint é possivel adicionar pessoas em um grupos de WhatsApp

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/updateSetting?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/group/updateSetting?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 57. POST /evolution/label/handleLabel

Com esse endpoint é possivel criar novas labels

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/label/handleLabel`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/evolution/label/handleLabel" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 58. GET /evolution/label/findLabels

Com esse endpoint é possivel obter as labels

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/label/findLabels`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/label/findLabels" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

### 59. GET /evolution/group/participants?groupJid=120363314888103300

Com esse endpoint é possivel obter os contatos um grupo do whatsapp

- **Method:** `GET`
- **Address:** `https://gateway.apibrasil.io/api/v2/evolution/group/participants?groupJid=120363314888103300`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `DeviceToken` | `$APIBRASIL_DEVICE_TOKEN` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**In cURL**

```bash
curl -X GET "https://gateway.apibrasil.io/api/v2/evolution/group/participants?groupJid=120363314888103300" \
  -H "Content-Type: application/json" \
  -H "DeviceToken: $APIBRASIL_DEVICE_TOKEN" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN"
```

The catalog does not publish a sample response for this endpoint.

## Pitfalls: what an integration gets wrong without warning

Established from the responses the catalog itself publishes. In every one of them the code works on the happy path and fails silently everywhere else:

1. **The error arrives in the BODY, with HTTP 200.**
   The response carries a boolean `error` field and a `message`. Checking only `response.ok` or the HTTP status lets a failure through as a success. ALWAYS check `error === false` before reading `data`.

2. **`balance`, `tax` and `extra_charges.total` are STRINGS in Brazilian format — and the format varies between APIs.**
   Values seen in the catalog: `"154,380"`, `"497,84"`, `"0,000"` and `"0.19"`. Comma in some, dot in another; three decimal places in some, two in another. In JavaScript, `parseFloat("154,380")` returns `154` and drops the cents with no error at all, and `Number("154,380")` returns `NaN`. Write a converter that handles both separators, and never use these fields in a financial decision without converting them.

3. **Every call costs money.**
   Blind retries multiply the bill. Never automatically repeat a 4xx: a bad parameter repeated is still bad, and still charged. Retry only timeouts and 5xx, with exponential backoff and a small attempt ceiling.

4. **HTTP 402 means insufficient balance, and retrying does not fix it.**
   It is the one status that needs a human — a top-up. Treat it as a terminal error with its own message, and do not lump it in with generic 4xx.

5. **`extra_charges` bills on top of the lookup price.**
   When the body asks for add-on services, the response lists each one with its price plus a `total` that is NOT included in the base amount. If you show cost to an end user, add both.

## See also

- OpenAPI specification: https://doc.apibrasil.io/apis/planos/fd253842-bc08-11ef-bacf-000c298680d9/openapi.json
- API catalog: [API catalog](https://doc.apibrasil.io/apis.md)
- Official SDKs: [Official SDKs](https://doc.apibrasil.io/sdks.md)
- Documentation index: https://doc.apibrasil.io/llms.txt
- HTML version of this page: https://doc.apibrasil.io/apis/planos/fd253842-bc08-11ef-bacf-000c298680d9
