# How to create a Spotify API token in Postman

**URL:** <https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736>\
**Category:** Help Hub\
**Tags:** authentication, api, 3rd-party-api\
**Created:** [January 13, 2025, 5:47pm UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736 "2025-01-13T17:47:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![orbital-module-parti](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@orbital-module-parti](https://community.postman.com/u/orbital-module-parti)\
**Post date:** [January 13, 2025, 5:47pm UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736/1 "2025-01-13T17:47:40Z")

</div>

I am new to postman i am here to create spotify api token i have done everything according to the documentation by spotify but still facing {  
“error”: “invalid\_client”  
}  
please resolve my issue

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/6/6638b9e79c2b9a2e433e3ecc145d5a81acba3797.png)  
 ![Untitled](https://us1.discourse-cdn.com/getpostman/original/3X/7/b/7b1152d7476fddea66f3844d33243e4a7fe21c17.png)

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [January 13, 2025, 5:55pm UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736/2 "2025-01-13T17:55:25Z")

</div>

Hi @orbital-module-parti. Welcome to the Postman Community!

An “invalid client” error means that the Client ID that you are using is not recognised by the spotify API. Double check that you are using the right client ID and secret pair.

Additionally, in your first screenshot. The value in the authorization tab does not look correct. It starts with “Basic \<” which I think is not a part of the authorization key.

---

<div class="post-metadata">

**Author:** ![orbital-module-parti](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@orbital-module-parti](https://community.postman.com/u/orbital-module-parti)\
**Post date:** [January 13, 2025, 5:58pm UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736/3 "2025-01-13T17:58:44Z")

</div>

I am using the right client ID and secret pair  
it doesn’t even work after removing “Basic \<”

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/0/40aa6e91d1ef3aa5bf93aa50a3bb6986466624c0.png)

---

<div class="post-metadata">

**Author:** ![houssem-gharssallah](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/houssem-gharssallah/32/31614_2.png) [@houssem-gharssallah](https://community.postman.com/u/houssem-gharssallah)\
**Post date:** [January 14, 2025, 4:59am UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736/4 "2025-01-14T04:59:51Z")

</div>

Hi @orbital-module-parti,

According to Spotify’s documentation, refreshing a token does not require client\_secret, code or redirect\_uri in the body. Spotify OAuth server might be sensitive to those parameters.  
Other than that, I agree with @gbadebo-bello, you can double check your client Id & secret.  
I recommend copying them to environment variables and reuse them across requests.

Hope this helps !

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [January 14, 2025, 10:52am UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736/5 "2025-01-14T10:52:10Z")

</div>

Please provide a link to the Spotify documentation you are using.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 14, 2025, 10:52am UTC](https://community.postman.com/t/how-to-create-a-spotify-api-token-in-postman/73736/6 "2025-04-14T10:52:26Z")

</div>

Closed on April 14, 2025, 10:52am UTC

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