👤 Contacts

Create or update contact

Create or update contact on the phone address book. May not work if you have installed many WhatsApp apps on the same phone

put/api/{session}/contacts/{chatId}

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/{session}/contacts/{chatId}
  • Auth: API key in header X-Api-Key

Path parameters

sessionstring required

Session name

chatIdstring required
Example:123456789@c.us

Chat ID

Request body

firstNamestring required

Contact First Name

lastNamestring required

Contact Last Name

Example request

{
  "firstName": "John",
  "lastName": "Doe"
}

Response

successboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.