Report Insights
Path Parameters
projectId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
queries*array<>
Items
1 <= items <= 20Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/projects/string/analytics/reports/insights" \ -H "Content-Type: application/json" \ -d '{ "queries": [ { "insightId": "revenue", "key": "string", "timeRange": { "preset": "today" } } ] }'{ "results": [ { "insightId": "revenue", "key": "string", "resolvedTimeRange": { "end": "string", "start": "string" }, "result": { "kind": "metric", "sparkline": [ { "timestamp": "string", "value": 0 } ], "summary": { "currency": "string", "value": 0 } } } ]}{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "permission_denied", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "not_found", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "internal", "code": "string", "message": "string", "param": "string" }}