Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.

Setup

  1. Create a Lexware Office account: Sign up at https://www.lexware.de (Lexware Office, formerly lexoffice). A regular trial account is sufficient for testing the Public API; there is no separate sandbox environment.
  2. Generate an API key: Log in to the Lexware Office app and open https://app.lexware.de/addons/public-api to create your Public API key. Only account administrators can create keys.
  3. Store the key: Set the key as LEXOFFICE_API_KEY. It is sent as a Bearer token in the Authorization header on every request.
  • Since the rebranding from lexoffice to Lexware, the canonical API gateway is https://api.lexware.io (changed 26 May 2025). The legacy gateway api.lexoffice.io was only kept available until December 2025, so all tools use the new domain.
  • The API is rate limited to 2 requests per second per client; HTTP 429 is returned when exceeded.
  • POST /v1/files is a multipart/form-data upload: the binary file goes in the ‘file’ part and the upload type (‘voucher’) in the ‘type’ part.
  • Invoices created via the API are drafts by default; pass finalize=true to create them with status open. Finalized invoices can no longer be edited freely.
  • voucherType and voucherStatus are mandatory on the voucherlist endpoint; use ‘any’ to avoid filtering.
Provider API reference: https://developers.lexware.io/docs/

Tools

Example prompts

  • List my open and overdue invoices in Lexware Office and summarize the outstanding amounts.
  • Create a draft invoice in Lexware Office for a customer; ask me for the line items first.
  • Upload this receipt to Lexware Office as a bookkeeping voucher.