Skip to main content
POST
/
api
/
public
/
v1
/
companies
Create company
curl --request POST \
  --url https://app.msportal.ai/api/public/v1/companies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "domain": "<string>",
  "status": "active",
  "employeeCount": 1,
  "industry": "<string>",
  "website": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "domain": "<string>",
    "status": "active",
    "employeeCount": 123,
    "industry": "<string>",
    "website": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.

Body

application/json
name
string
required

Company name (required)

Required string length: 1 - 255
domain
string

Company domain

Maximum string length: 255
status
enum<string>

Initial status

Available options:
active,
inactive,
pending
employeeCount
number

Number of employees

Required range: x >= 0
industry
string

Industry sector

Maximum string length: 100
website
string<uri>

Company website URL

Response

Company created

data
object
required