> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get HubSpot Timeline Events

> Get HubSpot Timeline Events



## OpenAPI

````yaml /api-reference/v1/v1.1.0_openapi.json post /action/hubspot.v2.get_timeline_events
openapi: 3.0.0
info:
  version: 1.1.0
  title: AI Actions - Get Data
  description: API specifications for 'Get Data' category AI actions.
  license:
    name: MIT
servers:
  - url: https://api-lr.agent.ai/v1
security:
  - bearerAuth: []
paths:
  /action/hubspot.v2.get_timeline_events:
    post:
      tags:
        - HubSpot CRM & Automation
      summary: Get HubSpot Timeline Events
      description: Get HubSpot Timeline Events
      operationId: hubspot.v2.getTimelineEvents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                object_type:
                  type: string
                  enum:
                    - company
                    - contact
                    - deal
                    - ticket
                source_object_id:
                  type: string
                  description: ID of the object to retrieve timeline events for.
                  default: '{{company_id}}'
                event_type_filter:
                  type: string
                  description: Optional filter by specific event type.
                  default: deployment_completed
                properties:
                  type: string
                  x-ui: properties
                  description: Select properties to retrieve from timeline events
                start_date:
                  type: string
                  description: >-
                    Optional date range to filter timeline events (mm/dd/yyyy
                    format).
                end_date:
                  type: string
                  description: >-
                    Optional date range to filter timeline events (mm/dd/yyyy
                    format).
                result_limit:
                  type: string
                  description: >-
                    Maximum number of timeline events to return (default: 100,
                    max: 500).
                  default: '100'
                output_variable_name:
                  type: string
                  description: Variable name to store the timeline events.
                  default: timeline_events
              required:
                - object_type
                - source_object_id
                - output_variable_name
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '401':
          description: Unauthorized - invalid or missing bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
components:
  schemas:
    ActionResponse:
      type: object
      properties:
        status:
          type: integer
          format: int32
          description: HTTP status code of the action response
        response:
          type: object
          description: Response data from the action
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from your account
        ([https://agent.ai/user/integrations#api](https://agent.ai/user/integrations#api))

````