cURL
curl --request GET \ --url https://api-message.nativehub.live/api/v1/segments/{id}/contacts \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "c9d0e1f2-a3b4-5678-cd90-123456789012", "tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012", "name": "Alice Johnson", "phone": "+8801712345678", "email": "[email protected]", "tags": { "segment": "premium", "region": "dhaka" }, "created_at": "2026-02-01T09:00:00Z", "updated_at": "2026-02-10T11:30:00Z" } ], "total": 123, "page": 123, "per_page": 123 }
Retrieve contacts matching segment conditions
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Segment ID
Page number (default 1)
x >= 1
Items per page (default 20, max 100)
1 <= x <= 100
Contacts retrieved successfully
Show child attributes