API - Documentation

Integrate now with the biggest communication platform in the world, WhatsApp Business API through Positus.

Positus Architecture - WhatsApp Business API

Production Environment: Your token will be generated and provided by Positus, it will give access to all your WhatsApp Business API numbers. MediaId will be provided after activation of each WhatsApp Business API number. Sandbox (Development environment): You can generate your token directly at http://studio.posit.us/.

Postman file

Postman is a tool that aims to test RESTful services (Web APIs) by sending HTTP requests and analyzing their feedback. Download Postman App

messages

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Utilize this route to send text messages via WhatsApp

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

HSM

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Utilize this route to send notification messages via WhatsApp HSM - Are message templates that are pre-approved by Facebook, can be text messages, media, or files.

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Contact

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share contacts

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Location

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share location

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Image

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share images

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Document

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share images

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Video

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share videos

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Audio

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share audio

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Sticker

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Share stickers. Sticker format must be exactly 512x512

Path Parameters

Headers

Request Body

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Download Media

GET https://api.positus.global/v2/whatsapp/numbers/{{chave}}/media/{{messages.type.id}}

Download media

Path Parameters

Headers

{
    "messages": [
        {
            "id": "gBGHVRGZmZmZnwIJpWDiExk7olMZ"
        }
    ],
    "message": "The message was successfully sent"
}

Mensagens Interativas - Lista

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

List Messages: Messages including a menu of up to 10 options. This type of message offers a simpler and more consistent way for users to make a selection when interacting with a company. List button or reply messages cannot be used as notifications. Currently, they can only be sent within 24 hours of the last message sent by the user. If you try to send a message outside the 24-hour window, you will receive an error message.

Path Parameters

Headers

Request Body

Mensagens Interativas - Botões

POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/messages

Reply buttons: Messages including up to 3 options - each option is a button. This type of message offers a faster way for users to make a selection from a menu when interacting with a company. Response buttons have the same user experience as interactive button models. List button or reply messages cannot be used as notifications. Currently, they can only be sent within 24 hours of the last message sent by the user. If you try to send a message outside the 24-hour window, you will receive an error message.

Path Parameters

Headers

Request Body

Last updated