🚀 Telemt Control API V1
Telemt now provides a production-grade Control Plane HTTP API for runtime visibility and safe configuration management.
The MTProto data-plane remains fully isolated.
API Features
1. Dedicated Control Plane
- HTTP/1.1 JSON API (
/v1) - Strict success/error envelopes
- Optimistic concurrency (
If-Matchwith config SHA-256 revision) - Atomic config mutations
read_onlysafety mode
2. Zero-Cost Observability
GET /v1/stats/zero/all
- Pure atomic counter export
- No hotpath impact
- No additional locks
- Core, upstream, middle-proxy, pool, and desync counters
Safe to enable in production without performance risk.
3. Minimal Runtime Snapshots (Feature-Gated)
GET /v1/stats/minimal/all
Disabled by default.
When enabled:
- ME writers state
- Per-DC coverage & availability
- Pool generations
- Floor policy runtime
- Reconnect/backoff settings
- Quarantine state
- Active network path selection
Read-lock only. Optional TTL cache.
If disabled:
- Returns
200 OK enabled=false- Stable JSON contract
4. ME & DC Status Endpoints
GET /v1/stats/me-writersGET /v1/stats/dcs
Coverage and availability percentages included:
coverage_pct = alive_writers / required_writers * 100available_pct = available_endpoints / configured_endpoints * 100
Alias behavior respects minimal feature toggle.
5. Full User Management API
- Create user
- Patch user
- Rotate secret
- Delete user (last user protected)
- Runtime user stats included
- Auto-generated
tg://proxylinks
All mutations:
- Validate before write
- Persist atomically
- Return updated config revision
Security Model
- Explicit API enable switch
- IP whitelist
- Optional exact-match
Authorizationheader - Request size limit
- Built-in
read_onlymode - No built-in TLS (recommended: loopback + reverse proxy)
Design Principles
- Data-plane isolation
- Config is authoritative
- Fail-fast validation
- Stable JSON contracts
- Zero-cost vs minimal-cost separation
- No automatic policy decisions
Telemt remains a deterministic single-node edge system.
Configuration
Under [server.api]:
enabledlistenwhitelistauth_headerrequest_body_limit_bytesminimal_runtime_enabledminimal_runtime_cache_ttl_msread_only
Changes require restart.
Versioning
- API prefix:
/v1 - Backward compatibility preserved
server.admin_apisupported as alias
This release formalizes Telemt’s control plane while preserving hotpath performance guarantees: explore details about our API at API.md
What's Changed
Full Changelog: 3.1.6...3.2.0