Create a company

Last updated June 17, 2020

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:

contacts

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 API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
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.