# Api Connector Access Denied

**URL:** <https://forum.bubble.io/t/api-connector-access-denied/2868>\
**Category:** Need help\
**Created:** [May 10, 2016, 12:06am UTC](https://forum.bubble.io/t/api-connector-access-denied/2868 "2016-05-10T00:06:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![csblack](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@csblack](https://forum.bubble.io/u/csblack)\
**Post date:** [May 10, 2016, 12:06am UTC](https://forum.bubble.io/t/api-connector-access-denied/2868/1 "2016-05-10T00:06:45Z")

</div>

I am trying to connect to Blockscore’s API.

Their documentation says to “input your API key in the username field of the Basic auth prompt.”

When attempting to initialize I get an error: HTTP Basic: Access Denied

What am I doing wrong?

Here is my api call:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/7/72d5ec2ff714b66c544ebc728c9e7e24ec5c9a2c.png)

Here is an example request:

$ curl [https://api.blockscore.com/people](https://api.blockscore.com/people)   
-u sk\_test\_n5049aa6053c9a0217bea78070fbf501:   
–header “Accept: application/vnd.blockscore+json;version=4”

Do I need to include the version in the header or something?

Documentation: [Blockscore](https://docs.blockscore.com/v4/curl/#introduction)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [May 10, 2016, 5:38am UTC](https://forum.bubble.io/t/api-connector-access-denied/2868/2 "2016-05-10T05:38:22Z")

</div>

I think your auth key needs to go in the header, not as a parameter.

It will be something like …

Key : Authorization  
Value : Basic sk\_test\_3873bb…

I think you will also need to add …

Key : Accept  
Value : application/vnd.blockscore+json;version=4

…in the header.

---

<div class="post-metadata">

**Author:** ![csblack](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@csblack](https://forum.bubble.io/u/csblack)\
**Post date:** [May 10, 2016, 9:19am UTC](https://forum.bubble.io/t/api-connector-access-denied/2868/3 "2016-05-10T09:19:24Z")

</div>

Thank you for your suggestion. Looks like I’m on the right track here. Although, I’m getting an error that says the supplied API key is invalid. I’ll have to reach out to them tomorrow. Thank you.
