# Authentication credentials not found

**URL:** <https://community.hubspot.com/t/authentication-credentials-not-found/63030>\
**Category:** APIs & Integrations\
**Created:** [August 16, 2022, 7:53am UTC](https://community.hubspot.com/t/authentication-credentials-not-found/63030 "2022-08-16T07:53:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EEnzipe](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EEnzipe](https://community.hubspot.com/u/EEnzipe)\
**Post date:** [August 16, 2022, 7:53am UTC](https://community.hubspot.com/t/authentication-credentials-not-found/63030/1 "2022-08-16T07:53:57Z")

</div>

In developer account i create an app so when i send request with app C **lient Secret** then show error  
if I do create test app and inside test app create private app then send request with Access tokenthen API response contacts list

how i can get data from main App

{

```
"status": "error",

"message": "Authentication credentials not found. This API supports both API Key and OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview",

"correlationId": "6ef5f6b3-1cfe-4532-84f5-73654a6ea4d9",

"category": "INVALID\_AUTHENTICATION"

```

}

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 17, 2022, 2:50pm UTC](https://community.hubspot.com/t/authentication-credentials-not-found/63030/2 "2022-08-17T14:50:30Z")

</div>

Hi, @EEnzipe. Thanks for reaching out. Hey @tominal @RMones [@klloyd\_\_1](https://community.hubspot.com/t5/user/viewprofilepage/user-id/381293) do you have any thoughts on next steps for @EEnzipe?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![klloyd\_1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/klloyd_1/32/28881_2.png) [@klloyd\_1](https://community.hubspot.com/u/klloyd_1)\
**Post date:** [August 17, 2022, 3:29pm UTC](https://community.hubspot.com/t/authentication-credentials-not-found/63030/3 "2022-08-17T15:29:17Z")

</div>

Thanks for the tag, [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)!

@EEnzipe, to make sure I understand correctly, you’ve created a test HubSpot portal, and within that test portal, created a Private App, correct? You’re then receiving authentication requests while making API calls to that portal, attempting to use the credentials generated by the private app.

If so, it likely has to do with how you structure the API call and provide the authentication. Before the introduction of Private Apps, you would use the portal’s API key as the authentication in the header, like:

`--header 'hapikey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx' \`

With Private Apps, instead of providing the value as a hapikey, you set it as a Bearer token:

`--header 'Authorization: Bearer xxx-xxx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \`

If you’re using Postman to test the API calls, try switching the Authorization type from API key to Bearer Token:

 ![use_bearer_token.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/8cfa18aa046688e132027f646e7a35befeef8120.png)

Give that a try, and let us know if it helps!
