New API: Tickets

Community Manager

What's Happening?

With the launch of the Service Hub, we now have a new object within the HubSpot CRM --- tickets. Tickets represent a customer request for service, and the response you make in reply to that request. The Tickets API lets you generate new tickets and edit existing tickets within HubSpot.

What's Changing?

Nothing; this is an entirely new API! Check out the developer documentation here.

When is this happening?

Immediately! The Tickets API is now live.

Feel free to reach out in the comments below with any questions/concerns!

Reply
0 Upvotes
5 Replies
New Member

Hi Derek_Gervais,

I've tried to create tickets using API but the given document data is not enough for this it is showing pipeline error when I'm using the pipeline hs_pipeline is 0 and hs_pipeline_status is 1 then was getting the different issue "PROPERTY_DOESNT_EXIST", please Help me regarding this.thanks

Reply
0 Upvotes
Community Manager

Hi @saurabh442,

I've reached out in another thread:

Hi @saurabh442, The only issue with that request body is the status property you're trying to set. You can cut that entirely; that value is set by the hs_pipeline_stage property. Your request body should look like this: [ { "name": "source_type", "value": "CHAT" }, { "name": "created_by", "value": "3449104" }, { "name": "subject", "value": "testing subject" }, { "name": "hs_pipeline", "value": "0" }, { "name": "hs_pipeline_stage", "valu…

Reply
0 Upvotes
Regular Contributor

We've just started using the Service hub, and tickets are our first priority. We're switching over from our internally built system. I was wondering it there's a timeline published somewhere about new endpoints and request parameters. For example, one thing we're wanting to do ASAP is get all the tickets based on a custom HubSpot property like our user's ID. I see it's possible to get a batch of tickets with ticket IDs, but we'd ideally not want to manage ticket IDs with users on our site. Thank you for your help.

Reply
0 Upvotes
HubSpot Moderator

Welcome, @kakigori!

All public announcements and timelines regarding API changes will be published to the Changelog.

That said, it's not possible to look up tickets by custom property values at this time. If you don't wish to store ticket IDs in your system, the best approach I can think of is to query the CRM Associations API for tickets associated with a given contact ID (vid) and then pass the returned ticket IDs to this endpoint.

While I can imagine the team wishes to add custom property search to tickets in the future, I believe such a function would be added to contacts, companies, and deals first, since that has been a long-standing request.

If you would like to see this type of functionality added to the Tickets API, please post your request on the HubSpot Community Ideas Forum including as much detail as possible. This information is sent directly to our Product team and helps prioritize feature requests that have the greatest impact on our customers.

If you share a link to your idea here, I'll be happy to upvote it.

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes
Highlighted
Regular Contributor

@Isaac_Takushi Thanks for the helpful reply! That's exactly what I needed. I've got it working now, but yes, it would be more convenient still to have a more direct way of getting tickets, so I'll add to the ideas forum later.