Skip to main content
The qyl API provides programmatic access to telemetry data collected by the qyl observability platform. Query distributed traces, search logs, analyze metrics, and track deployments through a consistent REST interface.

Quick Start

Fetch the 10 most recent traces:

Base URLs

Authentication

The API is currently public and requires no authentication. For production deployments, place qyl behind a reverse proxy with your preferred authentication mechanism.

API Versioning

The API uses date-based versioning in the URL path: All endpoints use the /v1/ prefix. Breaking changes introduce new versions while maintaining backwards compatibility.

Endpoints

Endpoint Summary

Pagination

All list endpoints support cursor-based pagination:

Response Headers

Every response includes correlation headers for debugging:
Include these headers when reporting issues. They help trace the request through the system.

Error Handling

Errors follow the RFC 7807 Problem Details format:

Status Codes

Real-time Streaming

Subscribe to telemetry events in real-time using Server-Sent Events (SSE):
Events are delivered as JSON with a type discriminator:
Available event types: traces, spans, logs, metrics, exceptions, deployments, all

Schema Architecture

The API schema follows a single source of truth pattern: TypeSpec definitions generate everything.

Generated Artifacts

Code Generation

The SchemaGenerator transforms OpenAPI into production-quality C#:
  • Strongly-typed scalars with IParsable<T>, ISpanFormattable
  • Hex parsing for TraceId/SpanId (hot-path optimized with ReadOnlySpan<byte>)
  • JSON converters for all primitive types
  • DuckDB DDL with proper indexes
  • Generation guard for CI/local workflows (detects stale files)
Never edit *.g.cs files directly. Modify the TypeSpec definitions in core/specs/ and regenerate.

SDK & Tools