# 400 Bad Request on get timeline

**URL:** <https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912>\
**Category:** APIs & Integrations\
**Created:** [May 13, 2022, 1:22pm UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912 "2022-05-13T13:22:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![satel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/satel/32/75413_2.png) [@satel](https://community.hubspot.com/u/satel)\
**Post date:** [May 13, 2022, 1:22pm UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912/1 "2022-05-13T13:22:35Z")

</div>

Hallo,

we use developer app to integrate app into hubspot account. It works fine, untill recently it didn’t work anymore.  
We try to get the timeline from developer app

> **[Developers | HubSpot](https://app.hubspot.com/developer/7833795/application/221247)**

an got :

GET [https://api.hubapi.com/integrations/v1/221247/timeline/event-types?hapikey=\*\*\*](https://api.hubapi.com/integrations/v1/221247/timeline/event-types?hapikey=***)` resulted in a `400 Bad Request` response:  
{“status”:“error”,“message”:"This app (ID: 221247) doesn’t match the account ‘7848179’. Make sure both IDs are correct

We do have an account 7848179, but it has a different devloper app id.

Can u please help me with this issue.

Thanks,

best regards,

Ines Satel

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 13, 2022, 8:01pm UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912/2 "2022-05-13T20:01:09Z")

</div>

@satel , It might be worth exploring the newer version of this detailed on [this page](https://developers.hubspot.com/docs/api/crm/timeline)

---

<div class="post-metadata">

**Author:** ![satel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/satel/32/75413_2.png) [@satel](https://community.hubspot.com/u/satel)\
**Post date:** [May 16, 2022, 8:02am UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912/3 "2022-05-16T08:02:00Z")

</div>

Hi @dennisedson ,

Thanks, I will look into it. On production Site it works. But only on Development it is not working.

---

<div class="post-metadata">

**Author:** ![lindahl](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lindahl/32/220871_2.png) [@lindahl](https://community.hubspot.com/u/lindahl)\
**Post date:** [May 14, 2022, 4:51am UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912/4 "2022-05-14T04:51:41Z")

</div>

Hi @satel ,

By looking at your error, I was thinking are there any chances you have have misconfiguration with your api key?

- [7833795](https://app.hubspot.com/developer/7833795/application/221247) this is your developer account portal
- 221247 this is your app id that resides in 7833795
- 7848179 this is the portal where 221247 should be installed?

If you take a look closely “This app (ID: 221247) doesn’t match the account ‘7848179’. Make sure both IDs are correct”.

- Did you install this app inside the portal where you want timeline to be used?

I am guessing you want to retrieve a timeline, however, please make sure you have the following:

- 221247 was installed inside your portal by following OAuth installation, I supposedly it shouldn’t be 7833795
- If 221247 is installed correctly in 7848179, you then should be able to use the token or api key of 7848179 for it to work.

---

<div class="post-metadata">

**Author:** ![satel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/satel/32/75413_2.png) [@satel](https://community.hubspot.com/u/satel)\
**Post date:** [May 16, 2022, 8:00am UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912/5 "2022-05-16T08:00:40Z")

</div>

Hi @lindahl

Wenn I so the error, I doubled checked all API keys and Application ids. I also checked the integration app, and it is the right one. I also regenrate the token. Same error…

---

<div class="post-metadata">

**Author:** ![satel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/satel/32/75413_2.png) [@satel](https://community.hubspot.com/u/satel)\
**Post date:** [May 16, 2022, 8:27am UTC](https://community.hubspot.com/t/400-bad-request-on-get-timeline/56912/6 "2022-05-16T08:27:57Z")

</div>

Ich checked it again, I didn’t update the right Api Key of developer app…

Thanks!
