WapiZap Chat icon

WapiZap Chat

Manage WhatsApp chats via WapiZap API

Send Presence

AI-generated

Summary

Sends a presence status to a WhatsApp chat.

Inputs

  • apiVersion — Which API version to use
  • instanceName (required) — Name of the WhatsApp instance
  • chatId (required) — WhatsApp chat ID
  • presenceType — Type of presence to send
  • duration — How long to show the presence (0 = one-time)

Output shape

a presence confirmation object

Returns the API response confirming the presence; errors are thrown and not wrapped in a payload.

Examples

Example 1: Mark a user as online

apiVersion=v2&instanceName=my-instance&chatId=5511999998888@c.us&presenceType=available&duration=0

Example 2: Show typing indicator for 10 seconds

apiVersion=v2&instanceName=my-instance&chatId=123456789@c.us&presenceType=composing&duration=10

Discussion