Create a company
POST
/v1/companiesRequires the scope companies:write
Create a company from fields. When one with the same domain already exists, the values are added onto it and it comes back with is_matched: true and a 200 instead of a 201. Send an Idempotency-Key header to make a retry safe. The values are recorded with source api.
#Header parameters
Idempotency-Keystring or null
#Request body
application/json
fieldsobject (values: string | integer | number | boolean | string[] | object)required
#Responses
201Successful Response
Show response fieldsHide response fields
archived_atstring (date-time) or nullrequired
fieldsobject (values: object)required
Show child attributesHide child attributes
has_historybooleanrequired
itemsobject[] or null
Show child attributesHide child attributes
is_primarybooleanrequired
sourcestringrequired
valuestringrequired
labelstringrequired
sourcestring or nullrequired
typestringrequired
valuestring | integer | number | boolean | string[] | object[] | object or nullrequired
A value as stored or shown. Text, dates, times, picklist values, member and record IDs are strings; a multi-select, tags or the points of a contact are lists of strings; money is
{ amount, currency }; a linked member or record is { id, name } (a list of them for a column that holds several); a status shown with its label is { value, label }; the guests of a meeting are a list of { email, name, response }; a metric column holds { value, unit, sample_size, unknown_count, reason }.idstringrequired
is_matchedbooleanrequired
objectstringrequired
processingobjectrequired
Show child attributesHide child attributes
errorstring or null
fields_pendingstring[]required
statusstringrequired
updated_atstring (date-time)required
#Errors
Errors use the standard error shape.
| Status | Meaning |
|---|---|
400 | The request is not valid. |
401 | Not signed in, or the credentials are not valid. |
402 | The balance is too low. |
403 | Not allowed to do this. |
404 | Not found. |
409 | Conflicts with the current state. |
413 | The request body is too large. |
415 | The content type is not supported. |
422 | A value in the request is not valid. |
429 | Too many requests. Wait for Retry-After seconds. |
500 | Something went wrong on our side. |
502 | A service Valeron depends on refused the request. |
503 | A service Valeron depends on is unavailable. |
