Developers

Build Powerful Integrations

Our developer-first API gives you everything you need to build custom integrations, automate workflows, and extend KornexAI's AI-powered capabilities into your own applications.

0.00%

Uptime SLA

<0ms

Avg Response

0M+

Daily API Calls

Quick start

A modern RESTful API

Our REST API follows industry best practices with predictable resource-oriented URLs, JSON-encoded request and response bodies, and standard HTTP methods.

01

Get an API key

Generate a key from your dashboard — test and live keys are kept separate.

02

Make your first call

Send a request with your key as a Bearer token. Pick cURL, JavaScript or Python.

03

Listen for events

Register a webhook endpoint to hear about paid invoices, new customers and low stock.

1# Create a GST invoice via the KornexAI API2curl -X POST https://kornexai.com/api/v1/invoices \3  -H "Authorization: Bearer YOUR_API_KEY" \4  -H "Content-Type: application/json" \5  -d '{6    "customer_id": "cus_8x9k2mP3nQ",7    "currency": "INR",8    "items": [9      { "name": "Consulting service", "hsn": "998311",10        "qty": 2, "rate": 15000, "gst_rate": 18 }11    ]12  }'
201 Created INV-1042 · ₹35,400.00CGST ₹2,700 · SGST ₹2,700

API reference

Every resource, documented

Invoices, customers, inventory and webhooks share the same conventions — learn one endpoint and you know them all. Pick an endpoint to preview it.

API reference /Invoices
v1
POSThttps://kornexai.com/api/v1/invoices

Create a draft invoice with GST computed per line.

Parameters

customer_idstringrequired

Customer to bill

itemsarrayrequired

Lines with hsn, qty, rate, gst_rate

currencystring

ISO code, default INR

due_datedate

Defaults to customer terms

200 Response
{  "id": "inv_42Kq8sLm",  "number": "INV-1042",  "status": "draft",  "subtotal": 30000,  "tax": { "cgst": 2700, "sgst": 2700 },  "total": 35400,  "amount_in_words": "Thirty-five thousand four hundred rupees"}

SDKs

Official client libraries

Get started quickly with our official SDKs. Each library is fully typed, thoroughly tested, and handles authentication, retries, and pagination out of the box.

JS

JavaScript / TypeScript

$ npm install @kornex/sdk
  • Full TypeScript support
  • Node.js & browser compatible
  • Async/await & Promise APIs
  • React & Next.js helpers
  • Auto-retry & rate limiting
Learn more
Py

Python

$ pip install kornex
  • Python 3.8+ support
  • Async & sync clients
  • Django & Flask integrations
  • Pydantic models included
  • Comprehensive type hints
Learn more
Rb

Ruby

$ gem install kornex
  • Ruby 3.0+ compatible
  • ActiveRecord integration
  • Rails engine included
  • Block-based callbacks
  • Automatic pagination
Learn more

Authentication

Security & real-time events

Every API request must be authenticated. Register webhook endpoints to receive instant notifications when events occur in your KornexAI workspace.

API Keys

Generate API keys from your dashboard. Include your key in theAuthorizationheader as a Bearer token. Ideal for server-side integrations.

OAuth 2.0

Use the authorization code flow for user-facing apps. Users authorize your app to access their KornexAI data securely with scoped permissions and refreshable tokens.

client.ts
1import KornexAI from '@kornex/sdk';2 3const client = new KornexAI({4  apiKey: 'ck_live_...your_key...'5});6 7const invoices = await client.invoices.list({8  limit: 25,9  sort: 'created_at:desc'10});

Webhooks

Hear about every change, the moment it happens

Subscribe to the events you care about and we’ll deliver signed JSON payloads to your endpoint — with retries when it’s down.

invoice.paid.json
1{2  "event": "invoice.paid",3  "timestamp": "2026-10-09T12:34:56Z",4  "data": {5    "id": "inv_42Kq8sLm",6    "number": "INV-1042",7    "customer": "Acme Industries Pvt. Ltd.",8    "amount": 60180,9    "currency": "INR",10    "source": "api"11  },12  "workspace_id": "ws_a1b2c3d4"13}

Delivery log

200invoice.paid84 ms
200customer.created61 ms
503stock.low retrying
200stock.low97 ms
200payroll.completed72 ms
Signed with X-Kornex-Signature (HMAC-SHA256)
Automatic retry with exponential backoff
HMAC-SHA256 signature verification
Subscribe to specific event types
Detailed delivery logs in your dashboard
SSL/TLS encrypted payloads

Run your whole business on one platform

Start free for 14 days. Send your first invoice in minutes and see every number in one place.

  • 14-day free trial
  • No credit card
  • Cancel anytime