{
  "openapi": "3.1.0",
  "info": {
    "title": "Immobi.ai HTTP API",
    "version": "2026-10-03",
    "description": "HTTP JSON for the same tools as MCP. Available in Early Access; request it through the form at https://immobi.ai/#access. Paths use the placeholder https://<eure-instanz>/v1. This document lists the callable tools as of 3 October 2026."
  },
  "paths": {
    "/me": {
      "get": {
        "operationId": "whoami",
        "summary": "Returns the authenticated identity and only its own tenants, each with a role: readonly, member, admin or owner.",
        "description": "Returns the authenticated identity and only its own tenants, each with a role: readonly, member, admin or owner. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "whoami",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": []
      }
    },
    "/tenant": {
      "get": {
        "operationId": "tenant_overview",
        "summary": "Tenant metadata plus row counts for properties, units, leases, parties, bank transactions, costs, rent expectations, document links and sync runs.",
        "description": "Tenant metadata plus row counts for properties, units, leases, parties, bank transactions, costs, rent expectations, document links and sync runs. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "tenant_overview",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/sync-runs": {
      "get": {
        "operationId": "sync_status",
        "summary": "Latest sync runs for the tenant: source, status and rows written.",
        "description": "Latest sync runs for the tenant: source, status and rows written. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "sync_status",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 20
            }
          }
        ]
      }
    },
    "/properties": {
      "get": {
        "operationId": "list_properties",
        "summary": "Lists properties for the tenant.",
        "description": "Lists properties for the tenant. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_properties",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional status filter.",
              "description_de": "Optionaler Statusfilter.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/properties/{property_id}": {
      "get": {
        "operationId": "get_property",
        "summary": "Reads one property by id.",
        "description": "Reads one property by id. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "get_property",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Property id.",
              "description_de": "ID des Objekts."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/units": {
      "get": {
        "operationId": "list_units",
        "summary": "Lists units, optionally filtered by property.",
        "description": "Lists units, optionally filtered by property. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_units",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "property_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Only units of this property.",
              "description_de": "Optional. Nur Einheiten dieses Objekts.",
              "default": null
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional status filter.",
              "description_de": "Optionaler Statusfilter.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/units/{unit_id}": {
      "get": {
        "operationId": "get_unit",
        "summary": "Reads one unit by id.",
        "description": "Reads one unit by id. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "get_unit",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "unit_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unit id.",
              "description_de": "ID der Einheit."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/leases": {
      "get": {
        "operationId": "list_leases",
        "summary": "Lists leases, optionally by unit, party or status.",
        "description": "Lists leases, optionally by unit, party or status. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_leases",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "unit_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional unit filter.",
              "description_de": "Optionaler Einheitenfilter.",
              "default": null
            }
          },
          {
            "name": "party_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional party filter.",
              "description_de": "Optionaler Parteienfilter.",
              "default": null
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional status filter.",
              "description_de": "Optionaler Statusfilter.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/leases/{lease_id}": {
      "get": {
        "operationId": "get_lease",
        "summary": "Reads one lease by id.",
        "description": "Reads one lease by id. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "get_lease",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "lease_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Lease id.",
              "description_de": "ID des Mietvertrags."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/parties": {
      "get": {
        "operationId": "list_parties",
        "summary": "Lists parties. kind filters by tenant (renter), landlord or vendor.",
        "description": "Lists parties. kind filters by tenant (renter), landlord or vendor. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_parties",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional: tenant, landlord or vendor.",
              "description_de": "Optional: tenant, landlord oder vendor.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/parties/search": {
      "get": {
        "operationId": "search_parties",
        "summary": "Free-text search over display name and email.",
        "description": "Free-text search over display name and email. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "search_parties",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Search text.",
              "description_de": "Suchtext."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/rent-expectations": {
      "get": {
        "operationId": "list_rent_expectations",
        "summary": "Lists rent expectations. status is open, partial, paid or waived. Date filters are YYYY-MM-DD.",
        "description": "Lists rent expectations. status is open, partial, paid or waived. Date filters are YYYY-MM-DD. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_rent_expectations",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "lease_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional lease filter.",
              "description_de": "Optionaler Vertragsfilter.",
              "default": null
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional: open, partial, paid or waived.",
              "description_de": "Optional: open, partial, paid oder waived.",
              "default": null
            }
          },
          {
            "name": "due_month_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Due month from, YYYY-MM-DD.",
              "description_de": "Fälligkeit von, YYYY-MM-DD.",
              "default": null
            }
          },
          {
            "name": "due_month_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Due month to, YYYY-MM-DD.",
              "description_de": "Fälligkeit bis, YYYY-MM-DD.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/bank/sync-status": {
      "get": {
        "operationId": "bank_sync_status",
        "summary": "Bank sync health: row count, first and last transaction date, counts by state, last sync time.",
        "description": "Bank sync health: row count, first and last transaction date, counts by state, last sync time. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "bank_sync_status",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/bank/transactions": {
      "get": {
        "operationId": "list_bank_transactions",
        "summary": "Lists bank transactions. Date filters are YYYY-MM-DD. For the unassigned queue, set state to UNASSIGNED.",
        "description": "Lists bank transactions. Date filters are YYYY-MM-DD. For the unassigned queue, set state to UNASSIGNED. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_bank_transactions",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Transaction date from, YYYY-MM-DD.",
              "description_de": "Buchungsdatum von, YYYY-MM-DD.",
              "default": null
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Transaction date to, YYYY-MM-DD.",
              "description_de": "Buchungsdatum bis, YYYY-MM-DD.",
              "default": null
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "ALL, UNASSIGNED, ASSIGNED, AUTOASSIGNED, SUGGESTED, IGNORED or DISMISSED.",
              "description_de": "ALL, UNASSIGNED, ASSIGNED, AUTOASSIGNED, SUGGESTED, IGNORED oder DISMISSED.",
              "default": "ALL"
            }
          },
          {
            "name": "sender_name",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional sender-name filter.",
              "description_de": "Optionaler Filter auf den Absender.",
              "default": null
            }
          },
          {
            "name": "min_amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "number",
                "null"
              ],
              "description": "Minimum amount.",
              "description_de": "Mindestbetrag.",
              "default": null
            }
          },
          {
            "name": "max_amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "number",
                "null"
              ],
              "description": "Maximum amount.",
              "description_de": "Höchstbetrag.",
              "default": null
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/bank/transactions/{id}": {
      "get": {
        "operationId": "get_bank_transaction",
        "summary": "Reads one bank transaction by id.",
        "description": "Reads one bank transaction by id. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "get_bank_transaction",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Transaction id.",
              "description_de": "ID des Umsatzes."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/bank/transactions/search": {
      "get": {
        "operationId": "search_bank_transactions",
        "summary": "Free-text search over sender name and subject.",
        "description": "Free-text search over sender name and subject. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "search_bank_transactions",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Search text.",
              "description_de": "Suchtext."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/costs": {
      "get": {
        "operationId": "list_costs",
        "summary": "Lists costs, optionally by property and year.",
        "description": "Lists costs, optionally by property and year. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_costs",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "property_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional property filter.",
              "description_de": "Optionaler Objektfilter.",
              "default": null
            }
          },
          {
            "name": "period_year",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Optional. Period year.",
              "description_de": "Optional. Abrechnungsjahr.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/costs/search": {
      "get": {
        "operationId": "search_costs",
        "summary": "Free-text search over the cost description.",
        "description": "Free-text search over the cost description. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "search_costs",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Search text.",
              "description_de": "Suchtext."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/document-links": {
      "get": {
        "operationId": "list_document_links",
        "summary": "Lists document links, filterable by property, unit, lease, party or cost.",
        "description": "Lists document links, filterable by property, unit, lease, party or cost. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_document_links",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "property_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional property filter.",
              "description_de": "Optionaler Objektfilter.",
              "default": null
            }
          },
          {
            "name": "unit_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional unit filter.",
              "description_de": "Optionaler Einheitenfilter.",
              "default": null
            }
          },
          {
            "name": "lease_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional lease filter.",
              "description_de": "Optionaler Vertragsfilter.",
              "default": null
            }
          },
          {
            "name": "party_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional party filter.",
              "description_de": "Optionaler Parteienfilter.",
              "default": null
            }
          },
          {
            "name": "cost_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional cost filter.",
              "description_de": "Optionaler Kostenfilter.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/nk-statements": {
      "get": {
        "operationId": "list_nk_statements",
        "summary": "Lists operating-cost statements. kind is original, correction or import. status is draft, review, final, sent or void. The filter approved is an alias of final.",
        "description": "Lists operating-cost statements. kind is original, correction or import. status is draft, review, final, sent or void. The filter approved is an alias of final. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "list_nk_statements",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          },
          {
            "name": "property_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional property filter.",
              "description_de": "Optionaler Objektfilter.",
              "default": null
            }
          },
          {
            "name": "unit_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional unit filter.",
              "description_de": "Optionaler Einheitenfilter.",
              "default": null
            }
          },
          {
            "name": "period_year",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Optional. Year of the statement period.",
              "description_de": "Optional. Jahr des Abrechnungszeitraums.",
              "default": null
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional: original, correction or import.",
              "description_de": "Optional: original, correction oder import.",
              "default": null
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional: draft, review, final, sent, void. approved means final.",
              "description_de": "Optional: draft, review, final, sent, void. approved bedeutet final.",
              "default": null
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of rows.",
              "description_de": "Höchstens so viele Einträge.",
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of rows to skip.",
              "description_de": "So viele Einträge werden übersprungen.",
              "default": 0
            }
          }
        ]
      }
    },
    "/nk-statements/{statement_id}": {
      "get": {
        "operationId": "get_nk_statement",
        "summary": "Reads one statement with header and lines. A balance above 0 is an additional payment, below 0 a credit.",
        "description": "Reads one statement with header and lines. A balance above 0 is an additional payment, below 0 a credit. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "get_nk_statement",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "parameters": [
          {
            "name": "statement_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Statement id.",
              "description_de": "ID der Abrechnung."
            }
          },
          {
            "name": "tenant_slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
              "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
              "default": null
            }
          }
        ]
      }
    },
    "/nk-statements/rebuild": {
      "post": {
        "operationId": "rebuild_nk_correction",
        "summary": "Rebuilds a correction. correction_delta is balance minus prior_balance. Identify it by statement_id, or by unit_id plus period_year. dry_run defaults to true. A write happens only when dry_run is false, status is review and the role is member. final, sent and void stay unchanged. Nothing is sent.",
        "description": "Rebuilds a correction. correction_delta is balance minus prior_balance. Identify it by statement_id, or by unit_id plus period_year. dry_run defaults to true. A write happens only when dry_run is false, status is review and the role is member. final, sent and void stay unchanged. Nothing is sent. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "rebuild_nk_correction",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "statement_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Correction id. Or pass unit_id and period_year.",
                    "description_de": "ID der Korrektur. Alternativ unit_id und period_year.",
                    "default": null
                  },
                  "unit_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Unit id, together with period_year.",
                    "description_de": "ID der Einheit, zusammen mit period_year.",
                    "default": null
                  },
                  "period_year": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Statement year, together with unit_id.",
                    "description_de": "Abrechnungsjahr, zusammen mit unit_id.",
                    "default": null
                  },
                  "dry_run": {
                    "type": "boolean",
                    "description": "Defaults to true. When true, nothing is written.",
                    "description_de": "Standard true. Bei true wird nichts geschrieben.",
                    "default": true
                  },
                  "tenant_slug": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
                    "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
                    "default": null
                  }
                },
                "required": []
              }
            }
          }
        }
      }
    },
    "/nk-statements/{statement_id}/approve": {
      "post": {
        "operationId": "approve_nk_statement",
        "summary": "Approval from review to final. target_status approved is stored as final. dry_run defaults to true and approve to false, so nothing is written. A write happens only when dry_run is false, approve is true and the role is owner. Status is never set to sent. Approval is not delivery.",
        "description": "Approval from review to final. target_status approved is stored as final. dry_run defaults to true and approve to false, so nothing is written. A write happens only when dry_run is false, approve is true and the role is owner. Status is never set to sent. Approval is not delivery. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "approve_nk_statement",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "statement_id": {
                    "type": "string",
                    "description": "Statement id.",
                    "description_de": "ID der Abrechnung."
                  },
                  "approve": {
                    "type": "boolean",
                    "description": "Must be true before an approval can be written.",
                    "description_de": "Muss true sein, damit überhaupt freigegeben werden kann.",
                    "default": false
                  },
                  "dry_run": {
                    "type": "boolean",
                    "description": "Defaults to true. When true, nothing is written.",
                    "description_de": "Standard true. Bei true wird nichts geschrieben.",
                    "default": true
                  },
                  "target_status": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Target status. Defaults to final. approved is an alias.",
                    "description_de": "Zielstatus. Standard final. approved ist ein Alias.",
                    "default": "final"
                  },
                  "tenant_slug": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
                    "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
                    "default": null
                  }
                },
                "required": [
                  "statement_id"
                ]
              }
            }
          }
        }
      }
    },
    "/nk-statements/{statement_id}/pdf": {
      "post": {
        "operationId": "finalize_nk_pdf",
        "summary": "Builds the PDF without the DRAFT watermark when status is final or sent. dry_run defaults to true. preview_final shows the layout without changing status. write_document_link can store a link in your own archive. Nothing is sent.",
        "description": "Builds the PDF without the DRAFT watermark when status is final or sent. dry_run defaults to true. preview_final shows the layout without changing status. write_document_link can store a link in your own archive. Nothing is sent. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "finalize_nk_pdf",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "statement_id": {
                    "type": "string",
                    "description": "Statement id.",
                    "description_de": "ID der Abrechnung."
                  },
                  "dry_run": {
                    "type": "boolean",
                    "description": "Defaults to true. When true, nothing is written.",
                    "description_de": "Standard true. Bei true wird nichts geschrieben.",
                    "default": true
                  },
                  "preview_final": {
                    "type": "boolean",
                    "description": "Layout for review, without changing status.",
                    "description_de": "Layout zur Prüfung, ohne den Status zu ändern.",
                    "default": false
                  },
                  "write_document_link": {
                    "type": "boolean",
                    "description": "Optionally write a document link.",
                    "description_de": "Optional einen Dokumentverweis schreiben.",
                    "default": false
                  },
                  "include_beilagen_stub": {
                    "type": "boolean",
                    "description": "Include a placeholder for attachments.",
                    "description_de": "Platzhalter für Anlagen mit ausgeben.",
                    "default": true
                  },
                  "tenant_slug": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
                    "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
                    "default": null
                  }
                },
                "required": [
                  "statement_id"
                ]
              }
            }
          }
        }
      }
    },
    "/nk-statements/{statement_id}/dispatch-checklist": {
      "post": {
        "operationId": "prepare_nk_versand",
        "summary": "Preparation only: checks the list for approval, final PDF, filing, delivery path and status sent. The tool is hard-blocked. execute_send does not lift the block. Nothing is sent and status is not set to sent.",
        "description": "Preparation only: checks the list for approval, final PDF, filing, delivery path and status sent. The tool is hard-blocked. execute_send does not lift the block. Nothing is sent and status is not set to sent. Same tool over HTTP JSON, in Early Access. Placeholder: https://<eure-instanz>/v1.",
        "x-mcp-tool": "prepare_nk_versand",
        "responses": {
          "200": {
            "description": "Illustrative. Not a live response contract."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "statement_id": {
                    "type": "string",
                    "description": "Statement id.",
                    "description_de": "ID der Abrechnung."
                  },
                  "execute_send": {
                    "type": "boolean",
                    "description": "Ignored. Delivery stays blocked.",
                    "description_de": "Wird ignoriert. Der Versand bleibt blockiert.",
                    "default": false
                  },
                  "dry_run": {
                    "type": "boolean",
                    "description": "Defaults to true. When true, nothing is written.",
                    "description_de": "Standard true. Bei true wird nichts geschrieben.",
                    "default": true
                  },
                  "tenant_slug": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.",
                    "description_de": "Optional. Wählt einen Mandanten, den whoami für diesen Zugang nennt. Jeder andere Mandant wird abgelehnt.",
                    "default": null
                  }
                },
                "required": [
                  "statement_id"
                ]
              }
            }
          }
        }
      }
    }
  }
}
