# How to get access token from OAuth2

**URL:** <https://community.thunkable.com/t/how-to-get-access-token-from-oauth2/2622955>\
**Category:** Questions about Thunkable X\
**Tags:** webapi\
**Created:** [October 1, 2023, 9:31pm UTC](https://community.thunkable.com/t/how-to-get-access-token-from-oauth2/2622955 "2023-10-01T21:31:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kosky2005](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kosky2005](https://community.thunkable.com/u/kosky2005)\
**Post date:** [October 1, 2023, 9:31pm UTC](https://community.thunkable.com/t/how-to-get-access-token-from-oauth2/2622955/1 "2023-10-01T21:31:14Z")

</div>

I am working on a project that needs to make an API call to webApi which requires an access token. The access token is obtained using clientid, clientSecret, and client credentials as grant\_type. I am unable to make a post request to obtain the access token to be used in the API call harder to fetch the data.

---

<div class="post-metadata">

**Author:** ![karan.kajani27vhynr](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@karan.kajani27vhynr](https://community.thunkable.com/u/karan.kajani27vhynr)\
**Post date:** [October 3, 2023, 9:48pm UTC](https://community.thunkable.com/t/how-to-get-access-token-from-oauth2/2622955/2 "2023-10-03T21:48:57Z")

</div>

I have been trying the same. Read some past queries as well but could not get anything running so far. It would have been great if the getProfileFromGoogle block stored the access\_token itself. Any help in this topic would be much appreciated @jared @muneer

---

<div class="post-metadata">

**Author:** ![ianv3wvg](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@ianv3wvg](https://community.thunkable.com/u/ianv3wvg)\
**Post date:** [December 11, 2023, 5:07pm UTC](https://community.thunkable.com/t/how-to-get-access-token-from-oauth2/2622955/3 "2023-12-11T17:07:22Z")

</div>

I’m working on the same problem. Did you manage to get it working?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 10, 2024, 5:08pm UTC](https://community.thunkable.com/t/how-to-get-access-token-from-oauth2/2622955/4 "2024-03-10T17:08:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
