PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Mensagem → Enviar Imagem

AI-generated

Summary

Send an image message via WhatsApp through a specified instance to a recipient or group.

Inputs

  • ID da Instância (required) — ID of the WhatsApp instance to send the image from.
  • Número/JID (required) — Recipient's phone number including country code or the group JID.
  • URL da Mídia (required) — URL of the image to be sent.
  • Legenda — Optional caption to accompany the image.

Output shape

a single JSON object containing the API response to the image send request

The response includes details from the PAPI WhatsApp API; errors will throw unless "Continue On Fail" is enabled, in which case error details are included in the output.

Examples

Example 1: Sending an image with caption

Instance ID: 'minha-instancia', Recipient Number: '5511999999999', Media URL: 'https://example.com/image.jpg', Caption: 'Look at this!'

Discussion