cURL
curl --request GET \ --url https://api-message.nativehub.live/api/v1/segments \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "e7f8a9b0-c1d2-3456-ef78-901234567890", "tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012", "name": "Premium Customers", "conditions": { "tags": { "segment": "premium" }, "region": [ "dhaka", "chittagong" ] }, "contact_count": 1250, "created_at": "2026-02-05T10:00:00Z" } ], "total": 123, "page": 123, "per_page": 123 }
Retrieve paginated list of contact segments
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Page number (default 1)
x >= 1
Items per page (default 20, max 100)
1 <= x <= 100
Segments retrieved successfully
Show child attributes