API Reference
Interactive API reference powered by Scalar — explore all endpoints, try requests, and view schemas.
Interactive Explorer
The full interactive API reference is available at:
The reference is auto-generated from our OpenAPI 3.0 specification and includes:
- All 9 resource groups with request/response schemas
- Try-it-now functionality for testing requests
- Authentication configuration
- Example payloads
OpenAPI Specification
Download the raw OpenAPI spec for code generation or import into tools like Postman:
curl https://api.lend.works/v1/openapi.jsonYou can use this spec with:
- Postman — Import as a collection
- Insomnia — Import workspace from URL
- openapi-generator — Generate client SDKs in any language
- Swagger Editor — Visualize and edit the spec
Resource Groups
| Resource | Endpoints | Description |
|---|---|---|
| Leads | GET POST PATCH | Lead management and pipeline |
| Applications | GET | Loan application tracking |
| Lenders | GET | Lender network management |
| Funded Deals | GET | Closed/funded deal tracking |
| Commissions | GET | Commission transactions and metrics |
| Analytics | GET | KPIs, pipeline metrics, leaderboards |
| Automations | GET POST | Workflow automation management |
| Dialer | GET POST | Power dialer integration |
| Webhooks | GET POST | Event catalog and inbound webhooks |
Base URL
https://api.lend.works/v1Authentication
All endpoints (except /status and /webhooks/catalog) require Bearer token authentication:
Authorization: Bearer lw_live_xxxxxxxxxxxxxxxxSee the Authentication guide for details.
Response Envelope
All responses use a consistent envelope:
{
"data": {
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"type": "lead",
"attributes": { ... }
},
"meta": {
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}
}Error responses:
{
"errors": [
{
"code": "VALIDATION_ERROR",
"message": "Invalid email format",
"detail": { "field": "email" }
}
],
"meta": {
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}
}Response Headers
Every response includes:
| Header | Description |
|---|---|
LW-API-Version | API version date (e.g., 2025-01-15) |
X-Request-Id | Correlation ID for request tracing |
X-RateLimit-Limit | Rate limit ceiling |
X-RateLimit-Remaining | Remaining requests in window |
X-RateLimit-Reset | Window reset timestamp |