# What is the Live Preview API?

We  offer a Live Preview API which can be used in self-serve environments to dynamically preview an initial Site and Template using provided Business Details.

Example of fields that can be passed are viewable here:

<https://api-docs.devhub.com/core-resources/locations>

### Example dynamically generated URL

```
http://cloudtemplates.cloudfrontend.net/app/live-preview/
  ?clone_id=1576931&
  site={%22business%22:{%22business_name%22:%20%22Johnson%20Legal%20Partners%22}}
```


---

# 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://api-docs.devhub.com/live-preview-api/what-is-the-live-preview-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.
