curl --request POST \
--url https://api.hubapi.com/integrations/v1/{application-id}/timeline/event-types[
{
"name": "New Event Type",
"applicationId": "123",
"objectType": "CONTACT",
"headerTemplate": "# Title for event {{id}}\\nThis is an event for {{objectType}}",
"detailTemplate": "This event happened on {{#formatDate timestamp}}{{/formatDate}}"
},
{
"id": 261,
"name": "Test Event Type",
"headerTemplate": "# Title for event {{id}}\\nThis is an event for {{objectType}}",
"detailTemplate": "This event happened on {{#formatDate timestamp}}{{/formatDate}}",
"applicationId": 123,
"objectType": "CONTACT"
}
]Create a new timeline event type template to begin sending event data to HubSpot.
v1 and v3 timeline events APIs are only available for app partners with existing v1/v3 timeline events defined in their public app. v1/v3 timeline event, learn how to migrate it to the developer platform. You don’t need to request approval before migrating existing event types.curl --request POST \
--url https://api.hubapi.com/integrations/v1/{application-id}/timeline/event-types[
{
"name": "New Event Type",
"applicationId": "123",
"objectType": "CONTACT",
"headerTemplate": "# Title for event {{id}}\\nThis is an event for {{objectType}}",
"detailTemplate": "This event happened on {{#formatDate timestamp}}{{/formatDate}}"
},
{
"id": 261,
"name": "Test Event Type",
"headerTemplate": "# Title for event {{id}}\\nThis is an event for {{objectType}}",
"detailTemplate": "This event happened on {{#formatDate timestamp}}{{/formatDate}}",
"applicationId": 123,
"objectType": "CONTACT"
}
]Scope requirements
Successful response - Get the details of a specific timeline event type by its id
The response is of type object.
Was this page helpful?