> ## 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.

# Create HubSpot Timeline Event

> Create HubSpot Timeline Event



## OpenAPI

````yaml /api-reference/v1/v1.1.0_openapi.json post /action/hubspot.v2.create_timeline_event
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.create_timeline_event:
    post:
      tags:
        - HubSpot CRM & Automation
      summary: Create HubSpot Timeline Event
      description: Create HubSpot Timeline Event
      operationId: hubspot.v2.createTimelineEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                object_type:
                  type: string
                  enum:
                    - company
                    - contact
                    - deal
                    - ticket
                target_object_id:
                  type: string
                  description: ID of the object to add the timeline event to.
                  default: '{{company_id}}'
                event_type:
                  type: string
                  description: >-
                    Unique identifier for this type of event (e.g.,
                    'subscription_upgraded').
                  default: deployment_completed
                event_title:
                  type: string
                  description: Title displayed in the HubSpot timeline.
                  default: Production Deployment Completed
                event_description:
                  type: string
                  x-ui: textarea
                  description: Detailed description of the event.
                  default: Detailed description of what happened...
                event_properties:
                  type: string
                  x-ui: textarea
                  description: >-
                    Additional properties as JSON or key=value pairs, one per
                    line. Example: {"property":"value"} or property=value
                event_timestamp:
                  type: string
                  description: >-
                    When this event occurred (defaults to now). Format:
                    mm/dd/yyyy, --:-- --
                output_variable_name:
                  type: string
                  description: Variable name to store the created timeline event.
                  default: timeline_event
              required:
                - object_type
                - target_object_id
                - event_type
                - event_title
                - 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))

````