Skip to content

GET /counter

Fetch Counter

GET
/counter

List counters, optionally filtered by name or key.

Queries the Counter collection with the provided filters. Returns all
counters when no filters are supplied, sorted ascending by name (case-insensitive).

Emits: (direct transaction — no event class)

Required scope: traceability:counter:read

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Query Parameters

name
key

Responses

Successful Response

application/json
JSON
[
  
{
  
  
"_id": "string",
  
  
"_key": "string",
  
  
"_rev": "string",
  
  
"name": "Work Order Counter",
  
  
"next_tick": 1,
  
  
"template": [
  
  
  
[
  
  
  
  
"WO-",
  
  
  
  
"%Y",
  
  
  
  
"-",
  
  
  
  
"%m",
  
  
  
  
"-"
  
  
  
]
  
  
],
  
  
"frequency": "month",
  
  
"reset_date": "2026-05-01T00:00:00Z"
  
}
]

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.