HubSpot Ticketing primarily uses a REST API. Here are the key points about HubSpot's API types:
In summary, while HubSpot offers both REST and GraphQL APIs, the Ticketing API primarily uses REST. The REST API is the most widely used and supported API type for interacting with HubSpot's resources, including tickets.
Yes, the official HubSpot API does support webhooks, including for tickets.
You can subscribe to the following ticket-related events:
Webhooks are set up for a HubSpot app, not individual accounts. Any account that installs your app will be subscribed to its webhook subscriptions.
You need to set up a HubSpot app and specify a URL to receive webhook notifications.
The webhook endpoint needs to be a publicly available, secure (HTTPS) endpoint that can handle the webhook payloads.
Webhook payloads are sent as POST requests containing JSON formatted data.
There are no specific webhook events for ticket notes or engagements like meetings. The documentation does not list these as available subscription types.
For engagement events like booking a meeting, you may need to use polling with the Engagements API instead of webhooks.
Validate webhook requests using the X-HubSpot-Signature header to ensure they are coming from HubSpot.
Consider using webhooks instead of polling for better scalability, especially for apps with many installations.
In summary, while the HubSpot Ticketing API does support webhooks for core ticket events, it appears to lack specific webhook support for ticket notes or engagement events like meetings. You may need to use a combination of webhooks and polling APIs to cover all your use cases.
The API Rate Limits for the HubSpot Ticketing API are as follows:
HubSpot has different rate limits based on the product tier and whether the API add-on is used [1][4]:
Free & Starter:
Professional & Enterprise:
API add-on (any tier):
For OAuth apps, each HubSpot account that installs your app is limited to 100 requests every 10 seconds [1]. This limit applies regardless of the account's subscription tier or API add-on status.
Daily limits reset at midnight based on the HubSpot account's time zone setting [1][4].
Integrations exceeding their limits will receive error responses with a 429 response code [1][4].
Requests resulting in an error response should not exceed 5% of your total daily requests [1][4].
Integrations that poll HubSpot for new or updated information are limited to polling for changes at intervals of five minutes or more [4].
The search API endpoints are rate limited to four requests per second per authentication token [1].
Cache data for repeat calls to reduce the number of API requests [2].
Use batch APIs when possible to update multiple records in a single request [2].
Utilize smart lists and workflow starting conditions to automate processes and reduce API calls [2].
Use webhooks to get updated data from HubSpot instead of constantly polling for changes [2].
Monitor your API usage using the rate limit headers provided in API responses [1][2].
By following these guidelines and best practices, you can effectively work within the HubSpot API rate limits and optimize your integration's performance.
Based on the search results provided, here are the key points regarding the most recent version of the HubSpot Ticketing API:
The most recent version of the HubSpot Ticketing API is part of the next generation of HubSpot's API that was launched in early 2020 [3]. This is referred to as "the new version" or "updated API" in the search results.
HubSpot has redesigned their tickets API, and it is currently available in developer preview [2].
The new API is part of HubSpot's effort to improve API consistency and completeness [3].
While the new version exists, older endpoints are still stable and supported [3]. However, HubSpot strongly recommends upgrading to the latest available version for better consistency and additional functionality [3].
The updated APIs can be found on HubSpot's new API reference docs [3].
All HubSpot APIs, including the Ticketing API, are built using REST conventions and are designed to have a predictable URL structure [4].
It's recommended to use the most recent version of the API for new integrations and to update existing integrations when possible [3].
Subscribe to the HubSpot Developer Changelog to stay informed about the latest updates, breaking changes, and other significant changes to functionality [5].
When working with the API, use the base domain https://api.hubapi.com
for all API calls [3][4].
Consider using HubSpot's official client libraries to interact with the APIs more easily [4].
While the search results don't provide a specific version number for the Ticketing API, they indicate that the most recent version is part of the next generation of HubSpot's API launched in 2020. For the most up-to-date and specific version information, it would be best to check the official HubSpot API documentation or contact HubSpot support directly.
Here are the key steps to get a developer account for HubSpot Ticketing and create an API integration:
Create a HubSpot developer account:
Create a new app in your developer account:
Set up authentication:
Get API credentials:
Set up a test account:
Start making API calls:
Associate contacts/companies:
Add custom properties:
Key points to consider:
Based on the search results, here are the key data models you can interact with using the HubSpot Ticketing API, along with what is possible for each:
The API allows creating, retrieving, updating, and deleting ticket records, as well as managing their associations with other objects like contacts and companies. Custom properties and pipelines provide flexibility in how ticket data is structured and organized.