PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Utilidades → Atualizar Presença

AI-generated

Summary

Update the presence status of a WhatsApp user or chat using the PAPI WhatsApp API.

Inputs

  • ID da Instância (required) — The identifier of the WhatsApp instance to target for updating presence.
  • JID (required) — The JID (Jabber ID) of the contact or chat whose presence status will be updated.
  • Tipo de Presença (required) — The presence type to set, chosen from available statuses: available, unavailable, composing (typing), recording, or paused.

Output shape

a single JSON object containing the API response for the presence update operation.

The response is obtained from the PAPI WhatsApp API and typically confirms success or failure of the presence update; no pagination applies.

Examples

Example 1: Set presence to 'typing' for a specific contact

Provide the instance ID, the contact's JID, and set the presence type to 'composing'.

Discussion