> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pilotstatus.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Enviar áudio de voz

> Envia um áudio de voz/PTT do WhatsApp por URL pública (base64 e upload de arquivo multipart também são suportados).



## OpenAPI

````yaml openapi.evolution-v2.pt.json POST /message/sendWhatsAppAudio/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Camada de API do Pilot Status — Evolution V2. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Autentique com o header
    `apikey` (sua chave `ps_` do Pilot Status). Endpoints de instância/sessão
    NÃO estão disponíveis na camada.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Chamada e Business
  - name: Chat
  - name: Grupo
  - name: Etiqueta (Label)
  - name: Mensagem
  - name: Perfil
  - name: Configurações e Proxy
  - name: Armazenamento (S3)
  - name: Template
paths:
  /message/sendWhatsAppAudio/{instance}:
    post:
      tags:
        - Mensagem
      summary: Enviar áudio de voz
      description: >-
        Envia um áudio de voz/PTT do WhatsApp por URL pública (base64 e upload
        de arquivo multipart também são suportados).
      operationId: post__message_sendWhatsAppAudio_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: O nome de exibição do número no painel do Pilot Status.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                number:
                  type: string
                  description: Telefone do destinatário em E.164 sem `+`, ou um JID.
                  example: '5511999999999'
                audio:
                  type: string
                  description: URL pública (ou base64) do arquivo de áudio.
                  example: https://media.pilotstatus.com.br/voice.ogg
                delay:
                  type: integer
                  description: Atraso antes do envio, em milissegundos.
                quoted:
                  type: object
                  description: Mensagem a citar/responder (`key`, `message`).
                everyOne:
                  type: boolean
                  description: Mencionar todos no grupo.
                mentioned:
                  type: array
                  items:
                    type: string
                  description: Array de strings numéricas a mencionar.
              required:
                - number
                - audio
      responses:
        '200':
          description: Sucesso — corpo de resposta nativo do provedor.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Sent voice audio (PTT). Returns the persisted Baileys
                  messageRaw envelope.
                properties:
                  key:
                    type: object
                    properties:
                      remoteJid:
                        type: string
                        description: Recipient JID.
                      fromMe:
                        type: boolean
                      id:
                        type: string
                  pushName:
                    type: string
                  status:
                    type: string
                    enum:
                      - ERROR
                      - PENDING
                      - SERVER_ACK
                      - DELIVERY_ACK
                      - READ
                      - PLAYED
                  message:
                    type: object
                    properties:
                      audioMessage:
                        type: object
                        description: Voice/audio content.
                        properties:
                          url:
                            type: string
                            description: Encrypted WhatsApp CDN URL.
                          mimetype:
                            type: string
                            description: Typically 'audio/ogg; codecs=opus'.
                          fileSha256:
                            type: string
                          fileLength:
                            type: string
                          seconds:
                            type: integer
                            description: Audio duration in seconds.
                          ptt:
                            type: boolean
                            description: True for push-to-talk voice notes.
                          mediaKey:
                            type: string
                          directPath:
                            type: string
                  contextInfo:
                    type:
                      - object
                      - 'null'
                  messageType:
                    type: string
                  messageTimestamp:
                    type: integer
                  instanceId:
                    type: string
                  source:
                    type: string
              example:
                key:
                  remoteJid: 5511999999999@s.whatsapp.net
                  fromMe: true
                  id: 3EB0AABBCCDDEEFF001122
                pushName: Você
                status: PENDING
                message:
                  audioMessage:
                    url: >-
                      https://mmg.whatsapp.net/v/t62.7117-24/11223_334455667788990_1122334455667788990_n.enc
                    mimetype: audio/ogg; codecs=opus
                    fileSha256: QVVESU9NRVNTQUdFU0hBMjU2RVhBTVBMRT0=
                    fileLength: '18734'
                    seconds: 5
                    ptt: true
                    mediaKey: QVVESU9NRURJQUtFWUJBU0U2NEVYQU1QTEU9
                    directPath: >-
                      /v/t62.7117-24/11223_334455667788990_1122334455667788990_n.enc
                contextInfo: null
                messageType: audioMessage
                messageTimestamp: 1720483380
                instanceId: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
                source: web
        default:
          description: Erro — erro do provedor ou da camada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````