# Help with Code/ Access Tokens Exchange

**URL:** <https://forums.nylas.com/t/help-with-code-access-tokens-exchange/133>\
**Category:** Question and Answers\
**Created:** [March 14, 2024, 12:42am UTC](https://forums.nylas.com/t/help-with-code-access-tokens-exchange/133 "2024-03-14T00:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coreaspect](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@coreaspect](https://forums.nylas.com/u/coreaspect)\
**Post date:** [March 14, 2024, 12:42am UTC](https://forums.nylas.com/t/help-with-code-access-tokens-exchange/133/1 "2024-03-14T00:42:48Z")

</div>

Hi guys, I am new here and would like to understand a couple of things in relation to the topic subject.

I am using the no code platform [Bubble.io](http://Bubble.io) to run the application.

Looking at this document schema it appears I need a “client\_secret” - which appears to be mandatory and I don’t seem to see where i get this from?

> **[Nylas API v3 Administration docs | Nylas Docs](https://developer.nylas.com/docs/api/v3/admin/#post-/v3/connect/token)**
>
> With Nylas, developers unlock the power of communications data, remove complexity, and create seamless user experiences.

However in this documentation the json doesn’t have the secret, so I am a little confused (doesnt take much).

> **[Create grants with OAuth and an API key | Nylas Docs](https://developer.nylas.com/docs/v3/auth/hosted-oauth-apikey/#token-exchange-and-grant-verified)**
>
> With Nylas, developers unlock the power of communications data, remove complexity, and create seamless user experiences.

I have managed to retrieve the “code” I just need to exchange this for an access token… and this is where I am stuck.

---

<div class="post-metadata">

**Author:** ![coreaspect](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@coreaspect](https://forums.nylas.com/u/coreaspect)\
**Post date:** [March 14, 2024, 1:21am UTC](https://forums.nylas.com/t/help-with-code-access-tokens-exchange/133/2 "2024-03-14T01:21:50Z")

</div>

ok, so “client\_secret” is your API key… and you need to remember when testing the code expires each time (even when error) so you need to get a new one each time you run even the smallest request test.

I believe (hope) I have this sorted!

---

<div class="post-metadata">

**Author:** ![ram](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/ram/32/3_2.png) [@ram](https://forums.nylas.com/u/ram)\
**Post date:** [March 14, 2024, 3:40pm UTC](https://forums.nylas.com/t/help-with-code-access-tokens-exchange/133/3 "2024-03-14T15:40:27Z")

</div>

@coreaspect thanks for reaching out and sharing that you’ve resolved the issue, we’ll take this feedback!

Let us know if you come across any other issues, happy to help 🙂
