---
title: "Get contacts from a HubSpot segment"
method: GET
path: "/api/hubspot/segments/{id}/contacts"
tags: ["Hubspot segments"]
---

# Get contacts from a HubSpot segment

`GET /api/hubspot/segments/{id}/contacts`

## 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/{id}/contacts`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/hubspot/segments/:id/contacts/get.ts> (a function with typed inputs; its response is checked against the schema)

Proxies HubSpot API to return contact emails for the given segment (list) ID. Requires authentication.

## Path parameters

- `id` string, required

## Response `200`

Contact emails in the segment

- object
  - `success` boolean, required
  - `data` string[], required

## Other responses

- `401`: Unauthorized
- `500`: HubSpot API error or segment ID not set

---

[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)
