---
title: "POST /list_query"
method: POST
path: "/list_query"
tags: ["Local Check API"]
---

# POST /list_query

`POST /list_query`

Fetches a filter that can be applied to a database query to return just the resources on which an actor can perform an action.

## Request body

- LocalListQuery
  - `query` ListQuery, required
    - `actor_type` string, required
    - `actor_id` string, required
    - `action` string, required
    - `resource_type` string, required
    - `context_facts` Fact[]
      - `predicate` string, required
      - `args` Value[], required
        - `type` string, nullable
        - `id` string, nullable
  - `column` string, required
  - `data_bindings` string, required

## Response `200`

- LocalListResult
  - `sql` string, required

## Other responses

- `default`

---

[API](https://skmtc.net/osohq/apis/oso-cloud-http-api.md) · [All operations](https://skmtc.net/osohq/apis/oso-cloud-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osohq/oso-cloud-http-api/versions/edaea3b218bd/schema)
