# Add API key and basic authentication in Heather

**URL:** <https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963>\
**Category:** Help Hub\
**Created:** [January 17, 2023, 1:45pm UTC](https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963 "2023-01-17T13:45:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amiapiadmin](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amiapiadmin](https://community.postman.com/u/amiapiadmin)\
**Post date:** [January 17, 2023, 1:45pm UTC](https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963/1 "2023-01-17T13:45:40Z")

</div>

Hello,

I’m wondering if someone could help me with the basic GET api below:

**GET API Requirement:**  
_Headers - Api-Key, Authorization (base64 encoded {username}:{password})_

I do have my api-key and basic authentication in base64 encoded, but I wasn’t sure how to put it together in postman.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 17, 2023, 2:26pm UTC](https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963/2 "2023-01-17T14:26:33Z")

</div>

Hey @amiapiadmin,

Is it asking you to put them together or are they separate headers?

Are there any links to the documentation where you’re reading this from? Is there an example cURL request available?

Manually adding headers to a request is straightforward but it’s not sure of the full details, to know if it needs just one or two headers 🤔

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/2/52b8d0dd509f761d56bdfe85c44d8bf7528202fa.png)

---

<div class="post-metadata">

**Author:** ![amiapiadmin](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amiapiadmin](https://community.postman.com/u/amiapiadmin)\
**Post date:** [January 17, 2023, 3:01pm UTC](https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963/3 "2023-01-17T15:01:33Z")

</div>

Hi Dannydainton,

Thanks for the screenshot. I think I got it.

Thanks,  
Saray

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 17, 2023, 4:00pm UTC](https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963/4 "2023-01-17T16:00:17Z")

</div>

I’m not sure what that means 😃

> [@amiapiadmin](#):
>
> I got Pretty return value 1 when I added those 2 fields.

The cURL request doesn’t include any mention of those Auth headers either so I’m sure where to go from here without further information.

---

<div class="post-metadata">

**Author:** ![amiapiadmin](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amiapiadmin](https://community.postman.com/u/amiapiadmin)\
**Post date:** [January 17, 2023, 5:03pm UTC](https://community.postman.com/t/add-api-key-and-basic-authentication-in-heather/42963/5 "2023-01-17T17:03:56Z")

</div>

Hi dannydainton,

I think I got it.

Thanks,  
SAray
