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:
| Property | Type | Description |
|---|---|---|
limit | number | Max records to return (1–100, default 25) |
cursor | string | Cursor from previous response for next page |
has_more | boolean | Whether more records exist beyond this page |
next_cursor | string | Cursor 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
| id | property_address | loan_amount | status | created_at |
|---|---|---|---|---|
| deal_abc123 | 123 Main St | 500,000 | underwriting | 2025-01-15 |
| deal_def456 | 456 Oak Ave | 750,000 | funded | 2025-01-12 |
| deal_ghi789 | 789 Pine Rd | 320,000 | approved | 2025-01-10 |