Should I use Claude or the new CLI? Issue connecting n8n and Hubspot

Hello Community
Please help me connect my Hubspot project app and n8n!

I have worked through a few issues. I am stuck at an error that says it couldn’t complete the connection because the provided scopes are missing.

Pictures included of the required scopes I’ve added and the error and the hubsport developer portal.

I am using Cursor with the latest Hubspot CLI installed. Hubspot developer project deployed successfully. I am working on the webhooks-hsmeta.json and app-hsmeta.json files..
I just can’t get the code or the setup or something I’m not seeing right.

I am open to going in a different direction and learning claude. But It’s been hours on this and I feel I am SO close!
Oliver

Hey Oliver, you need to add the “crm.objects.contacts.write” in your config.auth.requiredScopes in the app-hsmeta.json file, see the sample json below from the official documentation.

{
 "uid": "new_developer_platform_app",
 "type": "app",
 "config": {
 "description": "An example to demonstrate how to build an app with developer projects.",
 "name": "my first app",
 "logo": "/app/app-logo.png",
 "distribution": "marketplace",
 "auth": {
 "type": "oauth",
 "redirectUrls": ["http://localhost:3000/oauth-callback"],
 "requiredScopes": ["crm.objects.contacts.read", "crm.objects.contacts.write"],
 "optionalScopes": [],
 "conditionallyRequiredScopes": []
 },
 "permittedUrls": {
 "fetch": ["https://api.hubapi.com"],
 "iframe": [],
 "img": []
 },
 "support": {
 "supportEmail": "support@example.com",
 "documentationUrl": "https://example.com/docs",
 "supportUrl": "https://example.com/support",
 "supportPhone": "+18005555555"
 }
 }
}

Hey Christensen
Thanks very much - that worked. The connection has now been made. However I’m now running into the next problem. Multiple 404 errors on sending webhooks.

Thanks for your help getting through the first door. I’ll make another community post on understanding and getting Webhooks working.

Oliver