search
Search the curated Lexware Office API catalog to find endpoints, request shapes, workflows, and domain caveats before executing.
Instructions
Search the curated Lexware Office API catalog by running a JavaScript async arrow function.
Use this before execute to discover endpoints, request shapes, response notes, workflows, and domain-specific caveats.
Available global:
declare const spec: LexwareApiCatalog;
Useful starting points:
spec.info.domainIndex: compact map from business domains to endpoint lists
spec.info.writesEnabled: whether this server currently allows POST/PUT/PATCH/DELETE — check before planning writes
spec.paths: path -> method -> operation catalog with params, requestBody, responses, examples, capabilities, docsUrl
spec.workflows: curated recipes for reporting, sales documents, files/uploads, webhooks, and API quirks
spec.info.voucherStatusSemantics and financeReportingSemantics: finance/status guidance for revenue/Umsatz/profit questions
Sandbox: no network, filesystem, process, fetch, imports, or API key. Return JSON-serializable data; console logs are captured.
Examples:
async () => Object.entries(spec.info.domainIndex) .filter(([name, domain]) => [name, ...domain.tags].some(value => value.toLowerCase().includes('contact'))) .map(([name, domain]) => ({ name, ...domain }))
async () => { const op = spec.paths['/v1/voucherlist']?.get; return { summary: op?.summary, parameters: op?.parameters, notes: op?.notes, examples: op?.examples }; }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript async arrow function to search the Lexware API catalog |