# OpenAPI

{% hint style="success" %}
We support Open API *version 3* and *later* versions.
{% endhint %}

## Configuration

### Connecting the data source

To connect to the Open API spec, follow these steps:

1. On the **Data sources** page, click **Connect**, and select *OpenAPI* in the Data sources list.
2. Give your data source a name and provide the **Specification URL**.
3. To authenticate, you may need to specify the *URL header* or select the required method in the **Authentication settings** dropdown.

{% hint style="info" %}
More about available authentication options [here](/reference/data-sources/http/api-authentication.md).
{% endhint %}

4. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="/files/pfLihQCwE4UoftSeNtIB" alt=""><figcaption></figcaption></figure>

## Usage

Once you've established the connection between UI Bakery and OpenAPI, you can start interacting with its data. For this purpose, you can use the [Open API Request](/reference/working-with-actions/open-api-request.md) action type.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/reference/data-sources/open-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
