TypeScript SDK
The @incrm-app/sdk package provides fully typed functions for every InCRM API endpoint, auto-generated from the OpenAPI specification.
Installation
npm install @incrm-app/sdk
Or with other package managers:
pnpm add @incrm-app/sdk
yarn add @incrm-app/sdk
Quick Start
import { InCRMClient, listClients, createInvoice } from '@incrm-app/sdk'
const incrm = new InCRMClient({
baseUrl: 'https://api.incrm.app',
apiKey: process.env.INCRM_API_KEY!,
})
// List all clients
const { data: response } = await listClients({
query: { page: 1, perPage: 100 },
})
console.log(`Found ${response.meta.total} clients`)