v1
latestOpenAPI 3.1.02026-07-1413113265.9 KBcontact
[BETA] add and update contact
Creates a new contact or updates an existing one in the address book. The contact will be synchronized to the device's address book if syncToAddressbook is true. Note: This endpoint is currently in beta and may change without notice.
post/instances/{id}/client/action/upsert-contact
Path parameters
idinteger required
Instance ID
Request body
Example request
{
"phoneNumber": "50664083362",
"firstName": "John",
"lastName": "Doe",
"syncToAddressbook": true
}Response
Contact saved or updated successfully
Example response
{
"instanceId": "1111",
"data": {
"chatId": {
"server": "c.us",
"user": "1122563896",
"_serialized": "1122563896@c.us"
}
},
"links": {
"self": "https://waapi.app/api/v1/instances/1/client/action/upsert-contact"
},
"status": "success"
}