Wacap icon

Wacap

Interact with WhatsApp using Wacap Docker API

Message → Send Contact

AI-generated

Summary

Send a contact card via WhatsApp using the Wacap API.

Inputs

  • sessionId (required) — Session ID/name of the WhatsApp session to use. Defaults to 'default'.
  • to (required) — Recipient phone number (without + or spaces) or group ID.
  • contactFullName (required) — Full name of the contact to send.
  • contactPhoneNumber (required) — Phone number of the contact (without + or spaces).
  • contactOrganization — Organization of the contact (optional).

Output shape

object

The raw JSON response from the Wacap /api/send/contact endpoint, containing the result of the contact send operation.

Examples

Example 1: Send a contact to a user

Set sessionId to your session name, to the target phone number, contactFullName to the contact's name, contactPhoneNumber to the contact's number, and optionally fill contactOrganization.

Discussion