---
title: "List entries"
method: POST
path: "/v2/lists/{list}/entries/query"
tags: ["Entries"]
---

# List entries

`POST /v2/lists/{list}/entries/query`

Lists entries in a given list, with the option to filter and sort results.

Required scopes: `list_entry:read`, `list_configuration:read`.

## Path parameters

- `list` string, required — A UUID or slug to identify the list to retrieve entries from.

## Request body

- object
  - `filter` object — An object used to filter results to a subset of results. See the [full guide to filtering and sorting here](/docs/filtering-and-sorting).
  - `sorts` union[] — An object used to sort results. See the [full guide to filtering and sorting here](/docs/filtering-and-sorting).
    - union
      - object — Sort by attribute
        - `direction` 'asc' | 'desc', required — The direction to sort the results by.
        - `attribute` string, required — A slug or ID to identify the attribute to sort by.
        - `field` string — Which field on the value to sort by e.g. "last_name" on a name value.
      - object — Sort by path
        - `direction` 'asc' | 'desc', required — The direction to sort the results by.
        - `path` array[], required — You may use the `path` property to traverse record reference attributes and parent records on list entries. `path` accepts an array of tuples where the first element of each tuple is the slug or ID of a list/object, and the second element is the slug or ID of an attribute on that list/object. The first element of the first tuple must correspond to the list or object that you are querying. For example, if you wanted to sort by the name of the parent record (a company) on a list with the slug "sales", you would pass the value `[['sales', 'parent_record'], ['companies', 'name']]`.
          - union[]
            - union
              - …
        - `field` string — Which field on the value to sort by e.g. "last_name" on a name value.
  - `limit` number — The maximum number of results to return. Defaults to 500. See the [full guide to pagination here](/docs/pagination).
  - `offset` number — The number of results to skip over before returning. Defaults to 0. See the [full guide to pagination here](/docs/pagination).

## Response `200`

Success

- object — Success
  - `data` object[], required
    - `id` object, required
      - `workspace_id` string, uuid, required — A UUID identifying the workspace this entry belongs to.
      - `list_id` string, uuid, required — A UUID identifying the list this entry is in.
      - `entry_id` string, uuid, required — A UUID identifying this entry.
    - `parent_record_id` string, uuid, required — A UUID identifying the record that is parent of the list entry.
    - `parent_object` string, required — A UUID or slug identifying the object that the parent record belongs to.
    - `created_at` string, required — When this entry was created.
    - `entry_values` object, required — A list of attribute values for the list entry (not attribute values for its parent record).

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/d-stoll/apis/attio-api.md) · [All operations](https://skmtc.net/d-stoll/apis/attio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-stoll/attio-api/revisions/ebcf9b5c6aa3/schema)
