# Invalid client id or secret

**URL:** <https://community.postman.com/t/invalid-client-id-or-secret/41805>\
**Category:** Help Hub\
**Tags:** authentication, curl\
**Created:** [December 6, 2022, 4:32pm UTC](https://community.postman.com/t/invalid-client-id-or-secret/41805 "2022-12-06T16:32:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![narlixo](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@narlixo](https://community.postman.com/u/narlixo)\
**Post date:** [December 6, 2022, 4:32pm UTC](https://community.postman.com/t/invalid-client-id-or-secret/41805/1 "2022-12-06T16:32:08Z")

</div>

Hello! I am so happy to start working with Postman. All curl details are given on the Handelsbanken Developer page. This information is from their sandbox. And because I am a total beginner, I cannot find obvious errors.  
cURL:

curl -X POST [https://sandbox.handelsbanken.com/openbanking/psd2/v1/consents](https://sandbox.handelsbanken.com/openbanking/psd2/v1/consents)   
-H ‘X-IBM-Client-Id: f31b7318-8f21-4eaf-8817-6b5e4e02d6bc’   
-H ‘Authorization: Bearer QVQ6YmNlZjI0M2QtZDBhZi00OGZiLWE0OTgtZGUwMTJhMDdjMjYz’   
-H ‘Accept: application/json’   
-H ‘Content-Type: application/json’   
-H ‘Country: \<ISO 3166-1 country code\>’   
-H ‘TPP-Request-ID: ’   
-H ‘TPP-Transaction-ID: ’   
-d ‘{“access”:“ALL\_ACCOUNTS”}’

 ![Снимок экрана (57)](https://us1.discourse-cdn.com/getpostman/original/3X/9/8/9865a2ce3594f31e65963c2d2be44ccce644371c.png)

 ![Снимок экрана (56)](https://us1.discourse-cdn.com/getpostman/original/3X/0/e/0efb5b895021affa36fad2d68c9a61e97b10bf57.png)

[https://developer.handelsbanken.com/psd2/sandbox-accounts#step4](https://developer.handelsbanken.com/psd2/sandbox-accounts#step4)  
_I am struggling with Step 2_

How to avoid “Error 401”?

---

<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:** [December 9, 2022, 4:47pm UTC](https://community.postman.com/t/invalid-client-id-or-secret/41805/2 "2022-12-09T16:47:42Z")

</div>

You can’t use the client credentials from the example (which it looks like your doing from your screenshots).

You have to use your own. You need to sign up and create a test app and use the client credentials for that.

You need to get the first request working properly first.

---

<div class="post-metadata">

**Author:** ![narlixo](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@narlixo](https://community.postman.com/u/narlixo)\
**Post date:** [December 9, 2022, 8:15pm UTC](https://community.postman.com/t/invalid-client-id-or-secret/41805/3 "2022-12-09T20:15:19Z")

</div>

Yes, after registering the app, everything worked properly, thank you very much!

---

<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:** [December 26, 2023, 9:00am UTC](https://community.postman.com/t/invalid-client-id-or-secret/41805/4 "2023-12-26T09:00:50Z")

</div>

Closed on December 26, 2023, 9:00am UTC

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