Unterstützte Produkte
Erfordert eines der folgenden Produkte oder höher.
Authorizations
Path Parameters
Die ID der Ziel-App.
Response
successful operation
curl --request GET \
--url https://api.hubapi.com/integrators/timeline/v3/{appId}/event-templates
{
"results": [
{
"id": "15758",
"objectType": "companies",
"name": "company test",
"headerTemplate": "abcde",
"tokens": []
},
{
"id": "1000151",
"objectType": "deals",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"name": "deal test",
"headerTemplate": "deal",
"detailTemplate": "Deal occurred at {{#formatDate timestamp}}{{/formatDate}}\n\ntest",
"tokens": [
{
"name": "test",
"type": "string",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "test",
"objectPropertyName": "test",
"options": []
}
]
},
{
"id": "1001298",
"objectType": "contacts",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"name": "PetSpot Registration",
"headerTemplate": "Registered for [{{petName}}](https://my.petspot.com/pets/{{petName}})",
"detailTemplate": "Registration occurred at {{#formatDate timestamp}}{{/formatDate}}\n\n#### Questions\n{{#each extraData.questions}}\n **{{question}}**: {{answer}}\n{{/each}}\n\nEDIT",
"tokens": [
{
"name": "petAge",
"type": "number",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "Pet Age",
"options": []
},
{
"name": "petColor",
"type": "enumeration",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "Pet Color",
"options": [
{
"value": "black",
"label": "Black"
},
{
"value": "brown",
"label": "Brown"
},
{
"value": "other",
"label": "Other"
},
{
"value": "white",
"label": "White"
},
{
"value": "yellow",
"label": "Yellow"
}
]
},
{
"name": "petName",
"type": "string",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "Pet Name",
"options": []
}
]
}
]
}
Retrieve all templates defined for an app.
curl --request GET \
--url https://api.hubapi.com/integrators/timeline/v3/{appId}/event-templates
{
"results": [
{
"id": "15758",
"objectType": "companies",
"name": "company test",
"headerTemplate": "abcde",
"tokens": []
},
{
"id": "1000151",
"objectType": "deals",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"name": "deal test",
"headerTemplate": "deal",
"detailTemplate": "Deal occurred at {{#formatDate timestamp}}{{/formatDate}}\n\ntest",
"tokens": [
{
"name": "test",
"type": "string",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "test",
"objectPropertyName": "test",
"options": []
}
]
},
{
"id": "1001298",
"objectType": "contacts",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"name": "PetSpot Registration",
"headerTemplate": "Registered for [{{petName}}](https://my.petspot.com/pets/{{petName}})",
"detailTemplate": "Registration occurred at {{#formatDate timestamp}}{{/formatDate}}\n\n#### Questions\n{{#each extraData.questions}}\n **{{question}}**: {{answer}}\n{{/each}}\n\nEDIT",
"tokens": [
{
"name": "petAge",
"type": "number",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "Pet Age",
"options": []
},
{
"name": "petColor",
"type": "enumeration",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "Pet Color",
"options": [
{
"value": "black",
"label": "Black"
},
{
"value": "brown",
"label": "Brown"
},
{
"value": "other",
"label": "Other"
},
{
"value": "white",
"label": "White"
},
{
"value": "yellow",
"label": "Yellow"
}
]
},
{
"name": "petName",
"type": "string",
"createdAt": "2020-02-12T20:58:26Z",
"updatedAt": "2020-02-12T20:58:26Z",
"label": "Pet Name",
"options": []
}
]
}
]
}
Die ID der Ziel-App.
successful operation
Show child attributes