Skip to content

API reference

https://api.saunacache.soknight.meOpenAPI: /api/v1/openapi.json
GET/Service infopublic
GET/healthHealth checkpublic
GET/api/v1/versionCurrent releasepublic
GET/api/v1/namespacesBuilt-in namespacespublic
GET/api/v1/limitsPer-server limitspublic
GET/api/v1/kvServer datatoken
GET/api/v1/locksServer datatoken
GET/api/v1/snapshotsServer datatoken

Paths marked token need Authorization: Bearer <server token> and answer 401 without it. Event streams stay open and push records as they appear. Unknown paths answer 404.

GET /api/v1/namespaces

{
"namespaces": [
{
"id": "player-state",
"ttl_seconds": 86400
},
{
"id": "locks",
"ttl_seconds": 30
},
{
"id": "leaderboards",
"ttl_seconds": 3600
}
]
}

GET /api/v1/limits

{
"max_value_bytes": 65536,
"max_keys_per_server": 200000,
"requests_per_second": 500
}