Skip to main content
POST
/
action
/
hubspot.v2.create_timeline_event
Create HubSpot Timeline Event
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/hubspot.v2.create_timeline_event \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "object_type": "company",
  "target_object_id": "{{company_id}}",
  "event_type": "deployment_completed",
  "event_title": "Production Deployment Completed",
  "output_variable_name": "timeline_event",
  "event_description": "Detailed description of what happened...",
  "event_properties": "<string>",
  "event_timestamp": "<string>"
}
'
{
  "status": 123,
  "response": {}
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
object_type
enum<string>
required
Available options:
company,
contact,
deal,
ticket
target_object_id
string
default:{{company_id}}
required

ID of the object to add the timeline event to.

event_type
string
default:deployment_completed
required

Unique identifier for this type of event (e.g., 'subscription_upgraded').

event_title
string
default:Production Deployment Completed
required

Title displayed in the HubSpot timeline.

output_variable_name
string
default:timeline_event
required

Variable name to store the created timeline event.

event_description
string
default:Detailed description of what happened...

Detailed description of the event.

event_properties
string

Additional properties as JSON or key=value pairs, one per line. Example: {"property":"value"} or property=value

event_timestamp
string

When this event occurred (defaults to now). Format: mm/dd/yyyy, --:-- --

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action