643 matches

[Overview](/catalog)[AI & ML7](/catalog/category/ai-ml)[Analytics8](/catalog/category/analytics)[Communication18](/catalog/category/communication)[CRM4](/catalog/category/crm)[Developer Tools6](/catalog/category/developer-tools)[E-commerce40](/catalog/category/e-commerce)[Finance52](/catalog/category/finance)[Infrastructure28](/catalog/category/infrastructure)[Marketing20](/catalog/category/marketing)[Other409](/catalog/category/other)[Productivity10](/catalog/category/productivity)[Security17](/catalog/category/security)[Social20](/catalog/category/social)[Storage2](/catalog/category/storage)[Support2](/catalog/category/support)

Request a provider

643 matches

[Overview](/catalog)[AI & ML7](/catalog/category/ai-ml)[Analytics8](/catalog/category/analytics)[Communication18](/catalog/category/communication)[CRM4](/catalog/category/crm)[Developer Tools6](/catalog/category/developer-tools)[E-commerce40](/catalog/category/e-commerce)[Finance52](/catalog/category/finance)[Infrastructure28](/catalog/category/infrastructure)[Marketing20](/catalog/category/marketing)[Other409](/catalog/category/other)[Productivity10](/catalog/category/productivity)[Security17](/catalog/category/security)[Social20](/catalog/category/social)[Storage2](/catalog/category/storage)[Support2](/catalog/category/support)

[Actions](/catalog/openpolicy)

14 actions

![](https://www.google.com/s2/favicons?domain=openpolicy.local&sz=64)

Open Policy Agent (OPA) REST

14 actions

* [CompilePOSTv1.0.0](/catalog/openpolicy/post%5Fcompile)
* [Create or overwrite a documentPUTv1.0.0](/catalog/openpolicy/put%5Fdocument)
* [Create or update a policy modulePUTv1.0.0](/catalog/openpolicy/put%5Fpolicy%5Fmodule)
* [Delete a documentDELETEv1.0.0](/catalog/openpolicy/delete%5Fdocument)
* [Delete a policy moduleDELETEv1.0.0](/catalog/openpolicy/delete%5Fpolicy%5Fmodule)
* [Execute a simple queryPOSTv1.0.0](/catalog/openpolicy/post%5Fsimple%5Fquery)
* [Execute an ad-hoc query (complex)POSTv1.0.0](/catalog/openpolicy/post%5Fquery)
* [Execute an ad-hoc query (simple)GETv1.0.0](/catalog/openpolicy/get%5Fquery)
* [Get a documentGETv1.0.0](/catalog/openpolicy/get%5Fdocument)
* [Get a document (with input)POSTv1.0.0](/catalog/openpolicy/get%5Fdocument%5Fwith%5Fpath)
* [Get a policy moduleGETv1.0.0](/catalog/openpolicy/get%5Fpolicy%5Fmodule)
* [Get configurationsGETv1.0.0](/catalog/openpolicy/get%5Fconfig)
* [List policiesGETv1.0.0](/catalog/openpolicy/get%5Fpolicies)
* [Update a documentPATCHv1.0.0](/catalog/openpolicy/patch%5Fdocument)

Other/Open Policy Agent (OPA) REST

# Execute an ad-hoc query (simple)

v1.0.0swirls add openpolicy get\_query

This API endpoint returns bindings for the variables in the query.

For more complex JSON queries, use `POST /v1/query` instead.

SchemasSource

## Input

1. 1
2. 2
3. 3
4. 4
5. 5
6. 6
7. 7
8. 8
9. 9
10. 10
11. 11
12. 12
13. 13
14. 14
15. 15
16. 16
17. 17
18. 18
19. 19
20. 20
21. 21

```
{
  "type": "object",
  "properties": {
    "explain": {
      "type": "string"
    },
    "metrics": {
      "type": "boolean"
    },
    "pretty": {
      "type": "boolean"
    },
    "q": {
      "type": "string"
    }
  },
  "required": [
    "q"
  ],
  "additionalProperties": false
}
```

## Output

1. 1
2. 2
3. 3

```
{
  "type": "object"
}
```