Endpoint
POST https://requiems.xyz/v1/technology/counter/{namespace}
Increment Counter
Atomically increment a counter in the specified namespace and return the new value
Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
namespace |
string | yes | path | Counter namespace (1-64 chars: alphanumeric, hyphen, underscore) |
Response Example
{
"data": {
"namespace": "page-views",
"value": 42
},
"metadata": {
"timestamp": "2026-01-01T00:00:00Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
namespace |
string | The counter namespace |
value |
integer | The new counter value after increment |
Errors
undefined400 — Invalid namespace: must be 1–64 chars, alphanumeric, hyphen or underscore onlyundefined500 — Internal server error