Skip to main content
GET
/
v1
/
groups
/
{id}
/
state
/
counters
List group counters
curl --request GET \
  --url https://api.scrip.dev/v1/groups/{id}/state/counters \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "key": "purchases",
      "value": "42"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "YWJjMTIz"
  }
}
Returns all counters for a group as a map of counter key to current value. Counters are numeric accumulators that can increment by any amount, not just +1. To see reset configuration for a specific counter, use the get counter endpoint.
For usage patterns and examples, see the State Management guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

id
string<uuid>
required

Group ID

Response

Group counters

data
object[]

Counter entries

pagination
object

Pagination metadata for list responses