Núcleo Wondai icon

Núcleo Wondai

Atendimento de IA no Núcleo Wondai: preparar conversa (GATE liga/desliga + contexto operacional ANTES da LLM), buscar cliente, resolver catálogo (fuzzy), criar/alterar/cancelar pedido, consultar contexto e registrar conversa. Assinatura HMAC; o tenant vem do token.

Canal WhatsApp → Obter Mídia Recebida

AI-generated

Summary

Retrieve a received WhatsApp media message by specifying its Evolution message ID through a secure, signed POST request to the Núcleo Wondai API.

Inputs

  • Message ID (required) — ID of the received Evolution message to fetch media for; instance and API key are not parameters.
  • Token ID Dinamico — Optional dynamic token returned by the multi-tenant bootstrap, used together with the dynamic Signing Secret for authentication.
  • Signing Secret Dinamico — Optional ephemeral signing secret returned by the bootstrap; must be kept secure and should never be logged or output.

Output shape

a JSON payload representing the requested media attached to the specified WhatsApp message, or an error envelope if the request fails.

This operation makes a signed POST request to the Núcleo Wondai API endpoint /api/v1/agent/canal/whatsapp/midia/obter. Authentication uses HMAC v1 signing with the provided or credential-stored Token ID and Signing Secret. The response is parsed as JSON and includes the media content or an error message. If an error occurs and 'continueOnFail' is enabled, an error object with status is returned instead of throwing.

Examples

Example 1: Fetch media from a received WhatsApp message

Provide the 'Message ID' of the Evolution WhatsApp message whose media you want to retrieve. Optionally supply dynamic Token ID and Signing Secret if different from the stored credentials.

Links

Discussion