Companies
Create a company
AuthorizationBearer <token>
In: header
namestring
domains?array<string>
Domains owned by the company. The first entry is the primary and is what the favicon and the domain field resolve to. A domain may belong to only one company per account.
domain?string
Single-domain shorthand, equivalent to sending a one-item domains array. Ignored when domains is supplied.
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",
"domains": [
"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"
}
}