Health API
Check API connectivity and validate your authentication credentials.
The Health endpoint validates your API key and confirms connectivity to the Renta API. Use it to verify credentials during setup or in monitoring systems.
Health Check
GET /v1/healthRequires a valid API key (any scope). Returns the current environment and tenant ID.
const health = await renta.health.check();
console.log(health.status); // "ok"
console.log(health.version); // "1.0.0"
console.log(health.environment); // "live" or "test"
console.log(health.tenant_id); // "tenant_abc123"curl https://api.getrenta.io/v1/health \
-H "Authorization: Bearer renta_sk_live_..."Response:
{
"status": "ok",
"version": "1.0.0",
"environment": "live",
"tenant_id": "tenant_abc123"
}| Field | Type | Description |
|---|---|---|
status | string | Always "ok" on success |
version | string | API version |
environment | string | live or test (the key's environment; both act on the same real data) |
tenant_id | string | Your tenant identifier |