# "message": "access\_key header is not valid"

**URL:** <https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978>\
**Category:** 🙋🏽‍♀️🙋🏽‍♂️ Ask Questions\
**Created:** [October 26, 2022, 9:06am UTC](https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978 "2022-10-26T09:06:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KESHAV\_MAHESHWARI](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/keshav_maheshwari/32/20962_2.png) [@KESHAV\_MAHESHWARI](https://community.rapyd.net/u/KESHAV_MAHESHWARI)\
**Post date:** [October 26, 2022, 9:06am UTC](https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978/1 "2022-10-26T09:06:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/3/8/388e2f3758dd1a775b778a438b7bbc15ce82a7cf.png)  
Despite adding write credentials I am getting “message”: “access\_key header is not valid”  
I have perfectly copied the access keys

---

<div class="post-metadata">

**Author:** ![KESHAV\_MAHESHWARI](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/keshav_maheshwari/32/20962_2.png) [@KESHAV\_MAHESHWARI](https://community.rapyd.net/u/KESHAV_MAHESHWARI)\
**Post date:** [October 26, 2022, 9:08am UTC](https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978/2 "2022-10-26T09:08:12Z")

</div>

I have set them in env variables

 ![image](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/7/e/7ef2f310445460783a2f3ba40331d2e5599f65b3.png)

---

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [October 26, 2022, 3:14pm UTC](https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978/3 "2022-10-26T15:14:15Z")

</div>

Hi @KESHAV_MAHESHWARI,

Have you tried looking at these guides? You may have copied an extra hidden space in the `rapyd_access_key` values.

> [@Set Your API Keys in Postman (Rapyd Sandbox Environment)](https://community.rapyd.net/t/set-your-api-keys-in-postman-rapyd-sandbox-environment/1055):
>
> If you are testing in Postman, one of the first things you’ll need to do is input the access\_key and secret\_key into Postman to set your Rapyd Sandbox Environment. If you’ve downloaded our [Postman collection](https://bit.ly/3pi2RtU) and signed up in [Client Portal,](https://dashboard.rapyd.net/login) you can follow the steps below to set up your environment and make your first API call. In Postman, under your designated workspace, go to Environments \> Globals \> Rapyd Sandbox Environment. Note: You can also use the eye symbol, or Environment quick look …

> [@I'm using Postman, and Getting an Error with the API](https://community.rapyd.net/t/im-using-postman-and-getting-an-error-with-the-api/57931):
>
> If you followed the page, [Make Your First API Call](https://docs.rapyd.net/en/make-your-first-api-call.html), and are getting an error response when using Postman, here are a few steps you can follow: Note: When testing, try a more simple API call like List Countries, or List Payment Methods by Country. 1. If your error is the following: Unauthenticated API Call { "status": { "error\_code": "UNAUTHENTICATED\_API\_CALL", "status": "ERROR", "message": "The API received a request, but the signature did not match. The request was rejected. Corrective a…

---

<div class="post-metadata">

**Author:** ![KESHAV\_MAHESHWARI](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/keshav_maheshwari/32/20962_2.png) [@KESHAV\_MAHESHWARI](https://community.rapyd.net/u/KESHAV_MAHESHWARI)\
**Post date:** [October 26, 2022, 5:48pm UTC](https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978/4 "2022-10-26T17:48:35Z")

</div>

there is no hidden space I have checked with full attention  
still not working

 ![image](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/9/a/9a1c32a74d52ed8ace50e1c4cd4ef5d74845043f.png)

---

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [October 26, 2022, 11:26pm UTC](https://community.rapyd.net/t/message-access-key-header-is-not-valid/57978/5 "2022-10-26T23:26:23Z")

</div>

I would recheck if the access\_key numbers are correct again.

If there’s also a space after the variables, it will not work.

If you still have problems, I would re-download the collection. You may have edited something and did not notice.

Following this video step by step it should work.

[![](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/9/4/94507698a93a4cbef2ad0c61ce6d5ca5824d5385.jpeg "Rapyd Bytes: Make Your First API Call") ](https://www.youtube.com/watch?v=JmH7PmFlsyI)
