## Wascript API

     1.0.0

    OAS 3.0

Welcome to the WAScript API documentation. Our API provides a set of endpoints that enable integration and automation with WhatsApp Web, facilitating the development of custom solutions.

Servers

### Messages

Endpoints for sending text messages, images, videos, documents, and audio.

Receives a base64 audio and sends it to a specific phone number on WhatsApp.

#### Parameters

Name | Description
--- | ---
token * string ( path ) | User authentication token

#### Request body

    {
      "phone": "551183550000",
      "base64": "data:audio/mp3;base64,SUQzBAAAAA..."
    }

#### Responses

Code | Description | Links
200 | Audio sent successfully Media type Controls `Accept` header.
    {
      "success": true,
      "message": "Áudio Sent com sucesso"
    }
| No links
400 | Invalid request or token not provided Media type
    {
      "success": false,
      "message": "Token é obrigatório ou phone/base64 são obrigatórios"
    }
| No links
402 | Base64 size exceeds limit Media type
    {
      "success": false,
      "message": "O tamanho do base64 excede o limite"
    }
| No links
404 | Token not registered Media type
    {
      "success": false,
      "message": "Token não cadastrado"
    }
| No links
500 | Server error Media type
    {
      "success": false,
      "message": "Erro no servidor. Por favor, tente novamente mais tarde.",
      "error": "Mensagem de erro"
    }
| No links
501 | Socket error Media type
    {
      "success": false,
      "message": "Página do Whatsapp não aberta ou API desconectada."
    }
| No links

### Tags

Endpoints for tag management.

### Notes

Endpoints for creating notes.

Original text
Rate this translation
Your feedback will be used to help improve Google Translate