# Get the access token from v1/authorize call

**URL:** <https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520>\
**Category:** Questions\
**Created:** [March 18, 2020, 3:47pm UTC](https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520 "2020-03-18T15:47:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jelbatnigi](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jelbatnigi](https://devforum.okta.com/u/jelbatnigi)\
**Post date:** [March 18, 2020, 3:47pm UTC](https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520/1 "2020-03-18T15:47:42Z")

</div>

I am trying to get the access token or id token manually by calling my custom authorization server  
https://{yourOktaDomain}/oauth2/{authServerId}/v1/authorize

however I am getting 302 not found with no repose which it is still successful but I am not seeing any response coming back from this call. then I see a call to the  
https://{yourOktaDomain}/oauth2/{authServerId}/v1/keys API which in return I get the public key.

How can I obtain the access token or the actual JWT token from this call?

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [March 19, 2020, 12:58am UTC](https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520/2 "2020-03-19T00:58:06Z")

</div>

Hi @jelbatnigi

The details received depend on the values passed in response\_type and response\_mode query parameters on /authorize endpoint.

- response\_type

- response\_mode

You can see the details sent easily also by checking the callback endpoint in the browser’s network logs.

---

<div class="post-metadata">

**Author:** ![jelbatnigi](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jelbatnigi](https://devforum.okta.com/u/jelbatnigi)\
**Post date:** [March 19, 2020, 1:37pm UTC](https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520/3 "2020-03-19T13:37:49Z")

</div>

Yes But how do I get that token from the redirect url? If I make a call the /authorize call pragmatically? also I cannot use Response\_mode query if the Response\_type is token or token\_id.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [March 20, 2020, 12:25am UTC](https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520/4 "2020-03-20T00:25:30Z")

</div>

Hi @jelbatnigi

In this case, you should be able to retrieve it from the query parameters on redirect\_uri using either language built-in variables or methods (for example in PHP you can retrieve it directly from `$_GET` global variable) or through custom methods that parse the URL and retrieve the query parameters individually.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 23, 2024, 10:54pm UTC](https://devforum.okta.com/t/get-the-access-token-from-v1-authorize-call/8520/5 "2024-01-23T22:54:04Z")

</div>

Closed on January 23, 2024, 10:54pm UTC


