Actions50
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Sending Actions
- Service Actions
- Status Actions
- Receiving Actions
Sending → sendContact
AI-generatedSummary
Send a contact card to a specified chat in WhatsApp.
Inputs
- chatId (required) — The ID of the chat to which the contact will be sent, formatted as 'phoneNumber@c.us'.
- phoneContact (required) — The phone number of the contact to be sent.
- firstName — The first name of the contact.
- middleName — The middle name of the contact.
- lastName — The last name of the contact.
- company — The name of the company associated with the contact.
- quotedMessageId — Optional ID of a message to quote when sending the contact.
Output shape
no body — success/failure only
Upon successful execution, there is no return body, and the operation is strictly for sending the contact.
Examples
Example 1: Sending a contact named 'John Doe' with phone number '79000000000' to a chat identified by '79000000000@c.us'.
Set 'chatId' to '79000000000@c.us', 'phoneContact' to '79000000000', 'firstName' to 'John', and 'lastName' to 'Doe'.