ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Plataforma → Obter Foto de Perfil

AI-generated

Summary

Fetches a WhatsApp profile picture through the ZapGate API for the configured instance. Optionally pass a phone number to look up a contact; with no number, the request uses the operation’s instance profile-picture endpoint.

Inputs

  • Número (phone, optional query) — Optional number to look up. The source defines no default and omits the query parameter when left blank.
  • ZapGate credentials (required) — Requires the instance ID and either the Admin API Key or Instance Token. The request uses GET on /instances/{instanceId}/user/profile-picture with instance authentication.

Output shape

A single item per input item, containing the API response as JSON.

The node passes the endpoint response through unchanged when it is an object; a non-object response is wrapped as { "result": "…" }. Errors stop execution unless Continue On Fail is enabled, in which case the item contains an error field. The operation has no binary image response handling in the node source.

Examples

Example 1: Look up a contact’s profile picture

Set the optional Número query parameter to the contact’s phone number, then use the returned JSON in downstream nodes.

Example 2: Call the endpoint without a phone number

Leave Número blank; the query parameter is omitted from the request.

Links

Discussion