A clean REST API to read and write your SmartDhandha billing and HR data. Scope-controlled keys, moral rate limits, and interactive docs out of the box.
6
Modules
14+
Endpoints
4
Scopes
API Assistant
Clean, predictable REST. Every response is { success, data } or { success: false, error }.
/api/v1/invoicesList invoices with filters β status, date, client, searchbilling:read/api/v1/invoicesCreate a draft invoice with line items (totals auto-computed)billing:write/api/v1/invoices/:idUpdate notes, dates, or advance status to sent / voidbilling:write/api/v1/billsList vendor bills β filter by status, vendor, datebilling:read/api/v1/leavesSubmit a leave request β earned or sick, startDate / endDateleaves:write/api/v1/leaves/:idApprove or deny a pending leave β status: approved | deniedleaves:write1. Create an API key in Settings β Developer. 2. Pick scopes. 3. Call the API.
curl -X POST https://app.smartdhandha.com/api/v1/invoices \
-H "Authorization: Bearer sd_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"clientId": "party_abc123",
"invoiceNumber": "INV-2025-001",
"invoiceDate": "2025-04-01",
"dueDate": "2025-04-30",
"currency": "INR",
"items": [
{
"description": "Consulting β April 2025",
"quantity": 20,
"unitPrice": 3500,
"taxRate": 18
}
]
}'{
"success": true,
"data": {
"id": "inv_9f3kd82",
"invoiceNumber": "INV-2025-001",
"status": "draft",
"subTotal": "70000.00",
"taxTotal": "12600.00",
"totalAmount": "82600.00",
"balanceDue": "82600.00",
"currency": "INR",
"invoiceDate": "2025-04-01",
"dueDate": "2025-04-30"
}
}Not just an API β a secure integration layer designed for how founders actually work.
Each key carries explicit scopes (billing:read, leaves:writeβ¦). A Zapier integration only sees what you allow β no over-provisioning.
A 30-day rolling credit window (default 1 000 req) prevents runaway automation. Clear 429 errors tell you exactly when the window resets.
Every key is tied to one organization. A key can never read another org's data β enforced at the middleware level on every request.
Works with Zapier, Make, n8n, or a raw curl command. Standard REST + JSON β no SDK required.
Raw keys are shown exactly once at creation and never saved. We store only the SHA-256 hash β even we can't recover your key.
Scalar-powered API reference with dark mode, live try-it, and auto-generated code samples in 20+ languages.
Log in, go to Settings β Developer, create a key with the scopes you need, and you're live.