Reference
API Reference
Complete reference for the 2Signal REST API and built-in evaluators.
REST API
Overview
API key auth, project scoping, and rate limits.
Auth Endpoints
Login, refresh, and logout for programmatic access.
POST Traces
POST /api/v1/traces — batch trace and span ingestion.
GET Traces
GET /api/v1/traces — query and filter traces with pagination.
Scores
POST /api/v1/scores — create and query evaluation scores.
Model Routing
POST /api/v1/route-model — intelligent model selection.
Evaluators
Overview
How evaluators work and how to configure them.
LLM Judge
LLM-as-judge evaluation with custom criteria.
Contains
Check if output contains required strings.
Regex Match
Validate output against regex patterns.
JSON Schema
Validate structured output against JSON Schema.
Similarity
TF-IDF cosine similarity scoring.
Latency
Score traces based on response time thresholds.
Cost
Score traces based on token cost thresholds.