# TypeScript SDK

Section: Build
Page: https://docs.konec.to/sdk

Typed client for the Public and Admin APIs.

``bash
npm install @konecto/sdk
`

`ts
import { Konecto } from '@konecto/sdk';

// Browser: publishable key, Public API only
const pub = new Konecto({ publishableKey: 'pk_live_...' });
const types = await pub.ticketTypes.list('acme-summit');

// Server: secret key, Admin API
const admin = new Konecto({ secretKey: process.env.KONECTO_SECRET_KEY });
const orders = await admin.orders.list({ event: 'evt_123', limit: 50 });
``

The SDK is generated from the OpenAPI spec, so every method and type matches the API.
