Create a contact field
Define a new custom contact field in a profile. The slug is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
Define a new custom contact field in a profile.
The slug is derived from the label and, like the field type, cannot be changed later.
Use the returned uuid to set values on contacts.
API Token authentication
Profile uuid parameter
550e8400-e09b-41d4-a716-400055000000Define a custom contact field for the profile
Immutable once the field exists
textPossible values: Job titleRequired for single_choice and multi_choice, ignored for the scalar types. Labels must be unique regardless of casing.
Success response
550e8400-e29b-41d4-a716-446655440000textPossible values: Job titleDerived from the label on creation and immutable afterwards
job_title2025-02-27T11:54:22ZUnauthenticated response
Validation error response
Error response
POST /api/reach/v1/profiles/{profileUuid}/contacts/fields HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"type": "text",
"label": "Job title",
"options": [
"text"
]
}{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"type": "text",
"label": "Job title",
"slug": "job_title",
"options": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"label": "Gold",
"sort_order": 0
}
],
"created_at": "2025-02-27T11:54:22Z"
}Last updated
Was this helpful?