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
/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 theAuthorization header:
Request Format
- Content-Type:
application/jsonfor all request bodies - Date format:
YYYY-MM-DDfor 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:Error Format
Errors return a JSON object with anerror field and an appropriate HTTP status code:
Status Codes
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/...