# How to get code for get token api

**URL:** <https://community.hubspot.com/t/how-to-get-code-for-get-token-api/13584>\
**Category:** APIs & Integrations\
**Tags:** oauth, timeline-and-extensions-apis\
**Created:** [March 20, 2019, 4:27am UTC](https://community.hubspot.com/t/how-to-get-code-for-get-token-api/13584 "2019-03-20T04:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasnagare](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vikasnagare/32/47092_2.png) [@vikasnagare](https://community.hubspot.com/u/vikasnagare)\
**Post date:** [March 20, 2019, 4:27am UTC](https://community.hubspot.com/t/how-to-get-code-for-get-token-api/13584/1 "2019-03-20T04:27:16Z")

</div>

I have to get access token with OAuth api. I dont have value for code parameter of api. While I initiating OAuth from accessing url “[https://app.hubspot.com/oauth/authorize?scope=contacts%20content%20reports%20social%20automation%20actions%20timeline%20business-intelligence%20oauth%20forms%20files%20hubdb%20transactional-email%20integration-sync%20tickets%20e-commerce&redirect\_uri=https://www.silicus.com/auth-callback&client\_id=80c40b1b-c9fe-452a-9c0d-5bdafcec46e7](https://app.hubspot.com/oauth/authorize?scope=contacts%20content%20reports%20social%20automation%20actions%20timeline%20business-intelligence%20oauth%20forms%20files%20hubdb%20transactional-email%20integration-sync%20tickets%20e-commerce&redirect_uri=https://www.silicus.com/auth-callback&client_id=80c40b1b-c9fe-452a-9c0d-5bdafcec46e7)” getting error like “This hub doesn’t have access to some HubSpot features that are required by this integration. Please contact the integrator.”

---

<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:** [March 20, 2019, 6:47pm UTC](https://community.hubspot.com/t/how-to-get-code-for-get-token-api/13584/2 "2019-03-20T18:47:53Z")

</div>

Hi, @vikasnagare.

Happy to help.

The `code` parameter will be appended to your `redirect_uri` when a successful connection is made.

It sounds like you are attempting to select an account which does not have all the tools — and therefore scopes — you are requesting (e.g. the [transactional email add-on](https://www.hubspot.com/products/email/transactional-email) for the `transactional-email` scope).

If you clarify which account you are trying to connect, I should be able to identify which features are missing.
