# Lenses API Spec

{% hint style="info" %}
HQ has its own set of APIs, but it also proxies requests to the agents.

Calls to a specific environment or agent require prefixing the proxy URL to the agent API.
{% endhint %}

{% openapi src="<https://3471212993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJpmk4J5g3Kj2RRRpYUrl%2Fuploads%2Fi0BYF0dr31g2XDn1Ehm8%2Fhq-openapi.yml?alt=media&token=ccfc8054-faae-4600-ad93-e2093e443969>" path="/v1/environments/{name}/proxy/" method="get" %}
[hq-openapi.yml](https://3471212993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJpmk4J5g3Kj2RRRpYUrl%2Fuploads%2Fi0BYF0dr31g2XDn1Ehm8%2Fhq-openapi.yml?alt=media\&token=ccfc8054-faae-4600-ad93-e2093e443969)
{% endopenapi %}


---

# 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.lenses.io/latest/devx/6.0/resources/api-reference/lenses-api-spec.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.
