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.
Get an API key
Generate a key from your dashboard — test and live keys are kept separate.
Make your first call
Send a request with your key as a Bearer token. Pick cURL, JavaScript or Python.
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 }'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.
https://kornexai.com/api/v1/invoicesCreate a draft invoice with GST computed per line.
Parameters
customer_idstringrequiredCustomer to bill
itemsarrayrequiredLines with hsn, qty, rate, gst_rate
currencystringISO code, default INR
due_datedateDefaults to customer terms
{ "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.
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
Python
$ pip install kornex- Python 3.8+ support
- Async & sync clients
- Django & Flask integrations
- Pydantic models included
- Comprehensive type hints
Ruby
$ gem install kornex- Ruby 3.0+ compatible
- ActiveRecord integration
- Rails engine included
- Block-based callbacks
- Automatic pagination
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.
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.
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
https://erp.acme.in/hooks/kornexinvoice.paid84 mscustomer.created61 msstock.low retryingstock.low97 mspayroll.completed72 msX-Kornex-Signature (HMAC-SHA256)Documentation
Everything you need to build
Comprehensive documentation covering every aspect of the KornexAI platform, from first API call to advanced webhook configurations.
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