Appearance
Product Reports
Aggregate report for one product: license counts by status, site counts, event counts by type (last 30 days), and feedback counts by sentiment.
GET /v1/products/:id/reportsRequires a paid plan (402 on the free tier).
Path Parameters
| Parameter | Description |
|---|---|
id | Product ID |
Response
json
{
"data": {
"licenses": {
"active": 120,
"expired": 14,
"revoked": 3
},
"sites": {
"active": 210,
"deactivated": 32
},
"events": {
"license.validated": 4521,
"license.activated": 95,
"update.checked": 1320
},
"feedback": {
"positive": 18,
"negative": 2
}
}
}| Field | Description |
|---|---|
licenses | License counts keyed by status. |
sites | Active vs deactivated site activations. |
events | Event counts by type for the last 30 days. |
feedback | Feedback counts keyed by sentiment. |
Example
bash
curl -X GET "https://api.packedge.dev/v1/products/prd_xxx/reports" \
-H "Authorization: Bearer pk_your_api_key"