ValeronDocs

Companies

List companies

GET/v1/companies

Requires the scope companies:read

Every company with all its fields, newest first. With updated_since (an ISO time, inclusive) only the companies changed since then come back, oldest change first, so a sync can fetch what changed since its last run and remember the updated_at of the last row. owner keeps one member's. Paged with limit (at most 200) and cursor.

#Query parameters

limitinteger
Default: 50
Minimum: 1
Maximum: 200
cursorstring or null
ownerstring or null
updated_sincestring (date-time) or null

#Responses

200Successful Response
Show response fieldsHide response fields
columnsobject[]required
Show child attributesHide child attributes
descriptionstringrequired
groupstringrequired
idstring or nullrequired
is_aibooleanrequired
is_custombooleanrequired
is_multibooleanrequired
is_read_onlybooleanrequired
keystringrequired
labelstringrequired
link_objectstring or nullrequired
metricobject or nullrequired
What a metric column is: the metric, the period it is worked out over and its unit.
Show child attributesHide child attributes
keystringrequired
minimum_sampleintegerrequired
periodstringrequired
unitstringrequired
optionsobject[] or nullrequired
Show child attributesHide child attributes
colorstring or nullrequired
Allowed values: "purple" "green" "red" "yellow" "gray" "pink" "blue" "orange"
labelstringrequired
valuestringrequired
typeobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired
dataobject[]required
Show child attributesHide child attributes
idstringrequired
valuesobject (values: string | integer | number | boolean | string[] | object[] | object)required
groupsobject[] or nullrequired
Show child attributesHide child attributes
amountsobject[] or nullrequired
Show child attributesHide child attributes
amountintegerrequired
currencystringrequired
record_countintegerrequired
valuestring or nullrequired
has_morebooleanrequired
next_cursorstring or nullrequired
totalintegerrequired

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.