API Integration

Build custom integrations with the dscr.ai API.

The dscr.ai API enables deep integrations with your existing systems — CRMs, loan origination systems, accounting platforms, and more.

Integration Patterns

CRM Sync

Push deal data to Salesforce, HubSpot, or custom CRMs in real time.

Document Automation

Trigger document generation from external workflows and pipelines.

Rate Feed Integration

Ingest pricing updates from third-party rate providers automatically.

Reporting & Analytics

Pull deal and portfolio data into BI tools for custom dashboards.

Quick Start

import { DscrClient } from "@dscr/sdk";

const client = new DscrClient({
  apiKey: process.env.DSCR_API_KEY,
});

const { data: deals } = await client.deals.list({
  limit: 25,
  stage: "underwriting",
});

Install the SDK:

npm install @dscr/sdk

Example: Create a Deal

Authenticate

Initialize the SDK with your API key, or set the Authorization header for REST calls.

const client = new DscrClient({
  apiKey: process.env.DSCR_API_KEY,
});

Create the deal

const deal = await client.deals.create({
  property_address: "123 Main St, Austin, TX 78701",
  loan_amount: 500000,
  property_value: 650000,
  loan_program: "bridge_30yr",
});
await client.deals.linkBorrower(deal.id, {
  first_name: "Jane",
  last_name: "Smith",
  email: "jane@example.com",
  ssn_last_four: "1234",
});

Upload documents

await client.documents.upload(deal.id, {
  file: appraisalPdf,
  category: "appraisal",
  name: "Property Appraisal - 123 Main St",
});

Example Response

POST /api/deals
1 record
idproperty_addressloan_amountproperty_valuestatuscreated_at
deal_new123123 Main St, Austin, TX 78701500,000650,000draft2025-03-28T14:30:00Z

Webhook Integration

Combine API calls with webhooks for event-driven architectures. React to deal changes, document uploads, and task completions in real time.

SDKs & Tools