Authorizations
Response
200 - application/json
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>"
}Sends a contact message to a phone number. Requires that the recipient has messaged the business in the last 24 hours.
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>"
}