> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/13.1-sdk-and-apis/api.md).

# API reference (REST)

Base URL: `https://stratix.layerlens.ai/api/v1`. Auth: `X-API-Key` header.

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Authentication</strong></td><td>API keys, scopes, rotation.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/auth.md">Read</a></td></tr><tr><td><strong>Models</strong></td><td>List, get models.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/models.md">Read</a></td></tr><tr><td><strong>Benchmarks</strong></td><td>List, get, upload benchmarks.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/benchmarks.md">Read</a></td></tr><tr><td><strong>Evaluations</strong></td><td>Create, get, list, compare.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/evaluations.md">Read</a></td></tr><tr><td><strong>Scorers</strong></td><td>Manage scorers.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/scorers.md">Read</a></td></tr><tr><td><strong>Judges</strong></td><td>Manage judges.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/judges.md">Read</a></td></tr><tr><td><strong>Judge optimizations</strong></td><td>Run GEPA.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/judge-optimizations.md">Read</a></td></tr><tr><td><strong>Traces</strong></td><td>Ingest and browse.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/traces.md">Read</a></td></tr><tr><td><strong>Trace evaluations</strong></td><td>Score trace sets.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/trace-evaluations.md">Read</a></td></tr><tr><td><strong>Spaces</strong></td><td>Manage spaces.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/spaces.md">Read</a></td></tr><tr><td><strong>Notifications</strong></td><td>Subscribe to events.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/notifications.md">Read</a></td></tr><tr><td><strong>Webhooks</strong></td><td>Receive events.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/webhooks.md">Read</a></td></tr><tr><td><strong>Organizations</strong></td><td>Multi-org and members.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/organizations.md">Read</a></td></tr><tr><td><strong>API keys</strong></td><td>Manage keys.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/api-keys.md">Read</a></td></tr><tr><td><strong>BYOK custom models</strong></td><td>Register endpoints.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/byok-models.md">Read</a></td></tr><tr><td><strong>Errors</strong></td><td>Status codes and bodies.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/errors.md">Read</a></td></tr><tr><td><strong>Rate limits</strong></td><td>Limits and headers.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/api/rate-limits.md">Read</a></td></tr></tbody></table>

## Conventions

* **Pagination** — cursor-based: `?cursor=...&page_size=...`
* **Versioning** — `/api/v1` prefix; breaking changes get a `/v2`
* **Async work** — POST returns a handle (with status), GET fetches updated state, helpers wait
* **Request IDs** — every response has `X-Request-ID`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.layerlens.ai/13.1-sdk-and-apis/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
