# OAuth error when using the Calling Extensions SDK

**URL:** <https://community.hubspot.com/t/oauth-error-when-using-the-calling-extensions-sdk/26543>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [October 8, 2020, 4:04pm UTC](https://community.hubspot.com/t/oauth-error-when-using-the-calling-extensions-sdk/26543 "2020-10-08T16:04:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacpalomero](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaacpalomero/32/2679_2.png) [@isaacpalomero](https://community.hubspot.com/u/isaacpalomero)\
**Post date:** [October 8, 2020, 4:04pm UTC](https://community.hubspot.com/t/oauth-error-when-using-the-calling-extensions-sdk/26543/1 "2020-10-08T16:04:04Z")

</div>

Hi there,

I’m trying to configure our app to use the Calling Extensions SDK.

I’ve created a Developer Account, a “test” account, a new app, and connected the app with the “test” account.

I also have created an API Key for the “test” account.

With all that, I can’t complete a request with success.

This is my code:

```lia-code-sample
curl --request POST \
--url 'https://api.hubapi.com/crm/v3/extensions/calling/230454/settings?hapikey=TEST_API_KEY' \
--header 'content-type: application/json' \
--data '{
"name": "MyCallingService",
"url": "https://www.test.es",
"height": 350,
"width": 200,
"isReady": true
}'

```

and this is the no-sense response:

```lia-code-sample
{
 "status": "error",
 "message": "This API can't be called using an OAuth access token. A valid developer API key must be provided in the `hapikey` query parameter, and a valid `appId` must be provided in the API request.",
 "correlationId": "615c9cbe-fae1-4be9-be82-e3e5ef29e971",
 "links": {
 "docs": "https://developers.hubspot.com/docs/api/developer-tools-overview#developer-api-keys"
 },
 "category": "INVALID_AUTHENTICATION"
}

```

This is the exaclty example from the documentación, without OAuth token:

> **[Calling extensions SDK - HubSpot docs](https://developers.hubspot.com/docs/api-reference/latest/crm/extensions/calling-extensions/calling-sdk)**
>
> Overview of the calling extensions SDK

Can you help me please? Thanks for advance.

---

<div class="post-metadata">

**Author:** ![isaacpalomero](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaacpalomero/32/2679_2.png) [@isaacpalomero](https://community.hubspot.com/u/isaacpalomero)\
**Post date:** [October 9, 2020, 10:06am UTC](https://community.hubspot.com/t/oauth-error-when-using-the-calling-extensions-sdk/26543/2 "2020-10-09T10:06:24Z")

</div>

Hi, actually the problem was that I was using an Account API Key, and has to be a Developer API Key.  
Anyway, the error message doesn’t help and is confusing.

You can create a Developer API Key here:

 ![32881i5A59530D38D4C4FF.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/5/35f026c2dee1dc063a0addcbaeeb0e1ba3bf8fd6.png)
