Palantiri API icon

Palantiri API

Enviar mensagens e consultar a Palantiri API (WhatsApp)

Baixar Mídia

AI-generated

Summary

Download media content from a specific message in a chat on a Palantiri API instance.

Inputs

  • Instance ID (required) — ID of the Palantiri API instance; must match the instance owning the API key when using an instance-specific key.
  • Chat JID (required) — JID of the chat containing the message with the media to download.
  • Message ID (required) — ID of the message from which to download the media content.

Output shape

a list of items each containing JSON metadata (chat JID, message ID, media MIME type) and a binary property holding the downloaded media file data

The media is fetched as raw binary data and attached as binary data under the 'data' binary property. The file extension is inferred from the media MIME type header. The output item is paired with the corresponding input item.

Examples

Example 1: Download media from a message in a WhatsApp chat

Set 'Instance ID' to your Palantiri API instance ID, 'Chat JID' to the chat's JID, and 'Message ID' to the message ID containing the media to download.

Links

Discussion