Integrate Hisabi with your apps

Connect Hisabi with your existing systems using our comprehensive API documentation.

Getting Started

Set up your API key and start integrating with Hisabi in minutes.

API Key Setup

Step 1: Generate API Key

Go to Settings → API Keys in your Hisabi dashboard and generate a new API key.

Step 2: Set Permissions

Choose the appropriate permissions for your integration (read, write, or both).

Step 3: Test Connection

Use the test endpoint to verify your API key is working correctly.

API Features

Powerful features to help you build robust integrations.

API Key Authentication

Secure authentication using API keys with role-based access control.

Real-time Webhooks

Get notified instantly when invoices are paid or expenses are created.

RESTful API

Standard REST endpoints with JSON responses for easy integration.

SDKs & Libraries

Official SDKs for popular programming languages coming soon.

Example Endpoints

Get started with these common API endpoints and examples.

GET/api/v1/invoices

Retrieve all invoices for your organization

curl -X GET "https://api.hisabi.co.ke/v1/invoices" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
POST/api/v1/invoices

Create a new invoice

curl -X POST "https://api.hisabi.co.ke/v1/invoices" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_name": "John Doe",
    "customer_email": "john@example.com",
    "items": [
      {
        "description": "Consulting Services",
        "quantity": 1,
        "unit_price": 5000
      }
    ]
  }'
GET/api/v1/expenses

Retrieve all expenses for your organization

curl -X GET "https://api.hisabi.co.ke/v1/expenses" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
POST/api/v1/expenses

Create a new expense record

curl -X POST "https://api.hisabi.co.ke/v1/expenses" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "Office Supplies",
    "amount": 2500,
    "category": "office",
    "date": "2024-01-15"
  }'

Webhooks

Get real-time notifications when events occur in your Hisabi account.

Available Webhook Events
invoice.created
invoice.paid
invoice.overdue
expense.created
expense.approved
payment.received

Configure webhooks in your dashboard to receive real-time notifications.

Complete Documentation

Access our full API documentation with detailed examples and SDKs.

Full API Reference

Complete documentation with all endpoints, parameters, and response formats.

Swagger/OpenAPI

Interactive API documentation with live testing capabilities.