Create a company
post/api/v1/companiesCreates a new company and returns the created company's ID upon a successful API call.
Code snippet
curl -X 'POST' \
'https://{yourdomain}/api/v1/companies' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"data": {
"name": "Tata",
"phoneNumbers": [
{
"value": "9003790037",
"label": "Business",
"isPrimary": true
}
],
"street": "123 Main Street",
"city": "New York",
"state": "New York",
"country": "US",
"postalCode": "1252",
"twitter": "https://www.twitter.com/john",
"facebook": "https://www.facebook.com/john",
"linkedIn": "https://www.linkedin.com/John",
"owner": {
"id": 227
},
"description": "Test",
"sector": {
"id": 947
},
"companyType": {
"id": 954
},
"industry": {
"id": 517
},
"annualRevenue": 999.5,
"numberOfEmployees": 100,
"yearFounded": 1985,
"website": "www.company.com",
"customFields": {
"cf_customer_tier": {
"id": 1
}
}
}
}'
Query parameters
| skipValidationboolean | A flag indicating whether to bypass specific validations during company creation. If set to true, the system skips checks for required fields, conditional logic, and field dependencies. When false (or unspecified), all standard validations are applied. |
Request body
| namestring | Represents the name of the company. | ||||||
phoneNumbersarray | Defines the phone numbers associated with a company. This field supports multiple values and provides metadata for labeling and prioritization.
| ||||||
| streetstring | The street portion of the address, including house number and road name. | ||||||
| citystring | The city or locality of the company's address. | ||||||
| statestring | The state, province, or region tied to the address. | ||||||
| countrystring | The country associated with the address. | ||||||
| postalCodestring | Postal or ZIP code used for mail delivery. | ||||||
| twitterstring | The company's Twitter (X) handle or profile URL. | ||||||
| facebookstring | The company's Facebook handle or profile URL. | ||||||
| linkedInstring | The company's LinkedIn handle or profile URL. | ||||||
ownerobject | The user who owns the company record.
| ||||||
| descriptionstring | Provides additional details or notes about the company. | ||||||
sectorobject | Defines the business or organizational sector classification of the company.
| ||||||
companyTypeobject | Specifies the operational type of the company being created.
| ||||||
industryobject | Specifies the sector or economic domain the company operates in.
| ||||||
| annualRevenuedecimal | Represents the company's estimated annual revenue as a currency value. | ||||||
| numberOfEmployeesinteger | Specifies the total number of employees currently working at the company. | ||||||
| yearFoundedinteger | Indicates the year the company was established. | ||||||
| websitestring | Represents the company's official website address. | ||||||
| customFieldsobject | A collection of user-defined custom fields for the new company. |
Example response
201 Created
{
"message": "Company created successfully.",
"data": {
"id": 202730
}
}