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 Object Associations API

Create, retrieve, and delete associations between individual CRM objects

HubSpot Object Associations 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 Object Associations. 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 2 paths, and defines 10 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 2 paths 10 schemas 1 DELETE1 GET1 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 Object Associations 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 2 paths, the API surfaces 3 operations — 1 DELETE, 1 GET, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Object Associations 3

Create, retrieve, and delete associations between individual CRM objects

GET
/crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}
Hubspot List Associations for an Object
listObjectAssociations 5 params → 200default
PUT
/crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}
Hubspot Create an Association Between Objects
createObjectAssociation 3 params body → 200default
DELETE
/crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}/{toObjectId}
Hubspot Delete an Association Between Objects
deleteObjectAssociation 4 params → 204default

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are Error (7 properties), ErrorDetail (5 properties), AssociationResult (3 properties), AssociationType (3 properties). Each schema is shown below with its type and property counts.

ErrorDetail
object
Details about a specific error
5 properties 1 required
CreateAssociationInput
object
Input for creating an association
2 properties 2 required
Error
object
Standard error response
7 properties 3 required
AssociationTypeInput
object
Input for specifying an association type
2 properties 2 required
Association
object
Represents an association between two CRM objects
2 properties 2 required
Paging
object
Pagination information
1 property
AssociationType
object
Defines the type of association
3 properties 2 required
AssociationResult
object
Result of an association query
3 properties 2 required
PagingNext
object
Pagination cursor for next page
2 properties
ObjectReference
object
Reference to a CRM object by ID
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-object-associations-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