# When i post integration i get error

**URL:** <https://community.hubspot.com/t/when-i-post-integration-i-get-error/19863>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [April 5, 2020, 2:19pm UTC](https://community.hubspot.com/t/when-i-post-integration-i-get-error/19863 "2020-04-05T14:19:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitalikbuz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vitalikbuz/32/57633_2.png) [@vitalikbuz](https://community.hubspot.com/u/vitalikbuz)\
**Post date:** [April 5, 2020, 2:19pm UTC](https://community.hubspot.com/t/when-i-post-integration-i-get-error/19863/1 "2020-04-05T14:19:32Z")

</div>

Hello.

Code from official publication

```auto
curl --request POST \
 --url 'https://api.hubapi.com/crm/v3/extensions/calling/APP_ID/settings?hapikey=HUBSPOT_API_KEY' \
 --header 'accept: application/json' \
 --header 'content-type: application/json' \
 --data '{"name":"demo widget","url":"https://mywidget.com/widget","height":600,"width":400,"isReady":true}'

```

My code in Nodejs

```auto
var request = require('request');

var options = {
	method: 'POST',
	url: 'https://api.hubapi.com/crm/v3/extensions/calling/213563/settings',
	qs: { hapikey: 'xxxx' },
	headers: { accept: 'application/json', 'content-type': 'application/json' },
	body: {
		isReady: true,
		name: 'Test',
		width: 260,
		url: 'https://mydomain/app',
		height: 450
	},
	json: true,
};

request(options, function (error, response, body) {
	if (error) throw new Error(error);
	console.log(body);
});

```

I get this error

```auto
{
 status: 'error',
 message: "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.", 
 correlationId: 'b0dca2c3-cefd-4c46-8d53-e15f20719133',
 links: { scopes: 'https://developers.hubspot.com/scopes' },
 category: 'MISSING_SCOPES',
 requestId: 'dd1546fb-4c31-4df2-bef6-ae9226922fb5'
}

```

That could be from a developer’s account?

Help me please. Thanks.

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [April 6, 2020, 9:58am UTC](https://community.hubspot.com/t/when-i-post-integration-i-get-error/19863/2 "2020-04-06T09:58:37Z")

</div>

Hi @vitalikbuz

To confirm, I believe you’re working with the Calling SDK found [here](https://github.com/HubSpot/calling-extensions-sdk), please do correct me if I am mistaken.

In this case, when reviewing your code, can you verify whether or not you’re using the Developer API Key and not your Portals key, as this is the required key to work with.

If you’re unsure as to how to gain access to this, you can find instructions [here](https://developers.hubspot.com/docs/faq/developer-api-keys).

I hope this helps!

---

<div class="post-metadata">

**Author:** ![vitalikbuz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vitalikbuz/32/57633_2.png) [@vitalikbuz](https://community.hubspot.com/u/vitalikbuz)\
**Post date:** [April 6, 2020, 10:39am UTC](https://community.hubspot.com/t/when-i-post-integration-i-get-error/19863/3 "2020-04-06T10:39:42Z")

</div>

Yeah, I work with the Calling SDK.  
I used the right key, but I decided to re-create it and everything worked.  
Thank you so much.
