Get analytics chart
Endpoint
Section titled “Endpoint”GET /v1/analytics/chart
Authentication
Section titled “Authentication”No authentication required.
Query Parameters
Section titled “Query Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
filter[time_period] | string | 7d | Time period for analytics |
cURL Example
Section titled “cURL Example”curl -X GET "https://api.sapiom.ai/v1/analytics/chart" \ -H "Authorization: Bearer YOUR_API_KEY"Response
Section titled “Response”{ "data": { "type": "analytics-chart", "id": "123e4567-e89b-12d3-a456-426614174000-7d", "attributes": { "timePeriod": "7d", "granularity": "daily", "points": [ { "date": "2025-01-16", "usage": 6234, "spend": 312.45, "denials": 42 } ] } }}