Skip to main content

API Overview

The lim REST API provides programmatic access to all accounting operations. It powers the CLI, the web dashboard, MCP server, and third-party integrations.

Base URL

All API endpoints are versioned under /v1. The base URL may differ for self-hosted deployments.

Authentication

lim uses OAuth 2.0 via WorkOS for authentication. All API requests require a valid bearer token.

Obtaining a Token

Using the Token

Include the token in the Authorization header:
Never expose API keys in client-side code, public repositories, or logs. Use environment variables or secret management tools.

Request Format

  • Content-Type: application/json for all request bodies
  • Date format: YYYY-MM-DD for dates, ISO 8601 for timestamps
  • Amounts: Integers in the smallest currency unit (yen for JPY, cents for USD)
  • IDs: UUID v7 format

Example Request

Response Format

All responses are JSON. Successful responses return the resource directly:
List endpoints return arrays with pagination info:

Error Format

Errors return a JSON object with an error field and an appropriate HTTP status code:

Status Codes

Error messages are safe to display to users. Internal details and stack traces are never leaked in error responses.

Rate Limiting

API requests are rate-limited per authentication token: When rate-limited, the API returns 429 Too Many Requests with a Retry-After header:

Endpoint Overview

All endpoints are scoped to a company: /v1/companies/:companyId/...

Core Resources

Accounting

Reports

Banking

Operations

Dashboard & Events

MCP

A full OpenAPI specification is available at https://api.uselim.com/openapi.json. You can import it into Postman, Insomnia, or any OpenAPI-compatible tool for interactive exploration.