SparkientDocs
Api reference

Metrics

GET
/api/v1/metrics

Org-level aggregate metrics for the last 24 hours.

Returns total_decisions, avg_latency_ms, active_types, success_rate, decision_distribution, and recent_decisions.

Authorization

AuthorizationBearer <token>

A 64-character hexadecimal Sparkient API key. Create a key in the Sparkient dashboard and send it as Authorization: Bearer YOUR_API_KEY.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/metrics"
{}