> For the complete documentation index, see [llms.txt](https://docs.jetadmin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jetadmin.io/user-guide/sql-queries-and-api-requests.md).

# SQL queries and API requests

Use a query or request when a connected data source needs a custom read or action. Inspect the method, parameters, credentials, and expected result before attaching it to an app screen or workflow.

* [SQL Query Builder](/user-guide/sql-queries-and-api-requests/sql-query-builder.md) and [Making SQL queries](/user-guide/sql-queries-and-api-requests/make-a-sql-query.md) cover database queries.
* [API Builder](/user-guide/sql-queries-and-api-requests/api-builder.md) and [Making API requests](/user-guide/sql-queries-and-api-requests/make-an-http-request.md) cover HTTP requests.
* [Text to SQL](/user-guide/sql-queries-and-api-requests/text-to-sql.md) and [Ask AI for queries and transformations](/ai-app-builder/refine-an-app/ask-ai.md) offer assistance, but generated requests still need review.

Use a safe dataset to test write requests. The connector guide is under [Data Sources](/user-guide/data-sources.md).

## Follow a task

* [Use dynamic SQL inputs](/user-guide/sql-queries-and-api-requests/use-dynamic-sql-inputs.md) to reuse a query with different customer IDs.
* [Choose an API response format](/user-guide/sql-queries-and-api-requests/api-builder/choose-api-response-format.md).
* [Transform API responses](/user-guide/sql-queries-and-api-requests/api-builder/transform-api-responses.md) to select and rename fields.
* [Configure pagination](/user-guide/sql-queries-and-api-requests/api-builder/pagination.md) to retrieve more than the first page.
* [Handle API errors](/user-guide/sql-queries-and-api-requests/api-builder/error-handling.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jetadmin.io/user-guide/sql-queries-and-api-requests.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
