HubSpot’s CRM is a system for managing customer relationships and data. Learn about CRM objects and the related CRM APIs.
{objectTypeId}
in the request URL with the desired object. For example, to create contacts, you’d make a POST
request to crm/v3/objects/0-1
and to create courses, the request would be to crm/v3/objects/0-410
. Refer to this article for more information about using the object endpoints for various objects.
{objectTypeId}
in each endpoint to your desired object.objectTypeId
field, which is a unique numerical value assigned to each object. For example, to retrieve records, you’d make a GET
request to /crm/v3/objects/{objectTypeId}
, or when creating a property for an object, you’d make a POST
request to /crm/v3/properties/{objectTypeId}
.The object type ID values are listed in the table below:
Type ID | Object | Description |
---|---|---|
0-2 | Companies | Stores information about a business or organization. View the companies API |
0-1 | Contacts | Stores information about an individual person. View the contacts API |
0-3 | Deals | Represent sales opportunities and transactions, tracked through pipeline stages. View the deals API |
0-5 | Tickets | Represent customer requests for help or support, tracked through pipeline statuses. View the tickets API |
0-421 | Appointments | Represent encounters or services scheduled for an individual. View the objects API |
0-48 | Calls | A type of activity that represents phone call interactions associated with your records. View the calls API |
0-18 | Communications | A type of activity that represents SMS, LinkedIn, and WhatsApp message interactions associated with your records. View the communications API |
0-410 | Courses | Represent structured programs or series of lessons, trainings, or educational modules. View the objects API |
2-XXX | Custom objects | Stores data that doesn’t fit in with existing objects. To find the objectTypeId for a custom object, make a GET request to /crm/v3/schemas . View the objects API |
0-49 | Emails | A type of activity that represents one-to-one email interactions associated with your records. View the email API |
0-19 | Feedback submissions | Stores information submitted to a feedback survey. Feedback submissions are associated with contact records. View the feedback submissions API |
0-53 | Invoices | Represent the invoices sent for sales transactions. Invoices can be associated with contacts, companies, deals, line items, discounts, fees, and taxes. View the invoices API |
0-136 | Leads | Represent potential customers who have shown interest in your products or services. View the leads API |
0-8 | Line items | Represent individual products and services sold in a deal. Line items can be created from existing products in your product library, or can be created standalone. View the line items API |
0-420 | Listings | Represent properties or units to be bought, sold, or rented. View the objects API |
0-54 | Marketing events | Represent events related to your marketing efforts, specifically including events from connected integrations. You can specify whether or not a contact attended, registered for, or cancelled attending a marketing event. View the marketing events API |
0-47 | Meetings | A type of activity that represents meeting interactions associated with your records. View the meetings API |
0-46 | Notes | A type of activity that represents notes associated with your records. View the notes API |
0-123 | Orders | Represent ecommerce purchases in HubSpot. View the orders API |
0-101 | Payments | The payments made by buyers through invoices, payment links, and quotes. Payments can be associated with contacts, companies, deals, invoices, quotes, line items, subscriptions, discounts, fees, and taxes. View the payments API |
0-116 | Postal mail | A type of activity that represents physical mail interactions associated with your records. View the postal mail API |
0-7 | Products | Represent goods or services for sale. Products can’t be associated with other objects, but you can create line items based on products and associate those with deals and quotes. View the products API |
0-14 | Quotes | Represent pricing information shared with potential buyers. Quotes must be associated with a deal, line item, and quote template (0-64 ), but can also be associated with contacts, companies, discounts, fees, and taxes. View the quotes API |
0-162 | Services | Represent intangible offerings provided to customers. Examples include onboarding and consulting, repairs and maintenance, and personal care. View the objects API |
0-69 | Subscriptions | Represent recurring payments scheduled through payment links and quotes. Invoices can be associated with contacts, companies, deals, quotes, line items, payments, discounts, fees, and taxes. View the subscriptions API |
0-27 | Tasks | A type of activity that represents to-dos associated with your records. View the tasks API |
0-115 | Users | Represent the users in your HubSpot account. Users cannot be associated with other objects, but can be retrieved and updated via API. View the user details API |
columnObjectTypeId
specifies which object the data in your file belongs to. To import data for contacts, your value for columnObjectTypeId
could be contact
or 0-1
.fromObjectType
and toObjectType
values specify the objects and the direction of the association. To view association types for contacts to companies, your GET
request URL could be crm/v4/associations/contact/company/labels
or crm/v4/associations/0-1/0-2/labels
.hs_object_id
) is automatically generated and should be treated as a string. Record IDs are unique within an object, so there can be both a contact and company with the same ID. For contacts and companies, there are additional unique identifiers, including a contact’s email
and a company’s domain
name. You can also create custom unique identifier properties.
In the CRM APIs, you’ll use unique identifier values to identify and manage specific records. You can always use a record’s hs_object_id
value, but can also use custom unique identifier properties for certain endpoints, specified by the idProperty
parameter. For example, to edit a contact, you could make a PATCH
request to /crm/v3/objects/0-1/{contactId}
or /crm/v3/objects/0-1/{contactEmail}?idProperty=email
.Learn more about how HubSpot handles deduplication in the Knowledge Base.
{toObjectTypeId}
and {fromObjectTypeId}
in the request URLs and request bodies. Before associating records across objects, to understand which objects can be associated to one another, you can retrieve association types. For example, contacts can be associated with most objects, while Invoices can only be associated with contacts, companies, deals, line items, discounts, fees, and taxes. Depending on your subscription, you can describe the specific relationship types between records using association labels, and your account may have additional custom objects, which can be associated with the other standard objects. Learn more about object relationships and managing associations using the associations endpoints.
If you have access to a HubSpot account, you can also review your account’s unique object relationships by navigating to the data model tool.
/crm/v3/properties/0-1
for contact properties or /crm/v3/properties/0-5
for ticket properties. Learn more about using the properties API in this article.
{objectTypeId}
value for the object within which you want to search. For example, to search calls, you’d make a POST request to /crm/v3/objects/0-48/search
. Learn more about how to use CRM search API in this article.