APIs & Integrations

JGibbons7
Member

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Hi, my app has every/all scopes possible to be assigned to it, yet it still can't create tickets using this standard API endpoint: https://developers.hubspot.com/docs/reference/api/crm/objects/tickets#post-%2Fcrm%2Fv3%2Fobjects%2Ft...

 

Confirmation of all scopes being assigned, even the "tickets" one:

Screenshot 2025-04-15 at 4.10.18 PM.png

 

I've tried mulitple services/languages to try and create a ticket via the API.  I keep receiving the same error.  The error is:

Response: {"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":"360b4c78-4d28-44ed-a3ca-1715ee9a6138","erro... or more of the following scopes are required.","context":{"requiredGranularScopes":["crm.objects.commercepayments.read","crm.objects.invoices.read","crm.objects.contacts.write","crm.objects.subscriptions.read","crm.objects.goals.read","crm.objects.leads.read","crm.objects.contacts.read","crm.objects.companies.read","crm.objects.leads.write","crm.objects.partner-clients.read","crm.objects.deals.read","crm.objects.partner-clients.write","crm.objects.deals.write","crm.objects.goals.write","crm.objects.orders.write","crm.objects.subscriptions.write","crm.objects.orders.read","crm.objects.carts.write","crm.objects.carts.read","e-commerce","crm.objects.invoices.write","crm.objects.appointments.read","crm.objects.line_items.read","crm.objects.appointments.write","tickets","crm.objects.line_items.write","crm.objects.listings.read","crm.objects.listings.write","crm.objects.quotes.write","crm.objects.services.read","media_bridge.read","crm.objects.quotes.read","crm.objects.services.write","crm.objects.courses.read","crm.objects.courses.write","crm.objects.users.read","crm.objects.users.write","crm.objects.custom.read","crm.objects.custom.write","crm.objects.companies.write"]}}],"links":{"scopes":"https://developers.hubspot.com/scopes"},"category":"MISSING_SCOPES"}

Has anyone out there ever experienced the same error attempting to create a ticket using the HubSpot API?

0 Upvotes
10 Replies 10
sylvain_tirreau
Top Contributor

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Hi,

I advise you to isolate your problem, because the difficulty you are experiencing seems to come from a gap in the process you followed. I advise you to create another private application, give it access to tickets and contacts, and try a simple creation request (are you using a Hubspot JS/Python/PHP client or are you making a direct request with JS/Python/PHP/...?). Does this work?

Best

MichaelMa
Contributor

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

When you say app, I'm going to assume a developer app that you installed in your hub. Did you change the scope after you installed the app in your hub? You probably need to redeploy the app so that the updated scopes are applied. 

JGibbons7
Member

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Well, I meant a private app that I've been assigned to build.  I don't see where to redeploy a private app.  Could you direct me for how to do that?  Lastly, if it helps my current app can list all existing tickets.  I just can't create one.

0 Upvotes
MichaelMa
Contributor

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Unfortunately, Hubspot has so many similar names for things (and terms reused) that it's sometimes hard to figure out what people mean.

 

So, let's try to narrow this down.

 

1. Go to Settings in your Hub.

2. Go to Integrations -> Connected Apps.

3. Find the app.

4. On the Actions button, what options do they provide?

 

A. If it only says "uninstall", then it's likely a developer app deployed to your hub (although this may change as they recently introduced a settings option?).

B. If it only says "Go to settings", it's either a Private App (API Key; unlikely this for your example) or a app you uploaded from your local environment (eg, via cli hs project upload or through a github integration).

C. (not applicable to you but for reference) If it says "View in marketplace" (may also have Go to settings) then it's a marketplace app. 

 

In the case of A, you would need to go through the process updating the scopes in your developer hub and then reinstalling the app on your hub which is a bit convoluted. 

 

In the case of B: local environment, you should double check that you're updating the correct key.

 

For B, let's go to the settings of your private app and go to the Auth tab. Can you verify the scopes are correct? 

 

MichaelMa_1-1744894474189.png

 

You will notice that you can't edit the scopes on your app on this page. If they are not correct, you need to go to your local app.json and edit the scopes and then reupload the app.

 

I think that covers most possibilities? If you provide screenshots, that would be very helpful.

 

JGibbons7
Member

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Unfortunately, this portal and documentation are just too dense to better navigiate through.  We had to cancel the integration project because it was just to difficult to understand the documentation and the portal just seemed to have too many idiosyncracies.

0 Upvotes
BérangèreL
Community Manager
Community Manager

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Hi @JGibbons7 and welcome, we are so glad to have you here!

Thanks for asking the HubSpot Community!

I have found for you these similar threads that might help you:

- The solution from @chriscbs on this post "Create Ticket Scope for Private App"
- The solution from @JBeatty on this post "Request fails with required scopes when scopes appear to be set"

Also, I'd love to put you in touch with our Top Experts: Hi @sylvain_tirreau, @zach_threadint and @HubSpot_Corey do you have other suggestions to help @JGibbons7, please?

Have a wonderful day and thanks so much for your help! ❤️
Bérangère


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
0 Upvotes
JGibbons7
Member

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Thanks BérangèreL.  Looks like those tickets recommend that I redeploy my private app.  I don't see where in the documentation I can do that.  Any chance you could direct me for how to redeploy an app?  It's weird, regarding tickets I can get a list-all for my tickets in the app, just can't create them (still).

0 Upvotes
BérangèreL
Community Manager
Community Manager

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Hi @JGibbons7, thanks for getting back to me!

Hi @JBeatty, @Anton and @sylvain_tirreau could you confirm if @JGibbons7 need to un-install and install the app again, please and what exact steps @JGibbons7 need to take?

I have found this documentation "Authorizing and installing an app". To install a HubSpot app in an account is a two-step process. First, you'll need to authorize the app for the account that you want to install in. Second, you'll need to generate the initial OAuth tokens using the auth code you get from the first step.

Have a great day and thanks so much in advance for your valuable contributions!
Bérangère


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
0 Upvotes
JGibbons7
Member

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Unfortunately, this portal and documentation are just too dense to better navigate through.  We had to cancel the integration project because it was just to difficult to understand the documentation and the portal just seemed to have too many idiosyncrasies.

0 Upvotes
BérangèreL
Community Manager
Community Manager

Create Ticket Endpoint Not Functioning Even Though App Has Every Possible Scope

Hi @JGibbons7,

I'm sorry to hear about your experience regarding this.

I would like to apologize for the frustration, data issues, and business impact this has caused.

I'd recommend sharing your valuable feedback via this form!

And please @JGibbons7, let me know if there is anything else I can help with. I'll be delighted to do so!

Best,
Bérangère


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
0 Upvotes