Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HubSpot Memberships API

Operations for managing list memberships

HubSpot Memberships API is one of 93 APIs that HubSpot publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 652 JSON Schema definitions.

Tagged areas include Memberships. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, code examples, and 652 JSON Schemas.

This API exposes 3 operations across 3 paths, and defines 6 schemas. It is described by OpenAPI 3.1.0, at version 3.0.0.

Requests are made against a single base URL, https://api.hubapi.com.

3 operations 3 paths 6 schemas 1 GET2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.0.0
Base URL
https://api.example.com
Authentication
OAuth 2.0
License
Resource Areas
1

Authentication & Security 1

HubSpot Memberships API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 1 scope.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 1 GET, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Memberships 3

Operations for managing list memberships

GET
/crm/v3/lists/{listId}/memberships
Hubspot Get List Members
getListMemberships 3 params → 200401404
PUT
/crm/v3/lists/{listId}/memberships/add
Hubspot Add Members to a List
addListMembers 1 param body → 200400401404
PUT
/crm/v3/lists/{listId}/memberships/remove
Hubspot Remove Members From a List
removeListMembers 1 param body → 200400401404

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Error (4 properties), MembershipChangeResponse (4 properties), CollectionResponseMembership (2 properties), MembershipChangeRequest (2 properties). Each schema is shown below with its type and property counts.

Membership
object
A list membership record.
2 properties
MembershipChangeResponse
object
Response from a list membership change operation.
4 properties
Error
object
An error response.
4 properties
MembershipChangeRequest
object
Request body for adding or removing list members.
2 properties
Paging
object
Pagination information.
1 property
CollectionResponseMembership
object
A paginated list of list memberships.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-memberships-api-openapi.yml Raw ↑

Other APIs HubSpot publishes across the network.

HubSpot Posts API
HubSpot URL Redirects API
HubSpot Pipelines API
HubSpot Products API
HubSpot Line Items API
HubSpot Quotes API
HubSpot CRM Properties API
HubSpot Owners API
HubSpot CRM Imports API
HubSpot Custom Objects API
HubSpot Marketing Events API
HubSpot Forms API