List profile contacts
Get a paginated list of contacts belonging to a profile.
Get a paginated list of contacts belonging to a profile.
Contacts can be filtered by subscription status, by tag, and by an email search term.
The meta.total field of the response is the number of contacts matching the filters,
so calling this endpoint without filters gives the profile's total contact count.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
profileUuidstringRequiredExample:
Profile uuid parameter
550e8400-e09b-41d4-a716-400055000000Query parameters
subscription_statusstring · enumOptionalExample:
Filter contacts by subscription status
subscribedPossible values: tag_uuidstring · uuidOptionalExample:
Filter contacts by tag UUID
550e8400-e29b-41d4-a716-446655440000searchstring · max: 255OptionalExample:
Search contacts by email
john.doe@example.compageintegerOptionalExample:
Page number
1per_pageinteger · max: 100OptionalDefault:
Number of items per page
25Example: 25Responses
200
Success response
application/json
401
Unauthenticated response
application/json
500
Error response
application/json
get/api/reach/v1/profiles/{profileUuid}/contacts
GET /api/reach/v1/profiles/{profileUuid}/contacts HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"phone": "+14155552671",
"subscription_status": "subscribed",
"subscribed_at": "2023-01-01T00:00:00Z",
"unsubscribed_at": "2023-06-15T00:00:00Z",
"source": "api",
"note": "VIP customer"
}
],
"meta": {
"current_page": 1,
"per_page": 15,
"total": 100
}
}Last updated
Was this helpful?