Create a new contact
Create a new contact in the email marketing system.
Create a new contact in the email marketing system.
This endpoint allows you to create a new contact with basic information like name, email, and surname.
If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
Authorizations
AuthorizationstringRequired
API Token authentication
Body
emailstringRequiredExample:
john.doe@example.comnamestring · nullableOptionalExample:
Johnsurnamestring · nullableOptionalExample:
Doephonestring · max: 20 · nullableOptionalExample:
Phone number in E.164 format (leading "+" then 7-15 digits)
+14155552671notestring · max: 75 · nullableOptionalExample:
VIP customertag_uuidsstring[]Optional
Existing tags to attach to the created contact
Responses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
post/api/reach/v1/contacts
POST /api/reach/v1/contacts HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"email": "john.doe@example.com",
"name": "John",
"surname": "Doe",
"phone": "+14155552671",
"note": "VIP customer",
"tag_uuids": [
"text"
]
}{
"message": "Request accepted"
}Last updated
Was this helpful?