OAuth error when using the Calling Extensions SDK

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:

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:

{
 "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:

Can you help me please? Thanks for advance.

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: