> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vence.one/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs

> Official TypeScript SDK aligned to the OpenAPI contract. Monorepo alpha — confirm publish status.

# SDKs

## TypeScript

**`@vence/sdk`** is the official TypeScript client for the Decision Platform API. Types and operations stay aligned to the OpenAPI contract (`PUBLIC_OPENAPI` / `GET /openapi.json`). Status: **monorepo alpha** — confirm npm publish status before installing from the registry; workspace packages may be the current path.

```bash theme={null}
pnpm add @vence/sdk
```

```ts theme={null}
import { Vence } from "@vence/sdk";

const vence = new Vence({
  apiKey: process.env.VENCE_API_KEY!,
  // Use the base URL provisioned for your org (intended sandbox hostname below).
  baseUrl: "https://sandbox.api.vence.one",
});

const entity = await vence.entities.create({ external_id: "biz_123" });
const decision = await vence.underwrite.create({
  entity_id: entity.id,
  product: "working_capital",
});
```

## Generation strategy

Generate types from the published OpenAPI so docs, SDK, and server never drift. Contract tests against `PUBLIC_OPENAPI` fail CI on drift. Other language clients follow the same OpenAPI source of truth.

## Environments

Point the client at the sandbox or production base URL Vence provisions for your org. Intended hostnames are documented in [API overview](/developers/api-overview) (**founder-beta / coming online**). Keys are environment-scoped — a sandbox key never authorizes production calls.

See [API overview](/developers/api-overview) and [Quickstart](/developers/quickstart).
