Skip to main content
Official SDKs expose the core KmerHosting account and service resource families while giving each language a native package and calling style.

Retries and rate limits

From version 0.4.0 all four SDKs retry automatically on 429, 502, 503, and 504: up to 3 attempts in total, exponential backoff with jitter, and the Retry-After header is honored when present. Write requests reuse the same Idempotency-Key on every attempt, so a retry cannot repeat the action. When retries are exhausted on a 429 the SDK raises a RateLimitError that carries retryAfter (seconds). It is a subclass of the existing API error, so existing error handling keeps working. Pass a maximum of one attempt to disable retries. See Rate limits.

Choose your SDK

TypeScript

TypeScript logonpm install @kmerhosting/sdk

Python

Python logopip install kmerhosting-sdk

PHP

PHP logocomposer require kmerhosting/sdk

Java 17+

Java logocom.kmerhosting:kmerhosting-sdk
All clients read KMERHOSTING_API_KEY by default and expose the same resource families: account, services, domains, email, hosting, lxc, and kvm. Write methods generate idempotency keys if none is supplied. The former vps resource is retired.

Examples

Java returns Jackson JsonNode API envelopes. See each package README and the API reference for method-to-endpoint mapping.

AI-ready integration prompt

The KmerHosting Dashboard provides copy-ready versions for ChatGPT, Claude, Gemini, Cursor, and other AI coding clients.