# Api Error

**URL:** <https://community.hubspot.com/t/api-error/138808>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [August 31, 2025, 8:57pm UTC](https://community.hubspot.com/t/api-error/138808 "2025-08-31T20:57:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmejiac](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@dmejiac](https://community.hubspot.com/u/dmejiac)\
**Post date:** [August 31, 2025, 8:57pm UTC](https://community.hubspot.com/t/api-error/138808/1 "2025-08-31T20:57:57Z")

</div>

I’m trying to create a basic ticket with the v3 Tickets API. My request body is:

{ “properties”: { “subject”: “Test Ticket Creation”, “hs\_pipeline”: “default”, “hs\_pipeline\_stage”: “default-stage”, “hs\_ticket\_priority”: “MEDIUM” } }

**Response:**

{ “success”: false, “error”: “{‘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.\\](https://developers.hubspot.com/scopes.%5C%5C)]([https://developers.hubspot.com/scopes.\](https://developers.hubspot.com/scopes.%5C))”, ‘correlationId’: ‘c0ea401c-ca65-4b28-b9f7-9202daf1eed7’, ‘errors’: [{‘message’: ‘One or more of the following scopes are required.’, ‘context’: {‘requiredGranularScopes’: [‘tickets.sensitive.v2’, ‘tickets.highly\_sensitive.v2’, ‘tickets’]}}], ‘links’: {‘scopes’: ‘[Working with OAuth - HubSpot docs](https://developers.hubspot.com/scopes)’}, ‘category’: ‘MISSING\_SCOPES’}” }  
I’ve already added the Tickets scope in my application listing, but I am not able to view the other apis or able to make the request either.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [September 2, 2025, 7:18am UTC](https://community.hubspot.com/t/api-error/138808/2 "2025-09-02T07:18:37Z")

</div>

Hi @dmejiac and welcome, we are delighted to have you here!  
Thanks for reaching out to the HubSpot Community!  
For information, here is the documentation to create tickets via API: “[CRM API | Tickets](https://developers.hubspot.com/docs/api-reference/crm-tickets-v3/guide)” and here is the one about [scopes needed](https://developers.hubspot.com/docs/apps/legacy-apps/authentication/scopes).  
Can you please share a screenshot or a list of the scopes that you added?

The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.

Hi @tominal, @SteveHTM and [@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366) do you have suggestions to help @dmejiac, please?  
Have a lovely day and thanks so much in advance for your help!  
Bérangère

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [September 2, 2025, 2:42pm UTC](https://community.hubspot.com/t/api-error/138808/3 "2025-09-02T14:42:28Z")

</div>

Hi @dmejiac

Here is the curl that is working fine for me -

```lia-code-sample
Here is the curl that is working fine for me -
curl --location 'https://api.hubapi.com/crm/v3/objects/tickets' \
--header 'authorization: Bearer ' \
--header 'content-type: application/json' \
--data ' {
 "associations": [
	{
 	"types": [
 	{
 	"associationCategory": "HUBSPOT_DEFINED",
 	"associationTypeId": 16
 	}
 	],
 	"to": {
 	"id":
 	}
	}
 ],
 "properties": {
	"subject": "test ticket",
	"hs_pipeline": "0",
	"hubspot_owner_id": "",
	"hs_pipeline_stage": "",
	"hs_ticket_priority": "HIGH"
 }
}'

```

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.

Thanks!
