v1 API — Deprecation Notice
All v1 endpoints will continue to function until the sunset date, but responses will include the following headers:
Migration to v2
The v2 API uses a flat response format with timezone-aware counter values and expanded PATCH/increment semantics.
v1 | v2 Equivalent |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Key Response Differences
v2 uses a flat counter shape:
{ id, name, type, value, startDate?, endDate?, created }instead of the nested{ id, displayName, type, members, data }shape of v1.valueis timezone-resolved in v2: forFromDatecounters it ispastDays, forToDateit isremainingDays, both calculated for the requested timezone.namereplacesdisplayName.membersare no longer included in v2 counter responses.
See GET /v2/counters for the full v2 reference.