Query members
POST
/v1/members/queryRequires the scope organization:read
The members table. The body is a table query: columns, filters ({ field, op, value }), sort (up to 5 keys), group_by, cursor and limit. GET /v1/fields?object= lists the columns you can ask for, filter, sort and group by. A column may be metric:<key>@<period> for each member's value of a metric.
#Request body
application/json
columnsstring[] or null
cursorstring or null
filtersobject[] or null
Show child attributesHide child attributes
fieldstringrequired
opstringrequired
valuestring | integer | number | boolean | string[] or null
What the field is compared with; a list for
in.group_bystring or null
limitinteger
offsetinteger or null
sortobject[] or null
Show child attributesHide child attributes
directionstring
fieldstringrequired
view_idstring 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
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.
| 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. |
