---
title: "Search for queries"
method: POST
path: "/queries/search"
tags: ["queries"]
---

# Search for queries

`POST /queries/search`

Based on query properties (currently only name) search for queries.

## Headers

- `x-budibase-app-id` string, required

## Request body

- NameSearch
  - `name` string, required — The name to be used when searching - this will be used in a case insensitive starts with match.

## Response `200`

Returns the queries found based on the search parameters.

- QuerySearch
  - `data` object[], required
    - `_id` string, required — The ID of the query.
    - `datasourceId` string — The ID of the datasource the query belongs to.
    - `parameters` string[] — The bindings which are required to perform this query.
    - `fields` object — The fields that are used to perform this query, e.g. the sql statement
    - `queryVerb` 'create' | 'read' | 'update' | 'delete' — The verb that describes this query.
    - `name` string, required — The name of the query.
    - `schema` object, required — The schema of the data returned when the query is executed.
    - `transformer` string — The JavaScript transformer function, applied after the query responds with data.
    - `readable` boolean — Whether the query has readable data.

---

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