Create a contact
Crea un contacto nuevo
Creates a new contact.
POST
/v2/contact/{identifier}
Provide your bearer token in the Authorization header when making requests to protected resources. Example: Authorization: Bearer 123
Identifier of the contact that can either be a phone number, email or contact ID. Examples: email:[email protected]
, phone:+593998445667
Path Parameters
Name
Type
Description
identifier*
String
Headers
Name
Type
Description
Token*
Bearer token
Request Body
Name
Type
Description
Parameters
Json
{
"code": "200",
"message": "Contact added successfully!"
}
Ejemplo de la petición:
curl --request POST \
--url https://api.chatapi.net/v2/contact/identifier \
--header 'Authorization: Bearer 123456789012345678901234567890' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "Juan",
"lastName": "Perez",
"phone": "+593998933456",
"email": "[email protected]",
"language": "es",
"profilePic": "https://cdn.ecuabots.com/profile_avatar.png",
"countryCode": "EC",
"custom_fields": [
{
"name": "Company Website",
"value": "https://example.com"
}
]
}'
Respuesta - Success (HTTP status → 200)
{
"code": "200",
"message": "Contact added successfully!"
}
Last updated