We are facing some issues with Timeline Events and need help.
We tried creating Events in below ways:
- Using API keys:-
- Created an APP in developer Account
- Got User Id and hapikey
- Created the event using Postman client:-
-
- Event appeared in developer Account
- But nothing is shown in my contact page present in Testing account:-
- tried using oauth token
- Generated code using url: https://app.hubspot.com/oauth/authorize?client_id=85523963-7ac8-4584-9ff3-d62d56478208&redirect_uri=https://www.getpostman.com/oauth2/callback&scope=contacts%20timeline%20oauth
- Got the access token.
- Updated custom field in contact and it successfully updated.
- But while creating event, I am seeing authorization error
Can Some please help us with above issue
Hi @saket1472,
I’m happy to help, but please do not share full authentication credentials on this public forum. If you post a HubSpot API key or OAuth access or refresh token on the Community, it should be considered compromised and should be deactivated immediately.
I’ve taken the liberty of obscuring the “hapikey” you shared. For your security, please also deactivate and generate a new HAPIkey.
Let’s now take a look at the issue that I believe I may be able to shed some lights on.
In this case, it looks like you’re using the [create timeline event type](http://Create%20new Timeline Event Type) to [create timeline event](http://Create%20or update a timeline event). These two function may have similar endpoint:
Create Timeline Event Type
POST /integrations/v1/:application-id/timeline/event-types
Create Timeline Event
PUT integrations/v1/:application‐id/timeline/event
which could have caused the confusion.
Could you try using the Create Timeline Event endpoint to create an event for contact
saket.destiny@gmail.com and see if it works?
NOTE: You must use an OAuth access token to create an event. API keys are not supported.
Thanks for the response. I have tried with event Api, now seeing a different issue.
Hi @saket1472,
The error message:
405 method not allowed implies that the request method is known by the server but is not supported by the target resource. Reference this documentation: 405 Method Not Allowed - HTTP | MDN.
When looking to create timeline event, the method is PUT and not POST.
Thanks a lot, @WendyGoh. I am able to publish my first Event.
Hi,
Even I am not able to create a timeline event
Can you please help
Hey @lfernandez,
Happy to help here! I have responded back to your DM.
Hi,
Even I am getting issue when I create a timeline event.
I have a company with company-id:2912491730.
Also I have created a timeline event for Company