Skip to main content
POST
Query Documents

Authorizations

X-DOMO-Developer-Token
string
header
required

Domo Developer Token for authentication.

Path Parameters

collectionId
string
required

The ID of the collection.

Query Parameters

groupby
string

Comma-separated list of properties to group by. Use dot notation for nested fields (e.g., content.campaignName). Top-level fields can be referenced directly.

count
string

Alias for a count aggregation.

avg
string

Comma-separated list of properties with aliases to average (e.g., content.clicks myAlias). Use dot notation for nested fields.

min
string

Comma-separated list of properties with aliases to find the minimum. Use dot notation for nested fields.

max
string

Comma-separated list of properties with aliases to find the maximum. Use dot notation for nested fields.

sum
string

Comma-separated list of properties with aliases to sum. Use dot notation for nested fields.

unwind
string

Comma-separated list of array properties to unwind (deconstructs an array field, producing one document per element). Use dot notation for nested fields. Must be combined with at least one of count, groupby, avg, min, max, or sum.

orderby
string

Field or alias to order by, followed by ascending or descending (e.g., totalClicks descending). Accepts either an aggregation alias or a field name using dot notation.

limit
integer

Maximum number of results to return. Default is 10,000.

offset
integer

Number of results to skip before returning. Default is 0.

Body

application/json

A MongoDB-style query object.

Response

OK

id
string

Unique identifier for the document.

datastoreId
string

ID of the datastore the document belongs to.

collectionId
string

ID of the collection the document belongs to.

syncRequired
boolean

Whether the document is pending a sync to the underlying dataset.

owner
string

User ID of the document owner. v2 endpoints return this as a string; v1 endpoints (List, Get, Query, Update) return it as a numeric integer. This differs from Collection and Datastore owner fields, which are always integers.

createdBy
string

User ID of the user who created the document. v2 endpoints always return this field. v1 endpoints return it only from Create Document; all other v1 endpoints (List, Get, Query, Update) omit it.

createdOn
string<date-time>

ISO 8601 timestamp when the document was created.

updatedOn
string<date-time>

ISO 8601 timestamp when the document was last updated.

updatedBy
string

User ID of the user who last updated the document. v2 endpoints return this as a string; v1 endpoints return it as a numeric integer.

content
object

Arbitrary JSON content of the document.