SparrowDesk
Companies

Create a company

POST
/companies
AuthorizationBearer <token>

In: header

namestring
domain?string

Lowercase domain like example.com or company.co.uk

address?string
notes?string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://app.sparrowdesk.com/v1/companies" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "data": {
    "id": 0,
    "name": "string",
    "domain": "string",
    "logo": "string",
    "industry": "string",
    "phone": "string",
    "address": "string",
    "notes": "string",
    "other_details": {},
    "total_contacts_linked": 0,
    "created_at": 0,
    "updated_at": 0
  }
}
{
  "error": {
    "message": "Invalid request data"
  }
}
{
  "error": {
    "message": "Company with this name already exists"
  }
}
{
  "error": {
    "message": "Error while creating company"
  }
}