Skip to main content
POST
/
contacts
Create a new contact
curl --request POST \
  --url https://messenger-public-api.cogfy.com/contacts \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "waProfileName": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "[email protected]",
  "phone": "<string>",
  "occupation": "<string>",
  "gender": "<string>",
  "birthdate": "2023-12-25",
  "age": 123,
  "notes": "<string>",
  "customProperties": {
    "Favorite Color": "Blue"
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

api-key
string
header
required

Body

application/json
waProfileName
string
firstName
string
lastName
string
email
string<email>
phone
string
occupation
string
gender
string
birthdate
string<date>
age
integer
notes
string
customProperties
object

Custom properties associated with the contact

Example:
{ "Favorite Color": "Blue" }

Response

201 - application/json

Contact created successfully

id
string<uuid>