Skip to main content
POST
/
integrators
/
timeline
/
v3
/
{appId}
/
event-templates
Create an event template
curl --request POST \
  --url https://api.hubapi.com/integrators/timeline/v3/{appId}/event-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "objectType": "<string>",
  "tokens": [
    {
      "label": "<string>",
      "name": "<string>",
      "options": [
        {
          "label": "<string>",
          "value": "<string>"
        }
      ],
      "type": "date",
      "createdAt": "2023-11-07T05:31:56Z",
      "objectPropertyName": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "detailTemplate": "<string>",
  "headerTemplate": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "objectType": "<string>",
  "tokens": [
    {
      "label": "<string>",
      "name": "<string>",
      "options": [
        {
          "label": "<string>",
          "value": "<string>"
        }
      ],
      "type": "date",
      "createdAt": "2023-11-07T05:31:56Z",
      "objectPropertyName": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "detailTemplate": "<string>",
  "headerTemplate": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Supported products

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

appId
integer<int32>
required

Body

application/json
name
string
required

The template name.

objectType
string
required

The type of CRM object this template is for. [Contacts, companies, tickets, and deals] are supported.

tokens
object[]
required

A collection of tokens that can be used as custom properties on the event and to create fully fledged CRM objects.

detailTemplate
string

This uses Markdown syntax with Handlebars and event-specific data to render HTML on a timeline when you expand the details.

headerTemplate
string

This uses Markdown syntax with Handlebars and event-specific data to render HTML on a timeline as a header.

Response

successful operation

id
string
required

The template ID.

name
string
required

The template name.

objectType
string
required

The type of CRM object this template is for. [Contacts, companies, tickets, and deals] are supported.

tokens
object[]
required

A collection of tokens that can be used as custom properties on the event and to create fully fledged CRM objects.

createdAt
string<date-time>

The date and time that the Event Template was created, as an ISO 8601 timestamp. Will be null if the template was created before Feb 18th, 2020.

detailTemplate
string

This uses Markdown syntax with Handlebars and event-specific data to render HTML on a timeline when you expand the details.

headerTemplate
string

This uses Markdown syntax with Handlebars and event-specific data to render HTML on a timeline as a header.

updatedAt
string<date-time>

The date and time that the Event Template was last updated, as an ISO 8601 timestamp. Will be null if the template was created before Feb 18th, 2020.

Last modified on March 30, 2026