---
title: "List HubSpot segments"
method: GET
path: "/api/hubspot/segments"
tags: ["Hubspot segments"]
---

# List HubSpot segments

`GET /api/hubspot/segments`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/hubspot/segments`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/hubspot/segments/get.ts> (a function with typed inputs; its response is checked against the schema)

Proxies HubSpot API to return contact segments (lists). Requires authentication.

## Query parameters

- `offset` integer
- `count` integer
- `query` string

## Response `200`

HubSpot segments (id, name) with pagination

- object
  - `data` HubspotSegmentResource[]
    - `id` string: HubSpot list/segment ID
    - `name` string: Segment name
  - `total` integer
  - `offset` integer
  - `hasMore` boolean

## Other responses

- `401`: Unauthorized
- `500`: HubSpot API error

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
