Creating legacy public apps and project-based apps is temporarily unavailable for new HubSpot accounts.
Learn more in our Trust Center.
curl --request POST \
--url 'https://api.hubapi.com/integrations/v1/{application}‐id/timeline/event'[
{
"id": "3",
"objectId": 1,
"eventTypeId": "123"
},
{
"id": "3",
"email": "test@test.com",
"eventTypeId": "123"
},
{
"id": "3",
"utk": "89b5afb740d41f4cd6651ac5237edf09",
"eventTypeId": "123"
},
{
"id": "1",
"objectId": 11,
"email": "santa.claus@far.com",
"eventTypeId": "123"
},
{
"id": "3",
"objectId": 1,
"eventTypeId": "123",
"extraData": {
"name": "JohnDoe",
"weather": "Cloudy"
}
},
{
"id": "3",
"objectId": 1,
"eventTypeId": "123",
"presentationId": "9876543",
"extraData": {
"name": "JohnDoe",
"weather": "Cloudy"
}
},
{
"id": "3",
"objectId": 1,
"eventTypeId": "123",
"timelineIFrame": {
"linkLabel": "View external data",
"iframeLabel": "Example iframe",
"iframeUri": "https://example.com",
"width": 800,
"height": 300
}
}
]Create a new event, or update an existing event. Please see the Timeline Overview for more details about creating events. Events must include at least one identity parameter to be associated with a contact record. See the overview and the examples for more details.
curl --request POST \
--url 'https://api.hubapi.com/integrations/v1/{application}‐id/timeline/event'[
{
"id": "3",
"objectId": 1,
"eventTypeId": "123"
},
{
"id": "3",
"email": "test@test.com",
"eventTypeId": "123"
},
{
"id": "3",
"utk": "89b5afb740d41f4cd6651ac5237edf09",
"eventTypeId": "123"
},
{
"id": "1",
"objectId": 11,
"email": "santa.claus@far.com",
"eventTypeId": "123"
},
{
"id": "3",
"objectId": 1,
"eventTypeId": "123",
"extraData": {
"name": "JohnDoe",
"weather": "Cloudy"
}
},
{
"id": "3",
"objectId": 1,
"eventTypeId": "123",
"presentationId": "9876543",
"extraData": {
"name": "JohnDoe",
"weather": "Cloudy"
}
},
{
"id": "3",
"objectId": 1,
"eventTypeId": "123",
"timelineIFrame": {
"linkLabel": "View external data",
"iframeLabel": "Example iframe",
"iframeUri": "https://example.com",
"width": 800,
"height": 300
}
}
]Scope requirements
Successful response - Create a new event, or update an existing event
The response is of type object.
Was this page helpful?