BoldSales

API Documentation

Create a company

post/api/v1/companies

Creates 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

skipValidationbooleanA 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

namestringRepresents 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.

valuestringRequiredThe actual phone number of the company.
labelstringDescribes the type of phone number. Example: Business
isPrimarybooleanIndicates whether this is the company's primary phone number.
streetstringThe street portion of the address, including house number and road name.
citystringThe city or locality of the company's address.
statestringThe state, province, or region tied to the address.
countrystringThe country associated with the address.
postalCodestringPostal or ZIP code used for mail delivery.
twitterstringThe company's Twitter (X) handle or profile URL.
facebookstringThe company's Facebook handle or profile URL.
linkedInstringThe company's LinkedIn handle or profile URL.

ownerobject

The user who owns the company record.

idintegerRequiredThe unique ID of the user who owns the company.
descriptionstringProvides additional details or notes about the company.

sectorobject

Defines the business or organizational sector classification of the company.

idintegerRequiredA unique identifier representing the sector classification.

companyTypeobject

Specifies the operational type of the company being created.

idintegerRequiredUnique identifier representing the type of company.

industryobject

Specifies the sector or economic domain the company operates in.

idintegerRequiredUnique identifier representing the selected industry type.
annualRevenuedecimalRepresents the company's estimated annual revenue as a currency value.
numberOfEmployeesintegerSpecifies the total number of employees currently working at the company.
yearFoundedintegerIndicates the year the company was established.
websitestringRepresents the company's official website address.
customFieldsobjectA collection of user-defined custom fields for the new company.

Example response

201 Created

{
  "message": "Company created successfully.",
  "data": {
    "id": 202730
  }
}