# issues with Timeline Events API

**URL:** <https://community.hubspot.com/t/issues-with-timeline-events-api/17583>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [December 5, 2019, 6:20pm UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583 "2019-12-05T18:20:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saket1472](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/saket1472/32/92090_2.png) [@saket1472](https://community.hubspot.com/u/saket1472)\
**Post date:** [December 5, 2019, 6:20pm UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/1 "2019-12-05T18:20:28Z")

</div>

We are facing some issues with Timeline Events and need help.

We tried creating Events in below ways:

1. **Using API keys:-**
  1. Created an APP in developer Account
  2. Got User Id and hapikey
  3. Created the event using Postman client:-

 ![postTimeline.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/3/33b427e3c84a06ac9c056eef72a1c5849f3758ab.png)

1. 
  1. Event appeared in developer Account
  2. But nothing is shown in my contact page present in Testing account:-

 ![Screenshot 2019-12-03 at 8.50.15 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/6/064fffab652d669df84b2fea1ddd49ad41498802.png)

1. tried using oauth token
  1. 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](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)

2. Got the access token.
3. Updated custom field in contact and it successfully updated.
4. But while creating event, I am seeing authorization error

 ![Screenshot 2019-12-03 at 9.00.20 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/9/d92c7d9ffa84f7fe0a92537b629e28ae7ffaa5d7.png)

Can Some please help us with above issue

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [December 6, 2019, 4:06am UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/2 "2019-12-06T04:06:45Z")

</div>

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](https://knowledge.hubspot.com/articles/kcs_article/integrations/how-do-i-get-my-hubspot-api-key) or [OAuth access or refresh token](https://developers.hubspot.com/docs/methods/oauth2/get-access-and-refresh-tokens) 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](https://developers.hubspot.com/docs/faq/developer-hapikeys).

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](http://Create)%20new Timeline Event Type) to [create timeline event]([http://Create](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](https://developers.hubspot.com/docs/methods/timeline/create-or-update-event) endpoint to create an event for contact

[saket.destiny@gmail.com](mailto: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._

---

<div class="post-metadata">

**Author:** ![saket1472](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/saket1472/32/92090_2.png) [@saket1472](https://community.hubspot.com/u/saket1472)\
**Post date:** [December 6, 2019, 4:45am UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/3 "2019-12-06T04:45:56Z")

</div>

Thanks for the response. I have tried with event Api, now seeing a different issue.

 ![Screenshot 2019-12-06 at 10.14.30 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/b/bb20c975ca370e1b1c2147ec7f8de64e8cea7557.png)

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [December 6, 2019, 6:19am UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/4 "2019-12-06T06:19:14Z")

</div>

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](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405).

When looking to create timeline event, the method is PUT and not POST.

---

<div class="post-metadata">

**Author:** ![saket1472](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/saket1472/32/92090_2.png) [@saket1472](https://community.hubspot.com/u/saket1472)\
**Post date:** [December 7, 2019, 5:15am UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/5 "2019-12-07T05:15:42Z")

</div>

Thanks a lot, @WendyGoh. I am able to publish my first Event.

---

<div class="post-metadata">

**Author:** ![lfernandez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lfernandez/32/99730_2.png) [@lfernandez](https://community.hubspot.com/u/lfernandez)\
**Post date:** [January 30, 2020, 8:58pm UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/6 "2020-01-30T20:58:59Z")

</div>

Hi,

Even I am not able to create a timeline event

Can you please help

 ![Postman1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/d/0df01d79ec5a6cbefa7bdb6b2c08d893a1e1e47d.png)

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [January 31, 2020, 3:38am UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/7 "2020-01-31T03:38:50Z")

</div>

Hey @lfernandez,

Happy to help here! I have responded back to your DM.

---

<div class="post-metadata">

**Author:** ![lfernandez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lfernandez/32/99730_2.png) [@lfernandez](https://community.hubspot.com/u/lfernandez)\
**Post date:** [January 30, 2020, 8:50pm UTC](https://community.hubspot.com/t/issues-with-timeline-events-api/17583/8 "2020-01-30T20:50:50Z")

</div>

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

 ![Postman1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/d/0df01d79ec5a6cbefa7bdb6b2c08d893a1e1e47d.png)
