WUAPI
  1. Messages
WUAPI
  • Messages
    • Send plain text
      POST
    • Send image
      POST
    • Send audio
      POST
    • Send video
      POST
    • Send document
      POST
    • Send location
      POST
    • Send link
      POST
    • Send contact
      POST
    • Delete message by id
      DELETE
    • Get message by id
      GET
  • Users
    • Create new user
      POST
    • Get all users
      GET
  • Instances
    • Create new instance
      POST
    • List All instance
      GET
    • Update instance
      PUT
    • List by instance id
      GET
    • Delete instance
      DELETE
    • Restart instance
      GET
    • Get QRCode
      GET
    • Get QRCode in base64 image.
      GET
    • Disconnect instance
      GET
    • Update profile picture
      PUT
    • Delete profile picture
      DELETE
    • Update profile name
      PUT
  • Webhook
    • Connection event for your instance
      POST
    • Disconnection event for your instance
      POST
    • Event when you receive a message
      POST
    • Event when you send a message
      POST
  • Queues
    • Get queue instance
    • Delete queue instance
    • Get queue failed instance
    • Retry queue
  • Groups
    • Create new group
    • Get all groups
    • Get group by id
    • Add contact to group
    • Update picture of group
    • Set admins only
    • Add and remove admins in group
  • Manage
    • Restart server
  1. Messages

Send contact

POST
/messages/instances/{instanceId}/send-contact
Messages
Last modified:2024-06-12 01:04:44
OperationId:MessagesController_sendContact

Request

Authorization
Add parameter in header
authorization
Example:
authorization: ********************
Path Params
instanceId
string 
required
Body Params application/json
phone
string 
optional
Phone number (send either this or groupId, but not both)
groupId
string 
optional
Group ID (send either this or phone, but not both)
contactName
string 
required
contactPhone
string 
required
delayMessage
number 
optional
delayTyping
number 
optional
Example
{
    "phone": "string",
    "groupId": "string",
    "contactName": "string",
    "contactPhone": "string",
    "delayMessage": 0,
    "delayTyping": 0
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/messages/instances//send-contact' \
--header 'Content-Type: application/json' \
--header 'authorization;' \
--data-raw '{
    "phone": "string",
    "groupId": "string",
    "contactName": "string",
    "contactPhone": "string",
    "delayMessage": 0,
    "delayTyping": 0
}'

Responses

🟢200Message sent
application/json
Body
messageId
string 
read-onlyrequired
Example:
4238742333322765CCD245
Example
{
    "messageId": "4238742333322765CCD245"
}
🟢202Message queued
🟠400400
🔴500500
Modified at 2024-06-12 01:04:44
Previous
Send link
Next
Delete message by id
Built with