POST
/api/v1/companiesCreate Company
Creates a new company.
Authentication
Send your API key in the x-api-key header.
x-api-keybearer
Request body
requiredPublicApiCreateCompanyDto
namerequiredstring
Name of the company
domainrequiredstring
Company domain
descriptionstring
Company description
industrystring
Company industry
phonestring
Company phone number
emailstring
Company email address
currencystring
Company currency
addressstring
Company address
postalCodestring
Postal code
citystring
City
nEmployeesnumber
Number of employees
sourcestring
Company source
annualRevenuenumber
Annual revenue
statusstring
Company status
foundationYearnumber
Foundation year
sellRatingnumber
Sell rating (0-100)
linkedinUrlstring
LinkedIn URL
parentCompanyIdstring
Parent company ID
Example request
json
{
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "contact@acme.com",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
Responses
201
PublicApiCreateCompanyResponseDto
statusCoderequirednumber
countrequirednumber
errorrequiredstring
datarequiredPublicApiCompanyDto
Example response
json
{
"statusCode": 200,
"count": 0,
"error": null,
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "contact@acme.com",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z"
}
}
401Unauthorized - missing or invalid API key or Bearer token