Developer API
Migrate from v1
Move public analytics integrations to the Developer API v2 contract.
Version 1 contains one route:
GET /api/public/v1/analyticsStazus keeps this route available with its original response. Responses now include a Deprecation: true header.
Version 2 uses this route:
GET /api/public/v2/analyticsThe query parameters are unchanged. Version 2 wraps the analytics object in data.
// Version 1
{
"team_id": 7,
"window": {},
"health": {},
"totals": {},
"incidents": {},
"series": [],
"projects": []
}// Version 2
{
"data": {
"team_id": 7,
"window": {},
"health": {},
"totals": {},
"incidents": {},
"series": [],
"projects": []
}
}Change the URL first. Then read the result from response.data.
No removal date is set for version 1. Stazus will publish a sunset date before removal.
Last updated on