Drawservby Findlan
v0.3.0

API reference

Every operation with its parameters, scope and responses, and every record with its fields, from the published contract.

Version
0.3.0
OpenAPI
3.1.0
Operations
20
Records
31
https://app.drawserv.com/api/v1

The Drawserv Lender API gives a lender programmatic access to its own construction-loan book: list projects, read draws and their evidence, read reviewed inspections and budgets, create projects, upload documents, and follow activity through an events ledger and signed webhooks.

Every operation in this document is served on production and on the sandbox. Keys are issued by Drawserv staff on request. Operations are added here as they are served. This document describes shapes, not data.

Authentication

Every request carries a key as a bearer token: Authorization: Bearer <key>. Production keys begin with dsk_live_ and sandbox keys with dsk_test_. A key acts for a lender, optionally narrowed to one department, and never for a person. Keys are issued by Drawserv staff, shown once, stored hashed, and can be revoked at any time. A key may also carry an IP allowlist and an expiry. Portal session tokens are not accepted.

A key's scopes set what it may do. Its lender and department set what it may see: a record outside them is answered as not_found. Every request is logged with its key, method, path, status, duration, address and request id, and staff can show a lender its log.

ScopeGrants
projects:readRead projects, parties, budgets and released risk reports
draws:readRead draws, their lines, approvals and lien waivers
inspections:readRead reviewed inspections and their progress lines
documents:readRead document metadata and fetch short-lived download links
events:readRead the events ledger
projects:writeCreate projects and update a pre-closing project's intake fields
documents:writeUpload documents to a project
webhooks:manageCreate, list and remove webhook endpoints

A new key starts with the read scopes. GET /me lists a key's scopes; one that no operation here needs is reserved for a future operation.

Reading

List responses are paged with page (from 1) and per_page (at most 200) and have the shape { data: [...], page: { number, size, total } }. Draws are listed by slice (scope: working, funded, declined or open-waivers) or by window (since, with until for history), never all at once. Projects accept updated_since. Every response carries an X-Request-Id header (quote it to support) and an X-Drawserv-Api-Version header (the version of this document the API was built from).

A POST may carry Idempotency-Key, a string of the caller's own choosing of up to 255 visible ASCII characters. A UUID is the usual choice. It makes a retry after a timeout or a 500 safe: for 24 hours the same key with the same body returns the stored response, marked Idempotent-Replayed: true. The same key with a different body, or a key used more than 24 hours ago, is refused with conflict. A refused POST stores nothing, so the key may carry the corrected request. Without the header every POST is a new request.

Field names follow the Drawserv data model and enum values are the application's own. Money is in dollars to the cent as JSON numbers, never cents. Staff-only columns appear in no schema: the API shows a lender exactly what its portal shows.

Errors

Every non-2xx response has the shape { "error": { "code", "message", "requestId" } }. The code is stable and the message may change.

CodeHTTPMeaning
unauthorized401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sent
forbidden_scope403The key lacks the scope the operation needs
not_found404No such record in the key's view, which excludes records outside its lender or department
validation_failed400A parameter or body field is missing or malformed
rate_limited429The key's request budget is spent; Retry-After says when to retry
conflict409The write conflicts with the record's current state, such as a project that is no longer pre-closing
internal500Something failed on our side; quote the requestId to support

Versioning

The version is in the path: /v1. Changes are additive. A field is never renamed or re-typed, an enum value never changes meaning, and a retired enum value stays declared while a row may still carry it. A breaking change ships as /v2 beside /v1, with twelve months' notice in the changelog.

Events and webhooks

The events ledger records each lender-visible moment as a type and ids only, so GET /events and a webhook delivery never disagree. The reader fetches the resource itself.

A webhook delivery is a POST whose body is a WebhookDelivery: the event, wrapped, with the attempt number. It carries three headers: Drawserv-Event (the type), Drawserv-Delivery (the delivery id) and Drawserv-Signature, of the form t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>"> under the endpoint's secret.

Answer with any 2xx within ten seconds. A redirect is not an acknowledgement. A failed delivery is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, then parked. A retry carries the same delivery id, so a receiver that stores ids is idempotent. An endpoint that fails ten deliveries in a row is paused (active: false).

EventWhen
project.createdA project was created on the lender's book
project.status_changedA project's intake stage moved (Draft, In Review, Approved, Declined)
project.activatedA project closed and went active
draw.submittedA draw left draft
draw.approvedA draw was approved for funding
draw.fundedA draw was marked funded
draw.declinedA draw was declined
inspection.reviewedAn inspection was reviewed and released
document.addedA document the lender may read was added
risk_report.releasedA risk report was released to the lender

To verify a delivery, recompute the HMAC over the raw bytes received, compare in constant time, and reject a t more than 300 seconds from your clock:

Node.js
const { createHmac, timingSafeEqual } = require('node:crypto');

// rawBody: the request body as the BYTES you received (a Buffer or string),
// never JSON.parse(...) re-serialized. secret: the endpoint's whsec_ secret.
function verifyDrawservSignature(header, rawBody, secret, toleranceSeconds = 300) {
  const parts = Object.fromEntries(String(header || '').split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
  const expected = createHmac('sha256', secret).update(`${t}.`).update(rawBody).digest('hex');
  const given = String(parts.v1 || '');
  return given.length === expected.length && timingSafeEqual(Buffer.from(given, 'utf8'), Buffer.from(expected, 'utf8'));
}

Sandbox

Sandbox keys work against staging.app.drawserv.com, a scrubbed copy of the book with a demo portfolio per lender. Nothing done there reaches production.

Account

The lender, the department and the key behind a bearer token.

GET/me

Who am I

The lender, the department and the key behind the bearer token. Needs no scope, so it is the first call to make with a new key.

Responses

  • 200The recorddata: Me
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Projects

Projects on the lender's book, their parties, budgets and risk reports.

GET/projectsscope projects:read

List projects

Every project in the key's view, newest first.

Parameters

lifecyclequery · string
Only projects in this lifecycleintakeactivecompleted
departmentquery · string
Only projects in this department (LenderDepartment.id)
updated_sincequery · string (date-time)
Only projects whose own record changed at or after this moment, which is Project.updatedAt. A draw funded or an inspection reviewed does not move that stamp, so a sync on this parameter alone misses money and progress changes. Follow GET /events for draw.funded and inspection.reviewed, or re-read the projects they name
pagequery · integer
The page to answer, from 1Default 1.
per_pagequery · integer
Rows per page, at most 200Default 50.

Responses

  • 200One page of resultsdata: array of Project · page: Page
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
POST/projectsscope projects:write

Create a project

Creates a project in the Draft stage of intake, as the portal's New project form does. Returns the project as the API reads it. Send an Idempotency-Key so a retry after a timeout never creates a second project.

Parameters

Idempotency-Keyheader · string
Optional. 1 to 255 visible ASCII characters of the caller's own choosing, unique per request. A UUID is the usual choice. For 24 hours the same key with the same body returns the stored response with Idempotent-Replayed: true. The same key with a different body, or a key used more than 24 hours ago, is refused with conflict. A refused POST stores nothing, so the key may carry the corrected request. Without the header every POST is a new request.

Body

application/json · ProjectCreate

Responses

  • 201Createddata: Project
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 409The write conflicts with the record's current state, such as a project that is no longer pre-closingError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/projects/{projectId}scope projects:read

Get a project

Parameters

projectIdRequiredpath · string (uuid)
A project's id

Responses

  • 200The recorddata: Project
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
PATCH/projects/{projectId}/intakescope projects:write

Update a project's intake fields

Updates the intake fields of a project that has not closed. Answers conflict once the project is active.

Parameters

projectIdRequiredpath · string (uuid)
A project's id

Body

application/json · IntakePatch

Responses

  • 200The recorddata: Project
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 409The write conflicts with the record's current state, such as a project that is no longer pre-closingError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/projects/{projectId}/partiesscope projects:read

List a project's parties

The borrower, the builder and any other party on the project, with their contact people. Parties cannot be changed through the API.

Parameters

projectIdRequiredpath · string (uuid)
A project's id

Responses

  • 200One page of resultsdata: array of Party · page: Page
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/projects/{projectId}/budgetscope projects:read

Get a project's budget

The budget lines, the funding sources and the totals, computed on the server.

Parameters

projectIdRequiredpath · string (uuid)
A project's id

Responses

  • 200The recorddata: Budget
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/risk-reports/{projectId}scope projects:read

Get a project's released risk report

The report PDF, available while the project's approval stands. Answers not_found before approval or after a later decision.

Parameters

projectIdRequiredpath · string (uuid)
A project's id

Responses

  • 200The recorddata: RiskReport
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Draws

Draw requests and their evidence.

GET/projects/{projectId}/drawsscope draws:read

List a project's draws

The project's draws, newest first, with the same slice and window parameters as GET /draws.

Parameters

projectIdRequiredpath · string (uuid)
A project's id
scopequery · string
One slice of the ledger. working is every draw not yet funded or declined, funded and declined are one outcome each, and open-waivers is every draw with a lien waiver still to signworkingfundeddeclinedopen-waivers
sincequery · string (date-time)
A window of the ledger: every open draw regardless of age, plus every draw with a stage stamp at or after this moment
untilquery · string (date-time)
With since: only draws with a stage stamp before this moment, for an older window of history
pagequery · integer
The page to answer, from 1Default 1.
per_pagequery · integer
Rows per page, at most 200Default 50.

Responses

  • 200One page of resultsdata: array of Draw · page: Page
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/drawsscope draws:read

List draws

Draws across the key's view, newest first. Request one slice (scope) or one window (since and until). The whole ledger is never returned at once.

Parameters

scopequery · string
One slice of the ledger. working is every draw not yet funded or declined, funded and declined are one outcome each, and open-waivers is every draw with a lien waiver still to signworkingfundeddeclinedopen-waivers
sincequery · string (date-time)
A window of the ledger: every open draw regardless of age, plus every draw with a stage stamp at or after this moment
untilquery · string (date-time)
With since: only draws with a stage stamp before this moment, for an older window of history
pagequery · integer
The page to answer, from 1Default 1.
per_pagequery · integer
Rows per page, at most 200Default 50.

Responses

  • 200One page of resultsdata: array of Draw · page: Page
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/draws/{drawId}scope draws:read

Get a draw

Parameters

drawIdRequiredpath · string (uuid)
A draw's id

Responses

  • 200The recorddata: Draw
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Inspections

Reviewed site visits.

GET/inspectionsscope inspections:read

List inspections

Reviewed inspections across the key's view, newest first.

Parameters

projectquery · string (uuid)
Only inspections on this project
sincequery · string (date-time)
Only inspections reviewed at or after this moment
pagequery · integer
The page to answer, from 1Default 1.
per_pagequery · integer
Rows per page, at most 200Default 50.

Responses

  • 200One page of resultsdata: array of Inspection · page: Page
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/inspections/{inspectionId}scope inspections:read

Get an inspection

Parameters

inspectionIdRequiredpath · string (uuid)
An inspection's id

Responses

  • 200The recorddata: Inspection
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Documents

Files the lender may read, and uploads to a project.

GET/projects/{projectId}/documentsscope documents:read

List a project's documents

The documents the lender may read on the project, newest first, each with a short-lived download link.

Parameters

projectIdRequiredpath · string (uuid)
A project's id
pagequery · integer
The page to answer, from 1Default 1.
per_pagequery · integer
Rows per page, at most 200Default 50.

Responses

  • 200One page of resultsdata: array of Document · page: Page
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
POST/projects/{projectId}/documentsscope documents:write

Request an upload slot

Declares the file and returns a signed URL to PUT its bytes to. The document is created once the bytes arrive. With an Idempotency-Key a retry answers the same slot.

Parameters

projectIdRequiredpath · string (uuid)
A project's id
Idempotency-Keyheader · string
Optional. 1 to 255 visible ASCII characters of the caller's own choosing, unique per request. A UUID is the usual choice. For 24 hours the same key with the same body returns the stored response with Idempotent-Replayed: true. The same key with a different body, or a key used more than 24 hours ago, is refused with conflict. A refused POST stores nothing, so the key may carry the corrected request. Without the header every POST is a new request.

Body

application/json · DocumentInput

Responses

  • 201Createddata: UploadSlot
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 409The write conflicts with the record's current state, such as a project that is no longer pre-closingError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
GET/documents/{documentId}scope documents:read

Get a document

The document's metadata and a fresh short-lived download link.

Parameters

documentIdRequiredpath · string
A document's id

Responses

  • 200The recorddata: Document
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Events

The ledger of lender-visible moments.

GET/eventsscope events:read

List events

The ledger of lender-visible moments, oldest first. Keep the last id and pass it as after on the next poll.

Parameters

sincequery · string (date-time)
Only events at or after this moment
afterquery · string
Only events after this event id, the cursor to keep between polls
typequery · string
Only events of this typeproject.createdproject.status_changedproject.activateddraw.submitteddraw.approveddraw.fundeddraw.declinedinspection.revieweddocument.addedrisk_report.released
pagequery · integer
The page to answer, from 1Default 1.
per_pagequery · integer
Rows per page, at most 200Default 50.

Responses

  • 200One page of resultsdata: array of Event · page: Page
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Webhook endpoints

The URLs that receive events. The delivery itself is described under Webhooks.

GET/webhooksscope webhooks:manage

List webhook endpoints

Responses

  • 200One page of resultsdata: array of WebhookEndpoint · page: Page
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
POST/webhooksscope webhooks:manage

Create a webhook endpoint

The response carries the signing secret once. Store it, as it is not shown again. A retry under the same Idempotency-Key within the window replays the same response, secret included.

Parameters

Idempotency-Keyheader · string
Optional. 1 to 255 visible ASCII characters of the caller's own choosing, unique per request. A UUID is the usual choice. For 24 hours the same key with the same body returns the stored response with Idempotent-Replayed: true. The same key with a different body, or a key used more than 24 hours ago, is refused with conflict. A refused POST stores nothing, so the key may carry the corrected request. Without the header every POST is a new request.

Body

application/json · WebhookEndpointInput

Responses

  • 201Createddata: WebhookEndpoint
  • 400A parameter or body field is missing or malformedError
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 409The write conflicts with the record's current state, such as a project that is no longer pre-closingError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError
DELETE/webhooks/{endpointId}scope webhooks:manage

Remove a webhook endpoint

Deliveries stop immediately. The endpoint remains in the ledger as removed.

Parameters

endpointIdRequiredpath · string
A webhook endpoint's id

Responses

  • 204Done
  • 401The key is missing, malformed, revoked, expired, for the other environment, or a session token was sentError
  • 403The key lacks the scope the operation needsError
  • 404No such record in the key's view, which excludes records outside its lender or departmentError
  • 429The key's request budget is spent; Retry-After says when to retryError
  • 500Something failed on our side; quote the requestId to supportError

Webhooks

What Drawserv sends to your own endpoint. You receive this request; you do not call it.

POSTyour endpoint

An event delivered to a webhook endpoint

POSTed to each active endpoint whose event list includes the type. Answer with a 2xx within ten seconds. Anything else is retried with backoff and then parked. Verify the Drawserv-Signature header over the raw body as shown under Events and webhooks. Drawserv-Event carries the type and Drawserv-Delivery the delivery id, which a retry repeats.

Parameters

Drawserv-SignatureRequiredheader · string
t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>"> under the endpoint's secret

Body

application/json · WebhookDelivery

Responses

  • 2XXAcknowledged

Schemas

Every record the API answers with or accepts, with its fields.

Page

Where a page sits in its list.

numberRequiredinteger
The page returned, from 1
sizeRequiredinteger
Rows per page as applied, at most 200
totalRequiredinteger
Rows in the whole set

Error

Every non-2xx response. The code is stable, the message is for a person, and the requestId identifies the request to support.

errorRequiredobject
codeRequiredstring
One of the closed set of codesunauthorizedforbidden_scopenot_foundvalidation_failedrate_limitedconflictinternal
messageRequiredstring
A sentence for a person. Wording may change
requestIdRequiredstring
The request's id, the same as the X-Request-Id header

Lender

The lender a key acts for.

idRequiredstring
The lender's id
nameRequiredstring
The lender's name
createdAtstring (date-time) or null
When the lender was added to Drawserv

LenderDepartment

A department of the lender. A key bound to a department sees only that department's projects. A key bound to the lender alone sees the whole book.

idRequiredstring
The department's id
nameRequiredstring
The department's name
createdAtstring (date-time) or null
When the department was added

ApiKey

The calling key. The secret itself is never returned.

nameRequiredstring
The display name given at creation
prefixRequiredstring
The six characters after dsk_live_ / dsk_test_ (what the staff console shows), to tell keys apart
environmentRequiredstring
live on production, test on the sandboxlivetest
scopesRequiredarray of string
The key's scopesprojects:readdraws:readinspections:readdocuments:readevents:readprojects:writedocuments:writewebhooks:manage
createdAtRequiredstring (date-time)
When the key was minted
expiresAtstring (date-time) or null
When the key expires; null for no expiry
lastUsedAtstring (date-time) or null
When the key was last used before this request

Me

The caller: the lender, the department the key is narrowed to, if any, and the key.

lenderRequiredLender
The lender the key acts for
departmentRequiredLenderDepartment or null or null
The department the key is narrowed to, or null for the whole book
keyRequiredApiKey
The calling key

ProjectRef

The project a draw or inspection belongs to: enough to name and link it.

idRequiredstring (uuid)
The project's id
addressRequiredstring or null
The one-line property address
borrowerstring or null
The borrower as named at intake
builderstring or null
The builder (general contractor) as named at intake
lifecycleStatusRequiredstring
The overall lifecycleintakeactivecompleted

Person

A contact person on a party.

namestring or null
Full name
emailstring or null
Email address
phonestring or null
Phone number, as entered

Project

One construction-loan project on the lender's book. lifecycleStatus is the overall lifecycle (intake, active, completed). intakeStage is the stage within intake and applies only while lifecycleStatus is intake. budgetTotal, fundedToDate, remainingToFund and constructionProgress are computed on the server from the budget, the funded draws and the reviewed inspections. Read them rather than summing lines.

idRequiredstring (uuid)
The project's id
lenderIdRequiredstring
The lender, always the key's lender
departmentIdstring or null
The department the project sits in; null when it belongs to the lender as a whole
addressstring or null
The one-line property address
streetAddressstring or null
Street address
citystring or null
City
statestring or null
US state, full name (Maine)
zipCodestring or null
ZIP code
lifecycleStatusRequiredstring
The overall lifecycle: intake, active or completedintakeactivecompleted
intakeStageRequiredstring
The stage within intake. Applies only while lifecycleStatus is intakeDraftIn ReviewApprovedDeclined
paymentStatusstring or null
The project fee's billing stateunpaidprocessingpaidwaived
constructionTypestring or null
The construction type. Modular is factory-built sections set on a permanent foundation to the residential code and financed like site-built; Manufactured is built to the federal HUD code on a permanent chassis. Older rows may still carry Modular / ManufacturedNew ConstructionRenovationModularCommercialManufacturedModular / Manufactured
sqftnumber or null
Total square footage
contractAmountnumber or null
The builder's contract or cost-plus estimate at intake, dollars
referenceCodestring or null
An external reference or loan number, when one was recorded
closingDatestring (date) or null
The loan's closing date, recorded when the project was activated; null for projects activated before it was tracked
expectedMaturityDatestring (date) or null
The loan's expected maturity date
submittedAtstring (date-time) or null
When the project was submitted for intake review
approvedAtstring (date-time) or null
When the project was approved at intake. The risk report is released from this moment
declinedAtstring (date-time) or null
When the project was declined at intake
completedAtstring (date-time) or null
When the project was completed
budgetConfirmedAtstring (date-time) or null
When staff confirmed the budget
budgetConfirmedTotalnumber or null
The working-budget total stamped when the budget was confirmed, dollars
projectFeeBillednumber or null
The project fee as billed, dollars; null until billed
latitudenumber or null
WGS-84 latitude of the property
longitudenumber or null
WGS-84 longitude of the property
createdAtRequiredstring (date-time)
When the project was created
updatedAtRequiredstring (date-time)
When the project record itself last changed: its address, stage, lifecycle, dates or the confirmed-budget stamp. A draw funded or an inspection reviewed moves the money figures but does not move this stamp. Follow GET /events for those moments
budgetTotalnumber or null
The sum of the budget lines, dollars; computed on the serverIn USD. Computed on the server.
fundedToDateRequirednumber
Funded to date across the budget lines, dollars; computed on the serverIn USD. Computed on the server.
remainingToFundnumber or null
budgetTotal minus fundedToDate, dollars; computed on the serverIn USD. Computed on the server.
constructionProgressnumber or null
Percent complete from 0 to 100, budget-weighted over each line's latest reviewed observation; null before a reviewed inspectionIn percent. Computed on the server.
borrowerstring or null
The borrower as named at intake. The parties carry the contact people
builderstring or null
The builder (general contractor) as named at intake
lenderRequiredLender
The lender, by name
departmentLenderDepartment or null or null
The department, by name, or null

Party

A party on the project, such as the borrower or the builder, with its contact people.

idRequiredstring
The party record's id
projectIdRequiredstring (uuid)
The project
stakeholderIdstring (uuid) or null
The party's cross-project identity, shared by the same builder on several projects; null while unlinked
roleRequiredstring
The party's role on the project. borrower and builder are the roles the app writes; other values are possibleborrowerbuilder
partyKindRequiredstring
company for a business, household for an individual or familycompanyhousehold
companyNamestring or null
The company name; empty for a household
contactNamestring or null
The primary contact's name
contactEmailstring or null
The primary contact's email
contactPhonestring or null
The primary contact's phone
createdAtRequiredstring (date-time)
When the party was added
peopleRequiredarray of Person
The contact people, primary first
stakeholderNamestring or null
The cross-project identity's canonical name; null while unlinked

BudgetLineItem

A line of the project's budget. fundedToDate is computed on the server.

idRequiredstring
The line's id
nameRequiredstring
The line's name
amountRequirednumber
The budgeted amount, dollars
epochFundedToDatenumber or null
Funded on the line before draws were recorded on the platform, dollars. A starting balance, not a running total
epochClosingDrawnumber or null
Settled on the line in the closing draw at intake, dollars. A starting balance, not a running total
sortOrderRequiredinteger
Display order
createdAtstring (date-time) or null
When the line was added
updatedAtstring (date-time) or null
When the line last changed
currentProgressnumber or null
The line's latest reviewed observation, 0 to 100; null until a reviewed inspection observes itIn percent. Computed on the server.
fundedToDateRequirednumber
Funded on the line to date, dollars: epochFundedToDate, epochClosingDraw and every funded draw's line against it

FundingSource

A source of the project's money: the loan or equity. fundedToDate is computed on the server.

idRequiredstring
The source's id
nameRequiredstring
The source's name
sourceTypeRequiredstring
loan or equityloanequity
amountRequirednumber
The committed amount, dollars
epochFundedToDatenumber or null
Drawn from the source before draws were recorded on the platform, dollars. A starting balance, not a running total
epochClosingDrawnumber or null
Drawn from the source in the closing draw at intake, dollars. A starting balance, not a running total
sortOrderRequiredinteger
Display order
createdAtstring (date-time) or null
When the source was added
updatedAtstring (date-time) or null
When the source last changed
fundedToDateRequirednumber
Drawn from the source to date, dollars: epochFundedToDate, epochClosingDraw and every funded draw's funding line against it

Budget

The project's budget: its lines, its funding sources and the totals computed from them.

projectIdRequiredstring (uuid)
The project
confirmedAtstring (date-time) or null
When staff confirmed the budget; null while it is still being assembled
linesRequiredarray of BudgetLineItem
The budget lines, in sort order
fundingSourcesRequiredarray of FundingSource
The funding sources, in sort order
totalsRequiredobject
budgetTotalnumber or null
The sum of the lines, dollars; null until the budget has lines
fundedToDateRequirednumber
Funded to date across the lines, dollars
remainingToFundnumber or null
budgetTotal minus fundedToDate, dollars; null until the budget has lines
constructionProgressRequirednumber or null
Percent complete from 0 to 100, from the latest reviewed inspection; null before one

Draw

A draw request on a project. status is the current stage (draft, pending, approved or funded, with declined as the exit); the stage timestamps record what was reached. number and requestedAmount are computed on the server. Revoked approvals and voided lien waivers are not returned. lienWaivers are the waivers requested on the draw; citedLienWaivers are signed waivers of other draws that staff attached to it as evidence, each naming its own draw in drawId.

idRequiredstring (uuid)
The draw's id
projectIdRequiredstring (uuid)
The project
statusRequiredstring
The current stage: draft, pending, approved or funded, with declined as the exit. Older rows may still carry inspection, reviewdraftpendingapprovedfundeddeclinedinspectionreview
drawTypeRequiredstring
prepaid for the builder's spend before the loan, closing for the disbursement at loan closing, standard for a regular post-closing requeststandardprepaidclosing
requestedByNamestring or null
Who requested the draw
createdAtRequiredstring (date-time)
When the draw was created (a draft)
submittedAtstring (date-time) or null
When it left draft, the request date
approvedAtstring (date-time) or null
When staff approved it
approvedByNamestring or null
Who approved it
declinedAtstring (date-time) or null
When it was declined
declinedByNamestring or null
Who declined it
fundedAtstring (date-time) or null
When it was marked funded
fundedByNamestring or null
Who marked it funded
fundedViastring or null
lender when the lender signed the funding, staff when staff recorded it; null until fundedlenderstaff
inspectionWaivedAtstring (date-time) or null
When staff waived the inspection requirement for this draw
inspectionWaivedByNamestring or null
Who waived it
lienWaiversWaivedAtstring (date-time) or null
When staff waived the lien-waiver requirement for this draw
lienWaiversWaivedByNamestring or null
Who waived it
approvalsWaivedAtstring (date-time) or null
When staff waived the party-approval requirement for this draw
approvalsWaivedByNamestring or null
Who waived it
updatedAtRequiredstring (date-time)
When the draw last changed
numberRequiredinteger
The draw's number within the project, counted from 1 in creation order; computed on the serverComputed on the server.
requestedAmountnumber or null
The sum of the lines, dollars; computed on the server and null while a draft has no linesIn USD. Computed on the server.
declineReasonstring or null
Why it was declined
fundedAmountnumber or null
The total signed for at funding, dollars; null unless the draw is funded
fundedNotestring or null
How the disbursement was confirmed, as written at funding
inspectionWaivedReasonstring or null
Why the inspection requirement was waived for this draw
lienWaiversWaivedReasonstring or null
Why the lien-waiver requirement was waived for this draw
approvalsWaivedReasonstring or null
Why the party-approval requirement was waived for this draw
projectRequiredProjectRef
The project, enough to name and route it
linesRequiredarray of DrawLineItem
The amounts requested per budget line
approvalsRequiredarray of DrawApproval
The party approvals on the draw, excluding revoked ones
lienWaiversRequiredarray of LienWaiver
The lien waivers requested on the draw, excluding voided ones
citedLienWaiversRequiredarray of LienWaiver
Signed lien waivers of other draws that staff attached to this draw as evidence; each names its own draw in drawId. Excluded from lienWaivers.
inspectionsRequiredarray of InspectionRef
The reviewed inspections that are evidence for the draw, its own and any cited as shared evidence

DrawLineItem

One draw's requested amount against one budget line. A budget line with no row here has nothing drawn on this draw.

idRequiredstring
The line's id
budgetLineIdRequiredstring
The budget line drawn against, a BudgetLineItem id
amountRequirednumber
The amount requested on the line, dollars

DrawApproval

A party's approval on a draw: awaiting, signed or waived. Revoked approvals and the signature itself are not returned.

idRequiredstring
The approval record's id
partyIdstring or null
The party asked, a Party id; null once that party was removed from the project
lastSentAtstring (date-time) or null
When the approval request was last emailed or texted to the party; null if never sent
approvedAtstring (date-time) or null
When the party signed
approvedAmountnumber or null
The amount the signer consented to, dollars; null on older records
waivedAtstring (date-time) or null
When staff waived this party's approval on the draw
waivedByNamestring or null
Who waived it
approverNamestring or null
The signer's name as typed at signing
signedViastring or null
app when signed in the portal, link when signed through an emailed linkapplink
stateRequiredstring
signed when approvedAt is set, waived when waivedAt is set, otherwise awaiting; computed on the serverComputed on the server.revokedsignedwaivedawaiting
partyNamestring or null
The party's name as recorded when asked
contactNamestring or null
The person asked
approvedByNamestring or null
Who signed, as recorded
waivedReasonstring or null
Why staff waived this party's approval

LienWaiver

A lien waiver requested from a payee on a draw: requested or executed. Voided waivers are not returned. drawId is the draw it was requested on — its own draw, which differs from the draw it is read under when it is cited there as evidence.

idRequiredstring
The waiver's id
drawIdstring (uuid) or null
The draw the waiver was requested on
stakeholderIdstring (uuid) or null
The payee's cross-project identity; null once that identity was deleted
amountRequirednumber
The amount waived, dollars
requestedAtRequiredstring (date-time)
When the waiver was requested
lastSentAtstring (date-time) or null
When the signature request was last emailed or texted to the payee; null if never sent
requestedByNamestring or null
Who requested it
signedAtstring (date-time) or null
When the payee signed
signedByNamestring or null
Who signed, as typed at signing
signedViastring or null
app when signed in the portal, link when signed through an emailed linkapplink
stateRequiredstring
executed when signedAt is set, otherwise requested; computed on the serverComputed on the server.voidedexecutedrequested
stakeholderNamestring or null
The payee's name as recorded

InspectionRef

An inspection cited as a draw's evidence: its id and stage timestamps.

idRequiredstring (uuid)
The inspection's id
statusRequiredstring
Always reviewed on a draw's evidence listpendingcompletedreviewed
completedAtstring (date-time) or null
When the visit was submitted
reviewedAtstring (date-time) or null
When staff reviewed and released it

Inspection

A site visit on a project, released to the lender once staff have reviewed it. The API returns reviewed inspections only. origin distinguishes an ordered inspector visit from a member's own site check.

idRequiredstring (uuid)
The inspection's id
projectIdRequiredstring (uuid)
The project
drawIdstring (uuid) or null
The draw it was ordered on; null for a periodic visit
statusRequiredstring
The current stage: pending, completed or reviewed. Always reviewed through the APIpendingcompletedreviewed
originRequiredstring
ordered for an inspector visit staff ordered, self for a site check a borrower or builder submittedorderedself
createdByNamestring or null
Who submitted a site check; null on an ordered visit
scheduledForstring (date) or null
The date the visit was scheduled for
completedAtstring (date-time) or null
When the visit was submitted, the inspection date
reviewedAtstring (date-time) or null
When staff reviewed and released it
reviewedByNamestring or null
Who reviewed it
createdAtRequiredstring (date-time)
When the visit was ordered or started
updatedAtstring (date-time) or null
When the inspection last changed
inspectorNamestring or null
The inspector, by name; null on a site check
summarystring or null
The inspector's field notes
requestedByNamestring or null
The staff member who requested the site check, if any
projectRequiredProjectRef
The project, enough to name and route it
drawNumberinteger or null
The number of the draw it was ordered on; null for a periodic visit
linkedDrawIdsRequiredarray of string (uuid)
Further draws citing this visit as shared evidence
progressRequiredarray of ProgressLineItem
What the visit observed per budget line, recorded at review

ProgressLineItem

What one inspection observed on one budget line: the percent complete recorded at review.

idRequiredstring
The observation's id
budgetLineIdRequiredstring
The budget line observed, a BudgetLineItem id
progressRequirednumber
Percent complete observed, 0 to 100
createdAtstring (date-time) or null
When the observation was recorded
updatedAtstring (date-time) or null
When it last changed

Document

A file the lender may read, such as a released risk report, a draw's documents, a reviewed inspection's photos or the lender's own uploads, with a short-lived download link.

idRequiredstring
The document's id
projectIdRequiredstring (uuid)
The project
drawIdstring (uuid) or null
The draw it is attached to, if any
inspectionIdstring (uuid) or null
The inspection it is attached to, if any
nameRequiredstring
The file name
mimestring or null
The MIME type
sizeinteger or null
Bytes
parseStatusstring or null
The text-extraction state; skipped for a photopendingparsingcompletedfailedskipped
uploadedByKindstring or null
Who uploaded it: staff, a portal member, the lender, an inspector, or the systemstaffmemberlenderinspectorsystemother
createdAtRequiredstring (date-time)
When it was uploaded
takenAtstring (date-time) or null
A photo's shutter time, which can be hours before the upload; null for a document
updatedAtstring (date-time) or null
When the record last changed
uploadedByNamestring or null
Who uploaded it, by name
urlstring (uri) or null
A signed download link, valid for a few minutes. Fetch the document again for a fresh one
urlExpiresAtstring (date-time) or null
When the link stops working

UploadSlot

Where to send a document's bytes. PUT the file to uploadUrl with the headers given. The document is created once the bytes arrive and is handled like a portal upload.

documentIdRequiredstring
The id the document will have
uploadUrlRequiredstring (uri)
A signed single-use URL to PUT the bytes to
methodRequiredstring
Always PUTPUT
headersRequiredobject
Headers to send with the PUT, as given
expiresAtRequiredstring (date-time)
When the slot expires if unused

RiskReport

The released risk report for a project, available while the project's approval stands.

projectIdRequiredstring (uuid)
The project
approvedAtRequiredstring (date-time)
The approval the report belongs to
urlRequiredstring (uri)
A signed download link, valid for a few minutes
urlExpiresAtRequiredstring (date-time)
When the link stops working

Event

One lender-visible moment on the book: the type and the ids only. GET /events and webhooks read the same ledger.

idRequiredstring
The event's id, which increases over time
typeRequiredstring
The event typeproject.createdproject.status_changedproject.activateddraw.submitteddraw.approveddraw.fundeddraw.declinedinspection.revieweddocument.addedrisk_report.released
projectIdRequiredstring (uuid)
The project
drawIdstring (uuid) or null
The draw, for a draw moment
inspectionIdstring (uuid) or null
The inspection, for inspection.reviewed
documentIdstring or null
The document, for document.added; null for every other type. For risk_report.released, GET /risk-reports/{projectId} is the resource
createdAtRequiredstring (date-time)
When it happened

WebhookEndpoint

A URL that receives events. The signing secret is returned once, at creation.

idRequiredstring
The endpoint's id
urlRequiredstring (uri)
An https URL on a public host
eventsRequiredarray of string
The event types deliveredproject.createdproject.status_changedproject.activateddraw.submitteddraw.approveddraw.fundeddraw.declinedinspection.revieweddocument.addedrisk_report.released
activeRequiredboolean
false once removed or paused after repeated failures
createdAtRequiredstring (date-time)
When it was created
secretstring or null
The HMAC signing secret, present on the creation response only

WebhookEndpointInput

The fields of a new endpoint.

urlRequiredstring (uri)
An https URL; private address ranges are refused
eventsarray of string or null
The event types to deliver; omit for allproject.createdproject.status_changedproject.activateddraw.submitteddraw.approveddraw.fundeddraw.declinedinspection.revieweddocument.addedrisk_report.released

WebhookDelivery

The body of a webhook POST: the event, wrapped. Verify the Drawserv-Signature header as described under Events and webhooks.

idRequiredstring
The delivery's id. One event may be delivered to several endpoints
eventRequiredEvent
The event
attemptRequiredinteger
Which attempt this is, from 1

ProjectCreate

A new project on the lender's book: the fields of the portal's New project form. The contract amount and the square footage are set inside the platform, so a body carrying contractAmount or sqft is refused. The lender, the stage and the lifecycle are set on the server. Upload documents after creating the project.

streetAddressRequiredstring
Street address of the property
cityRequiredstring
City
stateRequiredstring
US state, full name (Maine)
zipCodeRequiredstring
ZIP code
borrowerstring or null
The borrower's name
builderstring or null
The builder's name
constructionTypestring or null
The construction typeNew ConstructionRenovationModularCommercialManufacturedModular / Manufactured
departmentIdstring or null
The department to file the project under: the key's own, or the lender's only one. Optional. A key not bound to a department at a lender with two or more departments cannot create projects
partiesarray of PartyInput or null
The parties to add, at least the borrower and the builder

PartyInput

A party to add at creation.

roleRequiredstring
borrower or builder; another value is accepted and shown as givenborrowerbuilder
partyKindRequiredstring
company or householdcompanyhousehold
companyNamestring or null
The company name; empty for a household
contactNamestring or null
The primary contact's name
contactEmailstring or null
The primary contact's email
contactPhonestring or null
The primary contact's phone
peoplearray of Person or null
Further contact people

IntakePatch

Intake fields to change on a project that has not closed. Send only the fields to change; a field sent as null is cleared. The contract amount and the square footage are set inside the platform, so a body carrying contractAmount or sqft is refused. Answers conflict once the project is active.

streetAddressstring or null
Street address of the property
citystring or null
City
statestring or null
US state, full name
zipCodestring or null
ZIP code
borrowerstring or null
The borrower's name
builderstring or null
The builder's name
constructionTypestring or null
The construction typeNew ConstructionRenovationModularCommercialManufacturedModular / Manufactured

DocumentInput

The file to upload.

nameRequiredstring
The file name, with its extension
mimeRequiredstring
The MIME type
sizeRequiredinteger
Bytes
drawIdstring (uuid) or null
Attach to this draw

Wired into your systems. Ready for your auditors.

Your LOS, servicing and core on one scoped key, with every request logged and every webhook signed.