---
title: "POST /query"
method: POST
path: "/query"
tags: ["Check API"]
deprecated: true
---

# POST /query

`POST /query`

> **Deprecated.**

Query v1: query for any predicate and any combination of concrete and wildcard arguments.

Unlike `GET /facts`, which only lists facts you've added to Oso Cloud, you can use `POST /query` to list derived information about any rule in your policy.

## Request body

- QueryDeprecated
  - `fact` Fact, required — A pattern object for matching authorization-relevant data, ie: facts.
    - `predicate` string, required
    - `args` Value[], required
      - `type` string, nullable
      - `id` string, nullable
  - `context_facts` Fact[]
    - `predicate` string, required
    - `args` Value[], required
      - `type` string, nullable
      - `id` string, nullable

## Response `200`

- QueryResultDeprecated
  - `results` Fact[], required
    - `predicate` string, required
    - `args` Value[], required
      - `type` string, nullable
      - `id` string, nullable

## 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)
