There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Create a company

Last updated May 12, 2023

POST /companies/v2/companies/

Method Details

HTTP Methods:

POST

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Required Scope:

crm.objects.companies.write

The create a company endpoint is used to create a company for a given account.

Use case for this endpoint: This method is particularly useful if you're integrating with a CRM or another application with a similar notion of a company. You can use it to create companies in HubSpot that you may already have stored in an external system, like an Account-Based Marketing (ABM) solution or an Enterprise Resource Planning (ERP) system. 

Associations

Store the companyId, which will be the company's unique identifier in HubSpot. You'll need this to associate contacts with the company after you've created it. For more information on how to associate records, see our Companies API Overview.

Response details

If your request is successful, this endpoint will return a 200 response with an object representing the newly created company.

 

Required parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Company JSON Used in the request body This is JSON that represents a company that you're creating. This should be in the format of the code sample below.