For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a new contact

Create a new contact in the email marketing system.

Deprecated

Create a new contact

post

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.com
namestring · nullableOptionalExample: John
surnamestring · nullableOptionalExample: Doe
phonestring · max: 20 · nullableOptional

Phone number in E.164 format (leading "+" then 7-15 digits)

Example: +14155552671
notestring · max: 75 · nullableOptionalExample: VIP customer
tag_uuidsstring[]Optional

Existing tags to attach to the created contact

Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
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?