API v1

FundSuite Partner API

Send deals from your own systems with the client business, the client users who will sign in, and their documents. Everything you push appears in your FundSuite portal right away.

Base URL: https://app.datafunding.ai/api/public

  1. 1. Create a Sandbox key in Org Settings → API keys.
  2. 2. POST a deal with clients, then upload documents.
  3. 3. Switch to a Live key when your test deals look right.

Authentication

Send your key as a bearer token on every request. Keys are shown once, stored only as a fingerprint, and can be revoked or set to expire. Call the API from your server only — never from a browser or app.

curl https://app.datafunding.ai/api/public/v1/deals -H "Authorization: Bearer fsk_…"

Each key carries permissions: deals:read, deals:write, documents:write, clients:write.

Sandbox and Live

Sandbox keys create demo deals that stay out of live views and never reach funders as real work. A key only sees deals of its own mode, so a Sandbox key cannot read Live deals.

Safe retries

Add an Idempotency-Key header (8–100 characters) to any POST. Repeating it within 24 hours returns the first result with Idempotent-Replayed: true; reusing it with a different body returns 409. Deals are also de-duplicated by external_ref, and identical files by checksum.

Errors

{ "error": { "code": "invalid_request", "message": "…", "field_errors": [ { "path": "email", "message": "Invalid email" } ] }, "request_id": "req_…" }
CodeStatusMeaning
invalid_api_key401Missing, revoked or expired key.
insufficient_scope403The key lacks the permission this endpoint needs.
deal_not_found404Not your deal, wrong mode (sandbox vs live) or unknown id.
invalid_request400See field_errors for each problem.
idempotency_conflict409Idempotency-Key reused with a different body.
rate_limited429Over 60 requests a minute; wait Retry-After seconds.
client_create_failed422The client account could not be created.
existing_account409No setup link for this person; send an invite email instead.
application_prefill_failed422Deal created, but application answers were not saved.
internal_error500Retry with the same Idempotency-Key.

Every response has an X-Request-Id header — include it when asking for help.

Webhooks

Add an https address in Org Settings → Webhooks (Owners and Admins). Sandbox webhooks only hear about Sandbox deals; Live only about Live deals. Each call is a JSON POST:

{
  "id": "evt uuid (same on retries)",
  "type": "deal.stage_changed",
  "created_at": "2026-12-05T18:00:00Z",
  "mode": "live",
  "data": { "deal_id": "uuid", "reference": "OFP-001043", "stage": "approved", "from_stage": "app_submitted" }
}

Events: deal.created, deal.stage_changed, deal.submitted, application.signed, document.uploaded, document.reviewed, offer.released, offer.accepted, contract.sent, contract.executed, deal.funding_package_submitted and webhook.test. Payloads carry IDs and stages only — fetch details with the API.

Verify the FundSuite-Signature header (t=…,v1=…): compute HMAC-SHA256 of `${t}.${rawBody}` with your signing secret, compare in constant time, and reject timestamps older than 5 minutes. Answer 2xx within 10 seconds. Failures retry up to 8 times over about a day; deduplicate with FundSuite-Event-Id. Redirects are not followed.

Limits

  • 60 requests per minute per key (429 with Retry-After when exceeded).
  • Documents: up to 20 files per request, 50 MB each.
  • Money is always whole cents in amount_minor with currency USD. The older amount in dollars still works but is deprecated.
  • Full Social Security numbers and underwriting reports are never returned by the API.

Endpoints

POST
/v1/deals
deals:write

Create a deal

Creates a deal with its client business, optional prefilled application answers (application.business, application.owner1 — never SSNs; the client enters those securely) and optional client users. Give each client your own user id as external_ref: the same person pushed again, on any deal, is recognised and linked instead of duplicated. Choose how clients get in: invite_clients emails a branded sign-in link, return_setup_links returns a one-time setup_url you can send yourself. Sending the same deal external_ref again returns the existing deal (200).

{
  "business": "Acme Data LLC",
  "amount_minor": 25000000,
  "currency": "USD",
  "external_ref": "DS-10042",
  "application": {
    "business": { "ein": "12-3456789", "entity_type": "LLC", "operating_status": "Operational", "incorporation_date": "2019-04" },
    "owner1": { "first_name": "Jane", "last_name": "Doe", "ownership_pct": 100 }
  },
  "clients": [
    { "full_name": "Jane Doe", "email": "jane@acme.com", "phone": "+12155550100", "can_sign": true, "external_ref": "ds-user-77" }
  ],
  "return_setup_links": true
}
{
  "id": "6f1c…",
  "case_ref": "OFP-001050",
  "business_name": "Acme Data LLC",
  "mode": "live",
  "stage": { "key": "draft", "label": "App in Progress", "client_label": "Application in progress" },
  "requested_amount_minor": 25000000,
  "currency": "USD",
  "requirements": [ { "category": "bank_statement", "label": "Last 4 months…", "gate": "submission", "status": "open", "documents": 0 } ],
  "clients_added": [ { "user_id": "…", "external_ref": "ds-user-77", "created": true, "linked": false,
    "setup_url": "https://your-portal/setup?t=…", "setup_expires_at": "…", "setup_unavailable_reason": null } ]
}
GET
/v1/deals
deals:read

List deals

Newest first. Query: limit (1–100), cursor (next_cursor from the previous page), external_ref, status (stage key), updated_since (ISO 8601).

{ "data": [ { "id": "…", "case_ref": "OFP-001050", "stage": { "key": "submitted" } } ], "next_cursor": "2026-12-05T18:00:00Z" }
GET
/v1/deals/{id}
deals:read

Get a deal

Current stage, amounts, document checklist and counts.

{ "id": "…", "stage": { "key": "approved", "label": "Approved" }, "requirements": [ … ] }
POST
/v1/deals/{id}/clients
clients:write

Add a client user

Creates the person's portal account when new and gives them access to this deal. can_sign controls signing authority. invite: true emails a branded sign-in link.

{ "full_name": "John Roe", "email": "john@acme.com", "can_sign": false, "external_ref": "ds-user-78", "invite": false, "return_setup_link": true }
{ "user_id": "…", "created": true, "linked": false, "invited": false, "setup_url": "https://your-portal/setup?t=…" }
POST
/v1/deals/{id}/clients/{user_id}/setup-link
clients:write

Get a new setup link

Issues a fresh one-time link that signs the client in and opens their deal with everything you pushed. Links work once and expire after about an hour, so make one right before you send it. For safety, links are only issued for client-only accounts whose deals are all yours; anyone else (for example a person who already uses another portal) gets 409 existing_account — use invite instead, which emails their own inbox.

{ "url": "https://your-portal/setup?t=…&d=…", "expires_at": "2026-12-06T00:20:00Z" }
GET
/v1/deals/{id}/clients
deals:read

List client users

People with access to the deal and whether they can sign.

{ "data": [ { "user_id": "…", "full_name": "Jane Doe", "is_primary": true, "can_sign": true } ] }
POST
/v1/deals/{id}/documents
documents:write

Upload documents

multipart/form-data with category, one or more file fields (up to 20, 50 MB each) and optional period_start / period_end (YYYY-MM-DD) for statements. An identical file already on the deal returns its id with duplicate: true.

curl -X POST "$BASE/v1/deals/$ID/documents" \
  -H "Authorization: Bearer $KEY" \
  -H "Idempotency-Key: upload-ds-10042-jan" \
  -F category=bank_statement -F period_start=2026-01-01 -F period_end=2026-01-31 \
  -F file=@jan.pdf
{ "id": "…", "duplicate": false, "data": [ { "file_name": "jan.pdf", "id": "…", "duplicate": false } ] }
GET
/v1/deals/{id}/documents
deals:read

List documents

Files on the deal with category, period, checksum and review status (pending, accepted, rejected).

{ "data": [ { "id": "…", "category": "bank_statement", "review_status": "pending" } ] }
GET
/v1/reference

Reference lists

Document categories, stage keys with labels, and key scopes. No key needed.

{ "document_categories": [ … ], "stages": [ … ], "scopes": [ … ] }

Categories and stages

bank_statement
profit_and_loss
balance_sheet
tax_return
licensing_offer
licensing_agreement
application
other
KeyStageClient sees
draftApp in ProgressApplication in progress
submittedApp SubmittedApplication submitted
underwritingUnderwritingIn review
submitted_to_lenderSubmitted to LenderIn review
approvedApprovedApproved
contract_outContract OutContract ready to sign
contract_inContract InContract signed
additional_approvalAdditional ApprovalApproved for more
fundedFundedFunded
convertedConverted to LoanConverted to loan
settledSettledSettled
withdrawnWithdrawnWithdrawn
declinedDeclinedDeclined

Versioning

v1 only gains new optional fields and endpoints. Breaking changes ship as v2 with at least 90 days of overlap. This page link is permanent.