OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions164

Message → Send Contact

AI-generated

Summary

Send a WhatsApp contact card to the selected chat through the chosen session. Requires the contact's display name and phone number, including country code as the node does not add it automatically. Optionally, include an idempotency key (1-255 visible ASCII characters without spaces) to make the send safely retryable on OpenWA 0.25.0 or later: resending a request with the same key within 24 hours returns the first result. Use a unique idempotency key per intended message, reusing it only for retries of that message. A quoted message ID can be provided to send this contact as a reply to an earlier stored message; if the engine cannot resolve the quote ID, the send fails instead of sending without quoting.

Inputs

  • Session Name or ID (required) — Session to send from; choose a listed session or provide its ID.
  • Chat Name or ID (required) — Recipient chat ID, such as a personal chat ending in @c.us or a group ending in @g.us. The dropdown lists up to 1,000 chats; use an expression for others.
  • Contact Name (required) — Display name shown on the shared contact card.
  • Contact Number (required) — Phone number for the contact, including country code. It is not automatically prefixed.
  • Quoted Message ID — Optional ID of an earlier message to quote. If the engine cannot resolve the ID, the send fails rather than proceeding without a quote.

Output shape

A single item containing the send endpoint's response.

The operation sends a contact card; the source does not specify the response fields. A quoted message must already be stored by Baileys to be quoted.

Links

Discussion