naftiko: 1.0.0-alpha2 info: label: HubSpot CRM Associations API — Object Associations description: 'HubSpot CRM Associations API — Object Associations. 3 operations. Lead operation: Hubspot List Associations for an Object. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Object Associations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: crm-associations-object-associations baseUri: https://api.hubapi.com description: HubSpot CRM Associations API — Object Associations business capability. Self-contained, no shared references. resources: - name: crm-v4-objects-fromObjectType-fromObjectId-associations-toObjectType path: /crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType} operations: - name: listobjectassociations method: GET description: Hubspot List Associations for an Object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fromObjectType in: path type: string description: Type of the source object (e.g., contacts, companies, deals) required: true - name: fromObjectId in: path type: string description: ID of the source object required: true - name: toObjectType in: path type: string description: Type of target objects to retrieve associations for required: true - name: limit in: query type: integer description: Maximum number of results per page - name: after in: query type: string description: Pagination cursor for fetching next page of results - name: createobjectassociation method: PUT description: Hubspot Create an Association Between Objects outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fromObjectType in: path type: string description: Type of the source object required: true - name: fromObjectId in: path type: string description: ID of the source object required: true - name: toObjectType in: path type: string description: Type of the target object required: true - name: body in: body type: object description: Request body (JSON). required: true - name: crm-v4-objects-fromObjectType-fromObjectId-associations-toObjectType-toObjectId path: /crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}/{toObjectId} operations: - name: deleteobjectassociation method: DELETE description: Hubspot Delete an Association Between Objects outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fromObjectType in: path type: string description: Type of the source object required: true - name: fromObjectId in: path type: string description: ID of the source object required: true - name: toObjectType in: path type: string description: Type of the target object required: true - name: toObjectId in: path type: string description: ID of the target object required: true authentication: type: bearer token: '{{env.HUBSPOT_API_KEY}}' exposes: - type: rest namespace: crm-associations-object-associations-rest port: 8080 description: REST adapter for HubSpot CRM Associations API — Object Associations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/crm/v4/objects/{fromobjecttype}/{fromobjectid}/associations/{toobjecttype} name: crm-v4-objects-fromobjecttype-fromobjectid-associations-toobjecttype description: REST surface for crm-v4-objects-fromObjectType-fromObjectId-associations-toObjectType. operations: - method: GET name: listobjectassociations description: Hubspot List Associations for an Object call: crm-associations-object-associations.listobjectassociations with: fromObjectType: rest.fromObjectType fromObjectId: rest.fromObjectId toObjectType: rest.toObjectType limit: rest.limit after: rest.after outputParameters: - type: object mapping: $. - method: PUT name: createobjectassociation description: Hubspot Create an Association Between Objects call: crm-associations-object-associations.createobjectassociation with: fromObjectType: rest.fromObjectType fromObjectId: rest.fromObjectId toObjectType: rest.toObjectType body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/v4/objects/{fromobjecttype}/{fromobjectid}/associations/{toobjecttype}/{toobjectid} name: crm-v4-objects-fromobjecttype-fromobjectid-associations-toobjecttype-toobjectid description: REST surface for crm-v4-objects-fromObjectType-fromObjectId-associations-toObjectType-toObjectId. operations: - method: DELETE name: deleteobjectassociation description: Hubspot Delete an Association Between Objects call: crm-associations-object-associations.deleteobjectassociation with: fromObjectType: rest.fromObjectType fromObjectId: rest.fromObjectId toObjectType: rest.toObjectType toObjectId: rest.toObjectId outputParameters: - type: object mapping: $. - type: mcp namespace: crm-associations-object-associations-mcp port: 9090 transport: http description: MCP adapter for HubSpot CRM Associations API — Object Associations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-list-associations-object description: Hubspot List Associations for an Object hints: readOnly: true destructive: false idempotent: true call: crm-associations-object-associations.listobjectassociations with: fromObjectType: tools.fromObjectType fromObjectId: tools.fromObjectId toObjectType: tools.toObjectType limit: tools.limit after: tools.after outputParameters: - type: object mapping: $. - name: hubspot-create-association-between-objects description: Hubspot Create an Association Between Objects hints: readOnly: false destructive: false idempotent: true call: crm-associations-object-associations.createobjectassociation with: fromObjectType: tools.fromObjectType fromObjectId: tools.fromObjectId toObjectType: tools.toObjectType body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-delete-association-between-objects description: Hubspot Delete an Association Between Objects hints: readOnly: false destructive: true idempotent: true call: crm-associations-object-associations.deleteobjectassociation with: fromObjectType: tools.fromObjectType fromObjectId: tools.fromObjectId toObjectType: tools.toObjectType toObjectId: tools.toObjectId outputParameters: - type: object mapping: $.