> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference

> REST APIs for every e6data product. Endpoint pages are generated from the OpenAPI specs in the openapi/ folder.

Every endpoint page in this section comes from an OpenAPI spec in the `openapi/` folder of the docs repository. To change an endpoint page, change the spec.

> [card] [Query Engine: SQL over REST](https://docs.e6data.com/api-reference/query-sql/statements/submit-a-statement.md)
>
> Submit SQL statements over HTTPS, poll for status, and page through results. `/api/v2/sql/statements`

> [card] [Query Engine: query history](https://docs.e6data.com/api-reference/query-history/query-history/get-query-count.md)
>
> Count queries by status, filtered by workspace, user and cluster.

> [card] [Ingest Engine](https://docs.e6data.com/api-reference/ingest/pipelines/create-a-pipeline.md)
>
> Create and manage pipelines, jobs, connection profiles and connection tables.

## Before you call an API

1. Get a credential. See [Authentication](https://docs.e6data.com/api-reference/authentication.md).
2. Find your host. For Query Engine, it's under **Cluster → Connectivity** in the console.
3. Send the credential as a bearer token in the `Authorization` header.

## Related guides

* [REST API for SQL queries](https://docs.e6data.com/query/connect/rest-api-for-sql.md): the full walkthrough, with a Python example.
* [REST API error codes](https://docs.e6data.com/query/errors/rest-api.md)
* [Management API](https://docs.e6data.com/platform/automate.md): automate clusters, catalogs, schedules and policies.
* [API limits](https://docs.e6data.com/platform/reference/limits/api.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.