curl --request POST \
--url https://api.zapperapi.com/{instanceId}/messages/contact \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"jid": "<string>",
"vcard": {
"fn": "<string>",
"n": {
"lastName": "<string>",
"firstName": "<string>",
"additionalNames": [
"<string>"
],
"prefixes": [
"<string>"
],
"suffixes": [
"<string>"
]
},
"nickname": "<string>",
"photo": "<string>",
"bday": "<string>",
"adr": [
{
"postOfficeBox": "<string>",
"extendedAddress": "<string>",
"streetAddress": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>",
"countryName": "<string>",
"type": [
"<string>"
]
}
],
"tel": [
{
"value": "<string>",
"type": [
"<string>"
]
}
],
"email": [
{
"value": "jsmith@example.com",
"type": [
"<string>"
]
}
],
"url": "<string>",
"org": [
"<string>"
],
"title": "<string>",
"role": "<string>",
"logo": "<string>",
"note": "<string>",
"categories": [
"<string>"
]
}
}'
Envia uma mensagem de contato para um número de telefone ou grupo.
curl --request POST \
--url https://api.zapperapi.com/{instanceId}/messages/contact \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"jid": "<string>",
"vcard": {
"fn": "<string>",
"n": {
"lastName": "<string>",
"firstName": "<string>",
"additionalNames": [
"<string>"
],
"prefixes": [
"<string>"
],
"suffixes": [
"<string>"
]
},
"nickname": "<string>",
"photo": "<string>",
"bday": "<string>",
"adr": [
{
"postOfficeBox": "<string>",
"extendedAddress": "<string>",
"streetAddress": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>",
"countryName": "<string>",
"type": [
"<string>"
]
}
],
"tel": [
{
"value": "<string>",
"type": [
"<string>"
]
}
],
"email": [
{
"value": "jsmith@example.com",
"type": [
"<string>"
]
}
],
"url": "<string>",
"org": [
"<string>"
],
"title": "<string>",
"role": "<string>",
"logo": "<string>",
"note": "<string>",
"categories": [
"<string>"
]
}
}'
Chave privada da API
Default Response