APIs & Integrations

jivago
Member

Create Timeline Event

Hi,

I am trying to create a timeline event.

My app id: 37226

PUT REQUEST
https://api.hubapi.com/integrations/v1/37226/timeline/event

{“id”:“1001998877”,“email”:“xxxx@xxxxx.com”,“eventTypeId”:“15613”}

The response is empty (StatusCode: 204), the new contact is created, but the timeline event doesn’t show up.

My Oauth2 request:

https://app.hubspot.com/oauth/authorize?client_id=xxxx&scopes=contacts%20timeline&redirect_uri=http:...

0 Upvotes
6 Replies 6
jivago
Member

Create Timeline Event

Hi @dadams ,

I was able to make the creation event works! Basically, I just had to create a custom property to the event type and use it in the header template. Without a custom property, it was not working (nevertheless, the webservice was not returning any kind of error)

Thank you!

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Create Timeline Event

Hi @jivago

If you’re getting a 204 response and the contact is being created, the most likely issue is that the events are being filtered out of the timeline view. You’ll need to click the Filter timeline button at the top of the timeline, and make sure that your integration is checked.

If you’re still not seeing the event after that, can you message me directly with a link to the contact record that should have the event?

0 Upvotes
jivago
Member

Create Timeline Event

Hi @dadams!

Thank you for your help!

Here is my contact link: https://app.hubspot.com/contacts/31701/contact/2037989/

I don’t see any event there, maybe I am missing something.

0 Upvotes
jivago
Member

Create Timeline Event

Ops, i deleted the other contact. Here is the new one:

https://app.hubspot.com/contacts/31701/contact/2042789/

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Create Timeline Event

Timeline events will only appear in the newer contact view. You’ll can switch to the new view from the blue box you’ll see in the bottom right. Once you switch, you’ll want to check the timeline filter settings as I mentioned previously.

0 Upvotes
jivago
Member

Create Timeline Event

Thank you! I will try it and let you know if it works!

0 Upvotes