# Custom APIs

Dualite has a unique functionality of integrating REST APIs. There are two ways:

* Infer API automatically: Dualite builds out a 'dummy' API for you based on inferring the frontend structure to get you an idea of how the API needs to be developed
* OpenAPI spec: You can directly copy-paste your API Swagger doc or OpenAPI spec and it'll automatically understand which API endpoint needs to be connected to which design element

<figure><img src="/files/3lqM0X4BVy7sZBssa1WI" alt="" width="375"><figcaption></figcaption></figure>


---

# 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://alphadocs.dualite.dev/integrations/apis.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.
