HubSpot · Capability

HubSpot Analytics Events API — Event Instances

HubSpot Analytics Events API — Event Instances. 1 operations. Lead operation: Hubspot Retrieve Event Instances. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotEvent Instances

What You Can Do

GET
Geteventinstances — Hubspot Retrieve Event Instances
/v1/events/v3/events

MCP Tools

hubspot-retrieve-event-instances

Hubspot Retrieve Event Instances

read-only idempotent

Capability Spec

analytics-events-event-instances.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot Analytics Events API — Event Instances
  description: 'HubSpot Analytics Events API — Event Instances. 1 operations. Lead operation: Hubspot Retrieve Event Instances.
    Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - Event Instances
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUBSPOT_API_KEY: HUBSPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: analytics-events-event-instances
    baseUri: https://api.hubapi.com
    description: HubSpot Analytics Events API — Event Instances business capability. Self-contained, no shared references.
    resources:
    - name: events-v3-events
      path: /events/v3/events
      operations:
      - name: geteventinstances
        method: GET
        description: Hubspot Retrieve Event Instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: objectType
          in: query
          type: string
          description: The type of CRM object to filter event instances on
        - name: objectId
          in: query
          type: string
          description: The ID of the CRM object to filter events. Requires objectType parameter.
        - name: eventType
          in: query
          type: string
          description: Filter by specific event type name
        - name: occurredAfter
          in: query
          type: string
          description: Filter for events that occurred after this ISO 8601 datetime
        - name: occurredBefore
          in: query
          type: string
          description: Filter for events that occurred before this ISO 8601 datetime
        - name: sort
          in: query
          type: string
          description: Sort direction based on event timestamp
        - name: limit
          in: query
          type: integer
          description: Maximum number of results per page (1-100)
        - name: after
          in: query
          type: string
          description: Pagination cursor for the next page of results
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: analytics-events-event-instances-rest
    port: 8080
    description: REST adapter for HubSpot Analytics Events API — Event Instances. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/events/v3/events
      name: events-v3-events
      description: REST surface for events-v3-events.
      operations:
      - method: GET
        name: geteventinstances
        description: Hubspot Retrieve Event Instances
        call: analytics-events-event-instances.geteventinstances
        with:
          objectType: rest.objectType
          objectId: rest.objectId
          eventType: rest.eventType
          occurredAfter: rest.occurredAfter
          occurredBefore: rest.occurredBefore
          sort: rest.sort
          limit: rest.limit
          after: rest.after
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: analytics-events-event-instances-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot Analytics Events API — Event Instances. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: hubspot-retrieve-event-instances
      description: Hubspot Retrieve Event Instances
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: analytics-events-event-instances.geteventinstances
      with:
        objectType: tools.objectType
        objectId: tools.objectId
        eventType: tools.eventType
        occurredAfter: tools.occurredAfter
        occurredBefore: tools.occurredBefore
        sort: tools.sort
        limit: tools.limit
        after: tools.after
      outputParameters:
      - type: object
        mapping: $.