naftiko: 1.0.0-alpha2 info: label: HubSpot CRM Companies API — Companies description: 'HubSpot CRM Companies API — Companies. 6 operations. Lead operation: Hubspot List Companies. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Companies created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: crm-companies-companies baseUri: https://api.hubapi.com description: HubSpot CRM Companies API — Companies business capability. Self-contained, no shared references. resources: - name: crm-v3-objects-companies path: /crm/v3/objects/companies operations: - name: listcompanies method: GET description: Hubspot List Companies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: The maximum number of results to return per page. - name: after in: query type: string description: The cursor for pagination to get the next page of results. - name: properties in: query type: string description: A comma-separated list of property names to return. - name: archived in: query type: boolean description: Whether to return archived companies. - name: createcompany method: POST description: Hubspot Create a Company outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: crm-v3-objects-companies-search path: /crm/v3/objects/companies/search operations: - name: searchcompanies method: POST description: Hubspot Search Companies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: crm-v3-objects-companies-companyId path: /crm/v3/objects/companies/{companyId} operations: - name: getcompany method: GET description: Hubspot Get a Company outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: companyId in: path type: string description: The ID of the company to retrieve. required: true - name: properties in: query type: string description: A comma-separated list of property names to return. - name: archived in: query type: boolean description: Whether to return archived companies. - name: updatecompany method: PATCH description: Hubspot Update a Company outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: companyId in: path type: string description: The ID of the company to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletecompany method: DELETE description: Hubspot Archive a Company outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: companyId in: path type: string description: The ID of the company to archive. required: true authentication: type: bearer token: '{{env.HUBSPOT_API_KEY}}' exposes: - type: rest namespace: crm-companies-companies-rest port: 8080 description: REST adapter for HubSpot CRM Companies API — Companies. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/crm/v3/objects/companies name: crm-v3-objects-companies description: REST surface for crm-v3-objects-companies. operations: - method: GET name: listcompanies description: Hubspot List Companies call: crm-companies-companies.listcompanies with: limit: rest.limit after: rest.after properties: rest.properties archived: rest.archived outputParameters: - type: object mapping: $. - method: POST name: createcompany description: Hubspot Create a Company call: crm-companies-companies.createcompany with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/v3/objects/companies/search name: crm-v3-objects-companies-search description: REST surface for crm-v3-objects-companies-search. operations: - method: POST name: searchcompanies description: Hubspot Search Companies call: crm-companies-companies.searchcompanies with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/v3/objects/companies/{companyid} name: crm-v3-objects-companies-companyid description: REST surface for crm-v3-objects-companies-companyId. operations: - method: GET name: getcompany description: Hubspot Get a Company call: crm-companies-companies.getcompany with: companyId: rest.companyId properties: rest.properties archived: rest.archived outputParameters: - type: object mapping: $. - method: PATCH name: updatecompany description: Hubspot Update a Company call: crm-companies-companies.updatecompany with: companyId: rest.companyId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecompany description: Hubspot Archive a Company call: crm-companies-companies.deletecompany with: companyId: rest.companyId outputParameters: - type: object mapping: $. - type: mcp namespace: crm-companies-companies-mcp port: 9090 transport: http description: MCP adapter for HubSpot CRM Companies API — Companies. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-list-companies description: Hubspot List Companies hints: readOnly: true destructive: false idempotent: true call: crm-companies-companies.listcompanies with: limit: tools.limit after: tools.after properties: tools.properties archived: tools.archived outputParameters: - type: object mapping: $. - name: hubspot-create-company description: Hubspot Create a Company hints: readOnly: false destructive: false idempotent: false call: crm-companies-companies.createcompany with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-search-companies description: Hubspot Search Companies hints: readOnly: true destructive: false idempotent: false call: crm-companies-companies.searchcompanies with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-get-company description: Hubspot Get a Company hints: readOnly: true destructive: false idempotent: true call: crm-companies-companies.getcompany with: companyId: tools.companyId properties: tools.properties archived: tools.archived outputParameters: - type: object mapping: $. - name: hubspot-update-company description: Hubspot Update a Company hints: readOnly: false destructive: false idempotent: true call: crm-companies-companies.updatecompany with: companyId: tools.companyId body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-archive-company description: Hubspot Archive a Company hints: readOnly: false destructive: true idempotent: true call: crm-companies-companies.deletecompany with: companyId: tools.companyId outputParameters: - type: object mapping: $.