# Not able to generate the authcode for hubspot

**URL:** <https://community.hubspot.com/t/not-able-to-generate-the-authcode-for-hubspot/129020>\
**Category:** HubSpot Ideas\
**Tags:** api\
**Created:** [April 1, 2025, 7:17am UTC](https://community.hubspot.com/t/not-able-to-generate-the-authcode-for-hubspot/129020 "2025-04-01T07:17:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GMaheshwari](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@GMaheshwari](https://community.hubspot.com/u/GMaheshwari)\
**Post date:** [April 1, 2025, 7:17am UTC](https://community.hubspot.com/t/not-able-to-generate-the-authcode-for-hubspot/129020/1 "2025-04-01T07:17:13Z")

</div>

Hi Team,

Thanks in advance.

I need to create a timeline event in HubSpot; for that I need to generate the auth\_code to generate the access token. To create the custom app, I need to generate the auth code with the scope needed. Even after giving the auth\_code scope access, I got an error of invalid scope.

Can anyone help me to create an auth\_code to create a timeline event?
