naftiko: 1.0.0-alpha2 info: label: HubSpot OAuth API — Token Management description: 'HubSpot OAuth API — Token Management. 1 operations. Lead operation: Hubspot Create or Refresh an Access Token. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Token Management created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: oauth-token-management baseUri: https://api.hubapi.com description: HubSpot OAuth API — Token Management business capability. Self-contained, no shared references. resources: - name: oauth-v1-token path: /oauth/v1/token operations: - name: createorrefreshaccesstoken method: POST description: Hubspot Create or Refresh an Access Token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: oauth-token-management-rest port: 8080 description: REST adapter for HubSpot OAuth API — Token Management. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/oauth/v1/token name: oauth-v1-token description: REST surface for oauth-v1-token. operations: - method: POST name: createorrefreshaccesstoken description: Hubspot Create or Refresh an Access Token call: oauth-token-management.createorrefreshaccesstoken with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: oauth-token-management-mcp port: 9090 transport: http description: MCP adapter for HubSpot OAuth API — Token Management. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-create-refresh-access-token description: Hubspot Create or Refresh an Access Token hints: readOnly: false destructive: false idempotent: false call: oauth-token-management.createorrefreshaccesstoken with: body: tools.body outputParameters: - type: object mapping: $.