Skip to main content
POST
/
messages
/
contacts
Send a contact message
curl --request POST \
  --url https://messenger-public-api.cogfy.com/messages/contacts \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "from": "<string>",
  "to": "<string>",
  "contacts": [
    {
      "name": {
        "formatted_name": "<string>",
        "first_name": "<string>",
        "last_name": "<string>",
        "middle_name": "<string>",
        "suffix": "<string>",
        "prefix": "<string>"
      },
      "phones": [
        {
          "phone": "<string>",
          "type": "<string>",
          "wa_id": "<string>"
        }
      ],
      "addresses": [
        {
          "street": "<string>",
          "city": "<string>",
          "state": "<string>",
          "zip": "<string>",
          "country": "<string>",
          "country_code": "<string>",
          "type": "<string>"
        }
      ],
      "birthday": "<string>",
      "emails": [
        {
          "email": "<string>",
          "type": "<string>"
        }
      ],
      "org": {
        "company": "<string>",
        "department": "<string>",
        "title": "<string>"
      },
      "urls": [
        {
          "url": "<string>",
          "type": "<string>"
        }
      ]
    }
  ]
}'
{
  "id": "<string>"
}

Authorizations

api-key
string
header
required

Body

application/json
from
string
required
to
string
required
contacts
object[]
required
Minimum length: 1

Response

200 - application/json
id
string