API Overview

Overview of the dscr.ai REST API surface and conventions.

The dscr.ai API is a RESTful JSON API served at https://pricingengine.pro/api. All endpoints require Bearer token authentication and return standard JSON responses.

Base URL

https://pricingengine.pro/api

Authentication

Include your API key in the Authorization header:

curl https://pricingengine.pro/api/deals \
  -H "Authorization: Bearer sk_live_..."

Request Format

All request bodies use JSON. Set the Content-Type: application/json header for POST, PUT, and PATCH requests.

Response Format

Responses follow a consistent envelope structure:

{
  "data": {
    "id": "deal_abc123",
    "property_address": "123 Main St",
    "loan_amount": 500000,
    "status": "underwriting"
  }
}

Pagination

List endpoints support cursor-based pagination:

PropertyTypeDescription
limitnumberMax records to return (1–100, default 25)
cursorstringCursor from previous response for next page
has_morebooleanWhether more records exist beyond this page
next_cursorstringCursor value to fetch the next page

HTTP Methods

Rate Limiting

Warning

API requests are rate-limited to prevent abuse. See Rate Limits for details on quotas and throttling behavior.

Example Response

GET /api/deals
3 records
idproperty_addressloan_amountstatuscreated_at
deal_abc123123 Main St500,000underwriting2025-01-15
deal_def456456 Oak Ave750,000funded2025-01-12
deal_ghi789789 Pine Rd320,000approved2025-01-10