naftiko: 1.0.0-alpha2 info: label: HubSpot CRM Tickets API — Tickets description: 'HubSpot CRM Tickets API — Tickets. 6 operations. Lead operation: Hubspot List Tickets. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Tickets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: crm-tickets-tickets baseUri: https://api.hubapi.com description: HubSpot CRM Tickets API — Tickets business capability. Self-contained, no shared references. resources: - name: crm-v3-objects-tickets path: /crm/v3/objects/tickets operations: - name: listtickets method: GET description: Hubspot List Tickets 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 tickets. - name: createticket method: POST description: Hubspot Create a Ticket 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-tickets-search path: /crm/v3/objects/tickets/search operations: - name: searchtickets method: POST description: Hubspot Search Tickets 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-tickets-ticketId path: /crm/v3/objects/tickets/{ticketId} operations: - name: getticket method: GET description: Hubspot Get a Ticket outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ticketId in: path type: string description: The ID of the ticket 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 tickets. - name: updateticket method: PATCH description: Hubspot Update a Ticket outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ticketId in: path type: string description: The ID of the ticket to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteticket method: DELETE description: Hubspot Archive a Ticket outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ticketId in: path type: string description: The ID of the ticket to archive. required: true authentication: type: bearer token: '{{env.HUBSPOT_API_KEY}}' exposes: - type: rest namespace: crm-tickets-tickets-rest port: 8080 description: REST adapter for HubSpot CRM Tickets API — Tickets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/crm/v3/objects/tickets name: crm-v3-objects-tickets description: REST surface for crm-v3-objects-tickets. operations: - method: GET name: listtickets description: Hubspot List Tickets call: crm-tickets-tickets.listtickets with: limit: rest.limit after: rest.after properties: rest.properties archived: rest.archived outputParameters: - type: object mapping: $. - method: POST name: createticket description: Hubspot Create a Ticket call: crm-tickets-tickets.createticket with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/v3/objects/tickets/search name: crm-v3-objects-tickets-search description: REST surface for crm-v3-objects-tickets-search. operations: - method: POST name: searchtickets description: Hubspot Search Tickets call: crm-tickets-tickets.searchtickets with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/v3/objects/tickets/{ticketid} name: crm-v3-objects-tickets-ticketid description: REST surface for crm-v3-objects-tickets-ticketId. operations: - method: GET name: getticket description: Hubspot Get a Ticket call: crm-tickets-tickets.getticket with: ticketId: rest.ticketId properties: rest.properties archived: rest.archived outputParameters: - type: object mapping: $. - method: PATCH name: updateticket description: Hubspot Update a Ticket call: crm-tickets-tickets.updateticket with: ticketId: rest.ticketId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteticket description: Hubspot Archive a Ticket call: crm-tickets-tickets.deleteticket with: ticketId: rest.ticketId outputParameters: - type: object mapping: $. - type: mcp namespace: crm-tickets-tickets-mcp port: 9090 transport: http description: MCP adapter for HubSpot CRM Tickets API — Tickets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-list-tickets description: Hubspot List Tickets hints: readOnly: true destructive: false idempotent: true call: crm-tickets-tickets.listtickets with: limit: tools.limit after: tools.after properties: tools.properties archived: tools.archived outputParameters: - type: object mapping: $. - name: hubspot-create-ticket description: Hubspot Create a Ticket hints: readOnly: false destructive: false idempotent: false call: crm-tickets-tickets.createticket with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-search-tickets description: Hubspot Search Tickets hints: readOnly: true destructive: false idempotent: false call: crm-tickets-tickets.searchtickets with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-get-ticket description: Hubspot Get a Ticket hints: readOnly: true destructive: false idempotent: true call: crm-tickets-tickets.getticket with: ticketId: tools.ticketId properties: tools.properties archived: tools.archived outputParameters: - type: object mapping: $. - name: hubspot-update-ticket description: Hubspot Update a Ticket hints: readOnly: false destructive: false idempotent: true call: crm-tickets-tickets.updateticket with: ticketId: tools.ticketId body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-archive-ticket description: Hubspot Archive a Ticket hints: readOnly: false destructive: true idempotent: true call: crm-tickets-tickets.deleteticket with: ticketId: tools.ticketId outputParameters: - type: object mapping: $.