Box Query
Runs a query to discover Box items using a logical predicate, similar to a SQL WHERE clause. The predicate can filter across multiple metadata templates and item fields in a single request. Results can be sorted, paginated with markers, and shaped with fields so each entry includes additional item or metadata attributes.
This is the item-retrieval endpoint in the Query API (version 2026.0). Unlike the Metadata Query API, it is not limited to a single metadata template or to files and folders. For totals and grouped metrics over the same predicates, use Query Insights instead of paging through every matching item.
For predicate syntax, parameters, examples, pagination behavior, and error codes, see the Box Query guide. For shared response schemas, including Query results and result entries, see Query resources.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Version header.
2026.0 Body
Request body describing the query to run, including the filtering predicate, optional sorting, pagination, and the fields to return for each result.
The query definition, including the filtering predicate and its optional parameters and ancestor restrictions.
The sorting criteria for the result set. Entries are applied sequentially to define multi-level sorting.
The maximum number of results to return. Defaults to 50 when not provided.
0 <= x <= 1001
Controls which additional fields are included in each result entry. Each value must be one of: a fully qualified item field key (for example box:item:name), a metadata template key to hydrate the full template (for example enterprise_12345678:project), or a specific metadata template field key to hydrate a single field from the template (for example enterprise_12345678:project:name). When omitted, entries include only the item type and identifier.
An opaque token returned from a previous response, used to continue retrieval. When provided, all other request parameters must exactly match those of the original request.
"xppy0jjG1kBRSc7NBBSgQmBz1Gk6VaQdg5Vyb+Ob0iA="
Response
Returns a paginated list of items matching the query.
A paginated list of items matching the query, using milestone-based marker pagination.
The list of items matching the query predicate.
The marker for the start of the next page of results. When null, there are no further results available.
"xppy0jjG1kBRSc7NBBSgQmBz1Gk6VaQdg5Vyb+Ob0iA="
The limit that was used for this request. This will be the same as the limit query parameter unless that value exceeded the maximum value allowed.
50
