For the complete documentation index, see llms.txt. This page is also available as Markdown.

REST API

The Stratix REST API — same surface the dashboard and SDK use.

The Stratix REST API is the underlying interface the dashboard and SDK both call. If you're building a tool in a language without a Stratix SDK (Go, TypeScript, Ruby, etc.), use the REST API directly.

Base URL

https://stratix.layerlens.ai/api/v1

Authentication

X-API-Key: ll_xxxxxx...

Generate keys at Premium → Settings → API keys.

Common endpoints

Method
Path
Description

GET

/models

List models

GET

/models/{id}

Get a model

GET

/benchmarks

List benchmarks

POST

/evaluations

Create an evaluation

GET

/evaluations/{id}

Get an evaluation

POST

/traces

Ingest a trace

GET

/traces/{id}

Get a trace

POST

/judges

Create a judge

POST

/judge-optimizations

Run GEPA

POST

/trace-evaluations

Run a trace evaluation

Full reference: API reference.

curl example

Errors

Status
Meaning

200

Success

400

Bad request (validation)

401

Unauthenticated

403

Forbidden (org/role)

404

Not found

429

Rate limited

500

Server error

Request IDs

Every response includes an X-Request-ID header and (where relevant) a request_id field in the body. Cite this when filing support tickets.

Where to next

Last updated

Was this helpful?