This section provides complete documentation for all Labs API endpoints.

Base URL

Base URL:

Authentication

All endpoints require Bearer token authentication:
Get your API key from the Labs Portal.

Response Format

All responses are JSON with consistent structure:

Success Response

Error Response

The HTTP status code indicates the error type.

Request IDs

Every response includes a request_id for tracing and support:
  • Success responses: top-level request_id field in the JSON body
  • Error responses: data.request_id field in the JSON body
  • All responses: X-Request-ID response header
Include the request_id when reporting issues.

HTTP Status Codes

Rate Limiting

Rate limits are included in response headers:

Endpoint Categories

Catalog

Browse available collections and scenarios

Episodes

Multi-turn training sessions

Evaluation

Score conversations and compare responses

OpenAPI Specification

The complete OpenAPI 3.1 specification is available at: You can use this with tools like Swagger UI or import into Postman.