AI Automation and Integrations

AI, API and automation

LeaseCommand reads your lease documents, extracts the terms as structured data, and scores its own confidence on every field. Beyond that, the platform is open: a documented REST API across 46 endpoints, an MCP server that connects AI assistants directly to a LeaseCommand organization, signed webhooks for event-driven integrations, and journal entry sync into the accounting system your finance team already runs.

From document to ledger · REST API · MCP server · Webhooks · FAQ

From document to ledger

Lease administration breaks down in two places: getting terms out of PDFs, and getting the resulting numbers into the general ledger. LeaseCommand automates both ends and shows its work in between.

The four stages
StageWhat happensWhat you do
UploadLease documents are accepted as PDF, Word files or scanned images.Drag and drop.
ExtractThe extraction engine reads the document and returns structured fields rather than raw text.Nothing — it runs on upload.
ValidateEach field arrives with a confidence score and a link to where it was found in the source.Review the low-confidence fields; edit inline where needed.
AcceptConfirmed data populates the lease record, ready for ASC 842 treatment.One click.

Document extraction

More than 200 fields are extracted per lease, covering the terms that drive both administration and accounting.

Intelligent OCRHandles PDFs, Word files and scanned images, including documents that were never born digital.
200+ fieldsParties and addresses, term dates and options, rent amounts and escalations, security deposits, operating expenses, insurance requirements, and more.
Confidence scoringEvery field returns high, medium or low confidence, so review effort lands where it is actually needed instead of everywhere.
Interactive validationClick any extracted field to highlight where it came from in the original document. Edit inline and save straight to the lease record.
AI EnrichAlready hold partial lease data? Enrich fills the gaps from uploaded documents instead of starting the record again.
Source stays attachedThe original document sits alongside the extracted record, so an auditor can trace any figure back to the lease it came from.

How the confidence scores are meant to be used

Review effort by confidence level
ScoreWhat it meansSuggested handling
HighThe engine is certain of the value it found.Minimal review.
MediumThe value was found but the context was less clear.Quick verification against the source.
LowThe value is uncertain or the field was ambiguous in the document.Manual review before acceptance.

Accounting system sync

Journal Entry Sync integrates with Oracle NetSuite, Sage Intacct, Restaurant365 and QuickBooks Online. ASC 842 entries generated from the lease record reach the general ledger without a manual re-keying step, which is where reconciliation differences usually originate.

Because the entries derive from the same lease record the extraction populated, the schedule in LeaseCommand and the balances in the ledger trace to one source rather than two.

Identity and access

Sign-in runs through Copliancy, Google, or Enterprise SSO. Tenants and auditors get their own scoped portals rather than a shared login, so an auditor reviewing one entity does not see the rest of the portfolio.

The LeaseCommand REST API

Every record LeaseCommand holds — sites, leases, contracts, CAM reconciliations, approvals, contacts, counterparties, critical dates, expenses and accounting output — is reachable through a documented REST API. It is published as an OpenAPI 3.0 specification, so client libraries, Postman collections and integration scaffolding can be generated rather than hand-written.

Version
1.2.0
Base URL
https://app.leasecommand.com/api/external/v1
OpenAPI specification
/api/external/v1/docs/openapi.json
Endpoints
46
Authentication
API key as a bearer token, or OAuth 2.0 client credentials
Rate limit
60 requests per minute per key by default, configurable per key. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
Pagination
?page=1&limit=50, up to 100 records per page, with page, limit, total and totalPages returned in a pagination object

What the endpoints cover

  • Sites and leases — the portfolio itself: locations, lease records, term dates, options, rent and escalation schedules.
  • Contracts — non-lease agreements, tracked obligations and counterparties.
  • Critical dates — renewals, termination windows, notice deadlines and escalation triggers, queryable by date range.
  • Accounting — ASC 842 output: amortization schedules, journal entries and portfolio-level figures.
  • CAM reconciliations — common area maintenance statements and the reconciliation detail behind them.
  • Approvals and expenses — the approval workflow and expense records attached to leases.
  • Contacts — contact records and their assignment to sites by role, including creating a contact and assigning it in a single call.
  • AI import — submit a document to the extraction engine and retrieve the extracted field set with its confidence scores.
  • Schema and summary — field definitions and aggregate figures, so a client can discover the data model rather than assume it.

Authentication

Two options. An API key is issued in the application under Settings, and is sent as a bearer token on each request. For server-to-server integrations, OAuth 2.0 client credentials are supported instead. Keys are scoped to the organization that issued them and inherit the permissions of that organization; an API key cannot reach data a signed-in user of the same organization could not.

The OAuth option is the standard client credentials grant: POST /api/oauth/token with grant_type=client_credentials returns a bearer token that expires after one hour. Permissions are expressed as 14 named scopes with read and write held separately — eight read scopes from leases:read to accounting:read, and six write scopes ending at ai-import:write — and a write scope requires the matching read scope to be enabled alongside it. API keys can also carry an optional expiry date; a request made with an expired key returns a 401 that says so, rather than failing quietly.

Every endpoint is listed with its method and purpose on the LeaseCommand API reference, and the interactive documentation carries the request and response schemas behind each one.

API questions go to support@leasecommand.com.

The LeaseCommand MCP server

LeaseCommand runs a Model Context Protocol server, so an MCP-compatible AI assistant can be connected to a LeaseCommand organization and asked about the portfolio directly — which leases expire this quarter, what notice deadlines are approaching, what the ASC 842 position looks like — without anyone exporting a spreadsheet first.

Access is scoped to your organization and to the permissions of the account that authorized it, platform administration is never exposed, and every write is confirmed in two steps before it commits. Read and write are separate scopes and both start switched off.

Setting it up: the full walkthrough — authentication options, what the assistant can and cannot reach, and the confirmation model — is on the dedicated guide: Connect AI assistants to LeaseCommand.

Webhooks

For integrations that need to react rather than poll, LeaseCommand emits 19 webhook events. Each is delivered to an HTTPS destination you register, signed with HMAC-SHA256 in an X-Webhook-Signature header so the receiving system can verify the payload came from LeaseCommand and was not altered in transit.

Events

  • Portfolio records — created, updated and deleted events for leases, contracts, sites and counterparties.
  • Money movement — expense created, payment received, invoice created.
  • Accounting — journal entry created, posted and approved, plus amortization schedule generated.

Plain HTTP destinations are not accepted. Signature verification is the receiving system’s responsibility and the header is present on every delivery.

Four headers accompany each delivery, not just the signature: X-Webhook-Signature, X-Webhook-Id identifying the webhook configuration that sent it, X-Delivery-Id unique to the attempt, and X-Retry-Attempt on retries only. Together they are enough to build a receiver that is safe to call twice with the same event. A non-2xx response triggers automatic retries with exponential back-off; any 2xx acknowledges the delivery. Lease, site and contract payloads arrive with normalized top-level fields alongside a _raw object holding the complete record, so a consumer can read the common fields without mapping internal column names.

Frequently Asked Questions

What file types can LeaseCommand extract from?

PDF, Word documents and scanned images. Scans are handled by OCR, so leases that were only ever paper can be processed alongside digital originals.

How many fields does extraction cover?

More than 200, including parties and addresses, term dates and options, rent amounts and escalations, security deposits, operating expenses and insurance requirements.

How do I know whether to trust an extracted value?

Each field carries a high, medium or low confidence score. Clicking the field highlights the passage in the source document it was taken from, so a value can be checked against the lease rather than accepted on trust.

Which accounting systems does LeaseCommand sync with?

Journal Entry Sync integrates with Oracle NetSuite, Sage Intacct, Restaurant365 and QuickBooks Online.

We already have lease data in a spreadsheet. Does extraction help?

Yes. AI Enrich fills missing fields on existing records from uploaded documents, so a partial portfolio can be completed without re-entering what you already hold.

How do tenants and auditors get access?

Through separate Tenant and Auditor portals, each scoped to what that party needs to see. Internal users sign in through Copliancy, Google or Enterprise SSO.

Does LeaseCommand have a public API?

Yes. LeaseCommand publishes a REST API at https://app.leasecommand.com/api/external/v1 with 46 endpoints and a full OpenAPI 3.0 specification. Authentication is by API key as a bearer token or OAuth 2.0 client credentials, rate limited to 60 requests per minute per key.

Does LeaseCommand work with AI assistants?

LeaseCommand runs a Model Context Protocol (MCP) server at https://app.leasecommand.com/api/mcp, so any MCP-compatible AI assistant can be connected to a LeaseCommand organization. Read and write access are separate scopes, both off by default, and every write requires a two-step confirmation before it commits.

Can I get notified when a lease or journal entry changes?

Yes. LeaseCommand emits 19 webhook events covering lease, contract, site and counterparty changes, expenses and payments, and journal entry posting. Each is delivered over HTTPS and signed with HMAC-SHA256 so the receiving system can verify it.

More on integrations

For the full picture — the Copliancy product family, accounting and ERP connections, the REST API and webhooks — see LeaseCommand integrations.