EscapeLifeDocs
Reference

SDKs

Official EscapeLife SDKs provide type-safe access to the REST API with automatic retries, webhook helpers, and typed response models. SDKs ship alongside their corresponding product phase.

TypeScript / JavaScript

@escapelife/sdkIn development

Ships with Phase 2

Install
npm install @escapelife/sdk
Usage
import { EscapeLife } from "@escapelife/sdk";

const client = new EscapeLife({
  apiKey: process.env.ESCAPELIFE_API_KEY,
});

const property = await client.properties.get("pty_xyz123");
const sources = await client.knowledge.listSources();

Python

escapelifePlanned

Ships with Phase 3

Install
pip install escapelife
Usage
from escapelife import EscapeLife

client = EscapeLife(api_key=os.environ["ESCAPELIFE_API_KEY"])

property = client.properties.get("pty_xyz123")
sources = client.knowledge.list_sources()

Kotlin

ai.escapelife:sdkPlanned

Ships with Phase 4

Install
implementation("ai.escapelife:sdk:1.0.0")
Usage
val client = EscapeLifeClient(apiKey = System.getenv("ESCAPELIFE_API_KEY"))

val property = client.properties.get("pty_xyz123")
val sources = client.knowledge.listSources()

SDK design principles

  • Mirror the REST API 1:1 — every endpoint has a corresponding SDK method.
  • Type-safe request and response models generated from the OpenAPI schema.
  • Automatic retry with exponential backoff on 429 and 5xx responses.
  • Webhook signature verification helpers included.
  • Environment-aware — pass sk_test_ keys to target the sandbox automatically.