Skip to content

List segments

If you have questions regarding this API, please visit our API FAQ page.

Listing segments

Make a GET request to https://webapi.inboxroad.com/api/v2/segments/ with a valid X-API-Key.

Terminal window
curl -X GET 'https://webapi.inboxroad.com/api/v2/segments/' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json'

Response fields

Field nameDescription
paginationPagination metadata for the results.
itemsList of segment objects.

Segment object

Field nameDescription
idUnique identifier of the segment (UUID).
nameName of the segment.
colorHex color assigned to the segment.
statusBuild state: PENDING, RUNNING, DONE, or FAILED.
total_countNumber of matching contacts. Only meaningful when status is DONE; otherwise null.
created_atDate and time the segment was created.
updated_atDate and time the segment was last updated.

Example response

{
"pagination": {
"page": 1,
"page_size": 25,
"total_count": 8,
"total_pages": 1
},
"items": [
{
"id": "92a6ef72-c74e-4e37-bd84-9e8fbb83fef4",
"name": "Active Subscribers",
"color": "#7cb7de",
"status": "DONE",
"total_count": 1824,
"created_at": "2026-05-10T09:00:00Z",
"updated_at": "2026-05-21T11:15:00Z"
}
]
}

Query parameters

Param namePossible valuesDescription
pageInteger1-based page number. Default 1.
page_sizeIntegerResults per page. Default 25.
searchStringSearch segments by name.
orderingasc, descSort direction. Default desc.
order_byname, total_count, created_at, updated_atField to sort by. Default updated_at.

For example:

Terminal window
curl -X GET 'https://webapi.inboxroad.com/api/v2/segments/?page=1&page_size=10&order_by=name&ordering=asc' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json'

Pagination

Field nameDescription
pageCurrent page number.
page_sizeNumber of results per page.
total_countTotal number of segments.
total_pagesTotal number of available pages.