# Timeline API "You do not have access to this application"

**URL:** <https://community.hubspot.com/t/timeline-api-you-do-not-have-access-to-this-application/11437>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [November 6, 2018, 3:25pm UTC](https://community.hubspot.com/t/timeline-api-you-do-not-have-access-to-this-application/11437 "2018-11-06T15:25:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 6, 2018, 3:25pm UTC](https://community.hubspot.com/t/timeline-api-you-do-not-have-access-to-this-application/11437/1 "2018-11-06T15:25:29Z")

</div>

I’m trying to push events through your Timeline API, but I’m running into technical problems.

1. I’ve created an app with the client\_id “xxx”
2. I’ve created this URL to install the app: “xxx” and after selecting the right account, the app is correctly installed (I can verify this under [https://app.hubspot.com/integrations-beta/xxx/your-integrations](https://app.hubspot.com/integrations-beta/xxx/your-integrations)

I got this code: “xxx”

1. I’m requesting an auth code:

POST [XXX)

And I successfully get this:  
{  
“refresh\_token”: “xxx”,  
“access\_token”: “xxx”,  
“expires\_in”: 21600  
}

1. Then I try to create a timeline event (I already created an event type with ID xxx that has the property “xxx”.

PUT [xxx  
Authorization: Bearer xxx  
Content-Type: application/json  
Body:  
{  
“id”: “001-001001”,  
“eventTypeId”: xxx,  
“xxx”: “Starter”,  
“utk”: “xxx”  
}

But I get this reply:  
{  
“status”: “error”,  
“message”: “You do not have access to this application”  
“correlationId”: “xxx”,  
“requestId”: “xxx”  
}

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 6, 2018, 4:15pm UTC](https://community.hubspot.com/t/timeline-api-you-do-not-have-access-to-this-application/11437/2 "2018-11-06T16:15:51Z")

</div>

Hi [@Luke\_Curry](https://community.hubspot.com/u/luke_curry),

We chatted about this over Slack, but I’ll post here for any other customers encountering similar issues.

Your customer used their Hub ID instead of their `application-id` when they called [this endpoint](https://developers.hubspot.com/docs/methods/timeline/create-or-update-event).

The format of the request URL is `https://api.hubapi.com/integrations/v1/:application‐id/timeline/event`. Putting in the Hub ID instead of the correct `application-id` will trigger a “You do not have access to this application” error.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 7, 2018, 3:13pm UTC](https://community.hubspot.com/t/timeline-api-you-do-not-have-access-to-this-application/11437/3 "2018-11-07T15:13:57Z")

</div>

I replaced the ID which made everything work. I added a quick header and detail template which also appear to be working fine.

One thing that doesn’t work for me is that I send the event property “PaymentPlan” which I’ve mapped to the contact property “PaymentPlan”. But when I fire the event, the contact property doesn’t get updated.

This is my latest call (fired just now, got a 204 No Content):

PUT [https://api.hubapi.com/integrations/v1/183341/timeline/event](https://protect-us.mimecast.com/s/oHP2ClY0KpU19mjWSGcqn9?domain=api.hubapi.com)

{

“id”: “001-001006”,

“eventTypeId”: 380749,

“PaymentPlan”: “Growth”,

“email”: “[martin.egerstrom@zooma.se](mailto:martin.egerstrom@zooma.se)”

}

You can see the event here: [HubSpot](https://app.hubspot.com/contacts/5087120/contact/135051/?interaction=note)

But as you can also see, the PaymentPlan property is empty. Can you check if I’ve set it in a wrong way?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 7, 2018, 4:04pm UTC](https://community.hubspot.com/t/timeline-api-you-do-not-have-access-to-this-application/11437/4 "2018-11-07T16:04:16Z")

</div>

Hi [@Luke\_Curry](https://community.hubspot.com/u/luke_curry),

I believe this is because your customer is passing `PaymentPlan` instead of the property’s internal name, which is `paymentplan`. Most of the APIs are case-sensitive.
