Logs
Query decision logs with filtering and pagination.
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
Path Parameters
uuidQuery Parameters
1 <= value11 <= value <= 10020Filter by decision value
Filter by escalation status
Minimum confidence
Maximum confidence
Filter logs after this time (ISO 8601)
Filter logs before this time (ISO 8601)
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/decision-types/497f6eca-6276-4993-bfeb-53cbbbba6f08/logs"{}Export decision logs as JSON or CSV.
Streams results for efficient handling of large datasets.
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
Path Parameters
uuidQuery Parameters
Export format: json or csv
"json"Value in
- "json"
- "csv"
Filter by decision value
Filter by escalation status
Filter logs after this time
Filter logs before this time
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/decision-types/497f6eca-6276-4993-bfeb-53cbbbba6f08/logs/export"nullGet aggregated metrics for the last 24 hours.
Returns total_decisions, avg_confidence, avg_latency_ms, escalation_rate, and decision_distribution.
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
Path Parameters
uuidResponse Body
application/json
application/json
curl -X GET "https://example.com/api/v1/decision-types/497f6eca-6276-4993-bfeb-53cbbbba6f08/metrics"{}