Score History
Retrieve the trust score history for an agent over a configurable time period. Useful for trend analysis, compliance reporting, and monitoring score changes.
GET/trust/{agent_id}/history
Get trust score history for an agent over a time period.
Requires API key authentication
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_id | string | required | The unique identifier of the agent. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | number | optional | Number of days of history to return. Default: 30, max: 365. |
Response Example
Response
[ { "score": 850, "reason": "Transaction completed", "created_at": "2025-01-15T10:00:00Z" }, { "score": 855, "reason": "Transaction completed", "created_at": "2025-01-14T08:30:00Z" }, { "score": 840, "reason": "Dispute resolved in favor", "created_at": "2025-01-12T14:00:00Z" }, { "score": 820, "reason": "Dispute filed against agent", "created_at": "2025-01-10T09:15:00Z" }]Code Examples
BASH
curl -X GET "https://api.alsorn.com/trust/agent_7f3k9x2m/history?days=90" \ -H "Authorization: Bearer YOUR_API_KEY"