HubSpot · Capability

HubSpot CRM Tickets API — Tickets

HubSpot CRM Tickets API — Tickets. 6 operations. Lead operation: Hubspot List Tickets. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotTickets

What You Can Do

GET
Listtickets — Hubspot List Tickets
/v1/crm/v3/objects/tickets
POST
Createticket — Hubspot Create a Ticket
/v1/crm/v3/objects/tickets
POST
Searchtickets — Hubspot Search Tickets
/v1/crm/v3/objects/tickets/search
GET
Getticket — Hubspot Get a Ticket
/v1/crm/v3/objects/tickets/{ticketid}
PATCH
Updateticket — Hubspot Update a Ticket
/v1/crm/v3/objects/tickets/{ticketid}
DELETE
Deleteticket — Hubspot Archive a Ticket
/v1/crm/v3/objects/tickets/{ticketid}

MCP Tools

hubspot-list-tickets

Hubspot List Tickets

read-only idempotent
hubspot-create-ticket

Hubspot Create a Ticket

hubspot-search-tickets

Hubspot Search Tickets

read-only
hubspot-get-ticket

Hubspot Get a Ticket

read-only idempotent
hubspot-update-ticket

Hubspot Update a Ticket

idempotent
hubspot-archive-ticket

Hubspot Archive a Ticket

idempotent

Capability Spec

crm-tickets-tickets.yaml Raw ↑
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: $.