PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Instância → Configurar Proxy

AI-generated

Summary

Set or update the proxy configuration for a specific WhatsApp instance by providing the instance ID, proxy URL, and enabling or disabling the proxy.

Inputs

  • ID da Instância (required) — The unique identifier of the WhatsApp instance to configure the proxy for.
  • URL do Proxy (required) — The full URL of the proxy server including protocol, credentials, host, and port (e.g., http://user:pass@proxy.com:8080).
  • Proxy Ativo — Boolean flag to enable (true) or disable (false) the proxy for the instance.

Output shape

a single JSON object representing the updated proxy configuration response from the PAPI WhatsApp API.

The response format depends on the PAPI WhatsApp API's proxy configuration endpoint. Errors such as authentication failure or non-existing instance will raise an error unless configured to continue on fail.

Examples

Example 1: Configure proxy for instance

Sets the proxy URL and enables proxy for the given WhatsApp instance ID.

Discussion