Skip to navigation

Get the workspace's document settings

View as Markdown

Returns the workspace’s document-settings blob, split into sections: shared (applies to every document type) plus the per-type sections invoice, proforma, quote, and expense.

Every section is always present in the response. A section the workspace has never customized serializes as an empty object ({}). Within a section, only keys that have an explicit value are present — a cleared/inherited key is simply absent.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

Lucanto API key. Two prefixes:

  • lct_pat_<random><checksum> — personal access token (owner: User)
  • lct_live_<random><checksum> — workspace token, live data

Issue keys at /settings/api_keys (personal) or /:workspace_id/settings/api_keys (workspace). Plaintext token is shown once and never again.

Path parameters

workspace_idlongRequired>=1
Workspace ID. The numeric ID shown in your URLs.

Response

OK
sharedobject
Settings that apply to every document type.
invoiceobject

Invoice-specific defaults (extends the shared settings).

proformaobject

Proforma defaults: the invoice settings plus what happens when the customer pays.

quoteobject

Quote-specific defaults (extends the shared settings).

expenseobject

Expense defaults. Expenses carry only the shared settings — they have no payment-request or validity fields of their own.

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error