# passing additional paramteter to auth authorize api

**URL:** <https://community.hubspot.com/t/passing-additional-paramteter-to-auth-authorize-api/32559>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [March 2, 2021, 9:03pm UTC](https://community.hubspot.com/t/passing-additional-paramteter-to-auth-authorize-api/32559 "2021-03-02T21:03:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikram-mit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vikram-mit/32/39641_2.png) [@vikram-mit](https://community.hubspot.com/u/vikram-mit)\
**Post date:** [March 2, 2021, 9:03pm UTC](https://community.hubspot.com/t/passing-additional-paramteter-to-auth-authorize-api/32559/1 "2021-03-02T21:03:33Z")

</div>

I wish to pass additional parameter in the

> **[HubSpot OAuth](https://app.hubspot.com/oauth/authorize)**

API this is need for us to associate things at server side. But passing as URL parameters like

[https://app.hubspot.com/oauth/authorize?client\_id=XXX..](https://app.hubspot.com/oauth/authorize?client_id=XXX..). &mykey=value

is lost when i get the flow on my redirect\_uri which is my server side servlet. I am only getting code there. how do i get the request parameter or some other way i can pass it along?

---

<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:** [March 3, 2021, 9:45pm UTC](https://community.hubspot.com/t/passing-additional-paramteter-to-auth-authorize-api/32559/2 "2021-03-03T21:45:25Z")

</div>

@vikram-mit

I do not believe you can send anything else in that initial OAuth request 🤔

@jpsanchez , [@quentin\_lamamy](https://community.hubspot.com/t5/user/viewprofilepage/user-id/148828) am I wrong?

---

<div class="post-metadata">

**Author:** ![vikram-mit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vikram-mit/32/39641_2.png) [@vikram-mit](https://community.hubspot.com/u/vikram-mit)\
**Post date:** [March 3, 2021, 10:02pm UTC](https://community.hubspot.com/t/passing-additional-paramteter-to-auth-authorize-api/32559/3 "2021-03-03T22:02:27Z")

</div>

Actually i found the solution. There is a state parameter provided by hubspot just for that
