SponsorUnited Hubspot segments API

Hubspot segments

Operations 2

GET /api/hubspot/segments/{id}/contacts Get contacts from a HubSpot segment #
GET /api/hubspot/segments List HubSpot segments #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sponsorunited-hubspot-segments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sponsorunited-hubspot-segments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SponsorUnited Hubspot segments API
  version: v1
  description: Hubspot segments
tags:
- name: Hubspot segments
  description: Hubspot segments
paths:
  /api/hubspot/segments/{id}/contacts:
    get:
      tags:
      - Hubspot segments
      summary: Get contacts from a HubSpot segment
      description: Proxies HubSpot API to return contact emails for the given segment (list) ID. Requires authentication.
      operationId: 3e730210d6400fc956b388b75ebfdb1d
      parameters:
      - name: id
        in: path
        description: HubSpot list (segment) ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Contact emails in the segment
          content:
            application/json:
              schema:
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      type: string
                      example: user@example.com
                type: object
        '401':
          description: Unauthorized
        '500':
          description: HubSpot API error or segment ID not set
      security:
      - bearerAuth: []
  /api/hubspot/segments:
    get:
      tags:
      - Hubspot segments
      summary: List HubSpot segments
      description: Proxies HubSpot API to return contact segments (lists). Requires authentication.
      operationId: 8976180bbcff4bb490dc16e320633fa6
      parameters:
      - name: offset
        in: query
        description: Pagination offset
        required: false
        schema:
          type: integer
          default: 0
      - name: count
        in: query
        description: Number of segments to return (max 500)
        required: false
        schema:
          type: integer
          default: 500
      - name: query
        in: query
        description: Filter segments by list name (HubSpot searches by list name)
        required: false
        schema:
          type: string
      responses:
        '200':
          description: HubSpot segments (id, name) with pagination
          content:
            application/json:
              schema:
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/HubspotSegmentResource'
                  total:
                    type: integer
                  offset:
                    type: integer
                  hasMore:
                    type: boolean
                type: object
        '401':
          description: Unauthorized
        '500':
          description: HubSpot API error
      security:
      - bearerAuth: []
components:
  schemas:
    HubspotSegmentResource:
      properties:
        id:
          description: HubSpot list/segment ID
          type: string
        name:
          description: Segment name
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      name: JWT Authentication
      in: header
      bearerFormat: JWT
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      description: 'Service API key for external services (ai-api, chat-api). Generate with: php artisan su:api-token:generate'
      name: X-API-Key
      in: header