Create Service Ticket API Issue

Hello,

I’m trying to create a service ticket using the API according to the documentation here (Accounts Dashboard | HubSpot) for the “Create” endpoint. It seems to only be giving me errors with this test call (below) and I can’t seem to figure out a way to fix this

curl --location --request POST ‘https://api.hubapi.com/crm/v3/objects/tickets?hapikey=KEY’ \
--header ‘content-type: application/json’ \
--data-raw ‘{
“properties”: {
“hs_pipeline”: “support_pipeline”,
“hs_pipeline_stage”: “open”,
“hs_ticket_priority”: “HIGH”,
“hubspot_owner_id”: “”,
“subject”: “troubleshoot report”,
“content”: “test content”
}
}’

The response I get is below:

{

"status": "error",

"message": "Property values were not valid: \[{\\"isValid\\":false,\\"message\\":\\"open is not a valid pipeline stage ID. Valid options are: pipelineId=0 : \[1, 2, 3, 4]\\",\\"error\\":\\"INVALID\_OPTION\\",\\"name\\":\\"hs\_pipeline\_stage\\"}]",

"correlationId": "XXXXX",

"category": "VALIDATION\_ERROR"

}

I’ve tried “hs_pipeline_stage” of 0, 1, 2, 3, 4 but still none of those worked.. Also I’ve already performed the “List” API call successfully so there isn’t an issue with my API key as far as I know..

Does anyone know how to solve this?

Hi everyone! :waving_hand:

Just adding a quick update for anyone coming across this thread.

The solution shared by @dennisedson still applies! When creating tickets through the API, make sure you’re using the correct internal pipeline and pipeline stage IDs, rather than their display names.

You can retrieve these values using HubSpot’s Pipelines API.

Current integrations should use a supported access-token authentication method, such as OAuth.

You can find the latest endpoints and examples in the HubSpot API documentation.

Hope this helps!


@TylerC

You can use the Pipelines API to get a list of all available pipeline.

Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 23, 2026. Thank you for your contributions to the HubSpot Community!

Thanks!