Laksana API

A JSON REST API for work updates, issues, work orders, inspections, messaging accounts and more. This page takes you to a first successful request.

Base URL

Send every request to https://api.laksana.app. The versioned REST API lives under /api/v1.

Authentication

Send your token as Authorization: Bearer <token> or as X-API-Key: <token> with every request.

An integration key carries one scope. read allows GET, HEAD and OPTIONS. write allows every method and includes read. A key without the needed scope receives 403 insufficient_scope. A member token follows the role of the member instead of these scopes.

The X-Organisation-Id header is optional for a workspace token, which already acts on its own workspace. If you send it, it must match the token's workspace.

Your first request

Sign in as a workspace member. The response carries your token in access_token.

curl -X POST https://api.laksana.app/api/v1/auth/login \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"email":"you@example.com","password":"your-password"}'

Call the API with that token. The response lists your user and workspaces.

curl https://api.laksana.app/api/v1/auth/me \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_TOKEN'

Conventions

Requests and responses are JSON. Send Accept: application/json, and Content-Type: application/json when you send a body.

Pagination differs by endpoint. List endpoints take page, and most also take per_page or limit, each with its own default and maximum. GET /api/v1/organisations returns 25 per page and takes page only. Each operation in the reference shows its own parameters and meta block.

Messages come back in the saved language of the signed-in member, then the language of the workspace, then English. Set the language in the member or workspace settings.

Rate limits

Limits are counted per minute. A workspace plan or add-on can set a different allowance, and 0 means unlimited.

CallerLimit
Missing or invalid credential120 per IP
Live tokenThe workspace allowance (default 120 per token) and 600 per IP
Sign-in and one-time code endpoints30 per IP
Assistant relay on the master key60 per workspace and 600 overall
Platform AI helpers30 per workspace
Health checks60

A 429 response carries a Retry-After header with the number of seconds to wait.

Error codes

Refusals use a few envelopes today, and each endpoint keeps the one shown here. Read error first, then error_code when it is present.

CodeHTTPBody shape Message (English)Message (Bahasa Melayu)When it appears
none 401 {message} Invalid API token. The token is missing ("Missing API token.") or not valid.
insufficient_scope 403 {error, message, required_scopes} The API token does not have the required scope for this endpoint. An integration key with scope read called a write endpoint. required_scopes lists what is needed.
organisation_mismatch 403 {error, error_code, message} This credential acts only on its own workspace. The request named another workspace (body, query or X-Organisation-Id).
organisation_required 403 {error, error_code, message} An active organisation is required to access this feature. The credential has no active workspace behind it.
organisation_required 422 {state, error_code, message} organisation_id is required for the assistant relay. The master key called an assistant endpoint without X-Organisation-Id or organisation_id.
member_required 403 {error, error_code, message} This endpoint acts as a workspace member. Use a member's own sign-in token. The endpoint needs a member behind the request and an integration key has none.
permission_denied 403 {error, error_code, message} Your role in this workspace does not allow this action. The member's role lacks the permission the action needs.
platform_key_required 403 {error, error_code, message} This endpoint is a platform relay and accepts only the platform service key. A workspace token called a platform relay.
platform_number_forbidden 403 {error, error_code, message} Name a messaging_account_id your workspace owns. The platform number is not available to workspace credentials. A workspace credential asked to send from the platform's own WhatsApp number.
platform_field_forbidden 422 {error, error_code, message} These fields are set by the platform and cannot be changed with this credential. A workspace credential tried to change a field only the platform sets. fields lists them.
phone_number_id_unavailable 422 {error, error_code, message} This phone number id cannot be registered to this workspace. The phone number id is already held by the platform or another workspace. reason and errors are present.
workspace_closed 403 {error, message} Workspace closed. This workspace is closed for non-payment. Settling the outstanding payment restores everything instantly. Ruang kerja ditutup. Ruang kerja ini ditutup kerana pembayaran tertunggak. Menjelaskan pembayaran akan memulihkan semuanya serta-merta. The workspace is closed for non-payment.
workspace_read_only 403 {error, message} Workspace suspended. This workspace is read-only until payment is settled. Your data is safe and exports remain available. Ruang kerja digantung. Ruang kerja ini baca-sahaja sehingga pembayaran diselesaikan. Data anda selamat dan eksport masih tersedia. The workspace is suspended and accepts reads only.
module_off 403 {error, error_code, message} ⛔ :record are switched off for *:org*. An admin can turn the module back on under Settings → Organisation → Modules. ⛔ :record dimatikan untuk *:org*. Admin boleh menghidupkan semula modul ini di Tetapan → Organisasi → Modul. The plan includes the module and the workspace switched it off.
plan_missing 403 {error, error_code, message} ⛔ :record are not included in *:org*'s current plan. An admin can compare plans under Settings → Subscription. ⛔ :record tidak termasuk dalam pelan semasa *:org*. Admin boleh membandingkan pelan di Tetapan → Langganan. The workspace's plan does not include the module.
feature_not_supported_by_plan 403 {error, message, feature, upgrade_url} This feature isn't supported by your plan. Ciri ini tidak disokong oleh pelan anda. The workspace's plan does not include the feature. upgrade_url points to the plans page.
not_found 404 {error, error_code, message} No such work order. Work-order endpoints: unknown or malformed id.
invalid_move 422 {error, error_code, message} Work-order endpoints: the status change is not allowed. errors is present.
approval_required 422 {error, error_code, message} Work-order endpoints: the approval policy needs an approval first. errors is present.
validation_failed 422 {error, error_code, message} Work-order endpoints: input failed validation. errors is present.
none 422 {message, errors} The given data was invalid. Every other endpoint: Laravel validation. errors maps each field to its messages.
none 429 {message} Too Many Attempts. A rate limit was hit. The Retry-After header gives the seconds to wait.

Webhooks

Meta WhatsApp, Telegram and Amazon SES send events to public URLs under /api/webhooks. The provider signature is the credential, so these URLs accept requests without a Laksana token.

Laksana sends 39 event types to your own endpoint, signed in X-Laksana-Signature. Delivery is at least once, so key your handler on the event id. The reference lists every event with copy-paste verification code in PHP and JavaScript.

AI connectors (MCP)

Connect Claude, ChatGPT, Cursor, Grok, Gemini or any AI app that supports MCP to a workspace with the MCP server at https://api.laksana.app/mcp. The app reads what the member can see, and makes changes only when the workspace switches AI changes on and the member ticks "Make changes for me". The guide covers the connect steps, scopes, tools, rate limit and how to revoke access.

Changelog

2026-11-11 New interactive reference, this start-here page, an AI connectors guide, an error code table, outbound webhook events with signature recipes, and a description and example for every public operation.

Version 1 compatibility: /api/v1 is additive. New fields and endpoints can appear in any release. Removals and reshaped responses wait for a new version.