Developers

Deals

One party’s private workspace for one transaction.

Operation Call Price MCP tool
The caller's deals GET /v1/deals Lookup: 1,000 free a month, then 0.5 credits list_deals
One deal with its saved runs and extracted summary figures GET /v1/deals/{deal_id} Lookup: 1,000 free a month, then 0.5 credits list_deals
Rename a deal, move its stage, or change outside AI access PATCH /v1/deals/{deal_id} Free
Upload a document to a deal POST /v1/deals/{deal_id}/documents 3 credits a page
Document status and extracted figures GET /v1/deals/{deal_id}/documents/{document_id} Lookup: 1,000 free a month, then 0.5 credits
Save a computed result to a deal POST /v1/deals/{deal_id}/runs Free save_to_deal
Type figures onto a deal (bank deposits, P&L revenue, tax-return receipts) POST /v1/deals/{deal_id}/figures Free

The caller's deals#

GET/v1/deals

  • Lookup: 1,000 free a month, then 0.5 credits
  • Scope deals:read
  • MCP list_deals

Parameters

  • cursorstringquery
    next_cursor from the previous page.
  • limitinteger (min 1, max 100, default 25)query
    Max results; defaults to 25.

Response 200

Deals

  • itemsarray of objectsrequired
    The caller's deals on this page, newest activity first, by name and stage, with business and listing names when the caller can read them.
    Show 11 fieldsHide 11 fields
    • idstringrequired
      The deal's ID, passed as deal_id to deal calls and computed tools.
    • namestring
      The deal's name; Untitled deal when none was given.
    • perspectiveone of buyer, seller, brokerrequired
      Whose side the deal is worked from, set when the deal was created.
    • stageone of explore, value, market, offer, diligence, finance, close, transitionrequired
      Where the deal stands, as last set.
    • business_idstringnullable
      The caller's business record the deal is about; null when none.
    • business_namestring
      The business's name, beside its ID; absent when it has none or the caller can't read it.
    • listing_idstringnullable
      The listing the deal is about; null when none.
    • listing_headlinestring
      The listing's headline, beside its ID: broker-written text. Absent when the caller can't read the listing.
    • outside_ai_accessbooleanrequired
      Whether outside AI clients may be granted this deal. Changed on acquestor.com only; turning it off revokes every grant.
    • created_atdate-time
      When the deal was created, as an ISO 8601 timestamp.
    • updated_atdate-time
      When the deal was last changed, as an ISO 8601 timestamp.
  • next_cursorstringnullable
    Pass as cursor for the next page; null on the last.
  • has_moreboolean
    True when another page follows.
  • notestring
    Present only when the first page is empty: why, and what to do. An outside client sees no deal until a deal's owner grants it one on acquestor.com, so an empty list there does not mean the owner has no deals. Prose that may be reworded.
  • chargeobject
    What this call charged in credits, and the balance after.
    Show 5 fieldsHide 5 fields
    • creditsnumberrequired
      Credits this call charged; 0 when it was free or produced no result.
    • price_classone of free, lookup, quick_tool, deep_tool, ai_job, chat_answerrequired
      The price class the call was charged under.
    • balance_afternumber
      Your credit balance after this call, also on a free call; absent when the run produced no result.
    • ledger_entry_idstring
      The ID of this charge's entry in your credit ledger. REST only: an MCP result leaves it out.
    • free_callboolean
      True when a lookup was covered by the monthly free calls.

Errors

Status Code Meaning
400 invalid_cursor That cursor isn't from this list
400 invalid_header A header has an invalid value
401 unauthorized Sign-in required
402 insufficient_credits Not enough credits
402 over_limit Monthly limit reached
402 over_max_credits Over your Acquestor-Max-Credits
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 insufficient_scope The key lacks a scope
422 invalid_input An input is out of range or the wrong type

On a 402: Nothing ran and nothing was charged. code is insufficient_credits (balance below the price), over_max_credits (price above Acquestor-Max-Credits) or over_limit (a grant's, key's or org member's monthly limit reached). The problem carries price and balance.

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl "https://api.acquestor.com/v1/deals" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
ts
const res = await fetch("https://api.acquestor.com/v1/deals", {
  headers: {
    Authorization: `Bearer ${process.env.ACQUESTOR_API_KEY}`,
  },
});
const result = await res.json();
python
import os, requests

r = requests.get(
    "https://api.acquestor.com/v1/deals",
    headers={"Authorization": f"Bearer {os.environ['ACQUESTOR_API_KEY']}"},
)
r.raise_for_status()
result = r.json()

Example captured from the running code

Response 200
{
  "items": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "Abilene HVAC",
      "perspective": "buyer",
      "stage": "diligence",
      "business_id": "00000000-0000-4000-8000-000000000002",
      "listing_id": "00000000-0000-4000-8000-000000000003",
      "outside_ai_access": true,
      "created_at": "2026-10-05T15:02:11.000Z",
      "updated_at": "2026-10-05T15:02:11.000Z",
      "business_name": "Abilene HVAC",
      "listing_headline": "HVAC service company with recurring maintenance contracts"
    }
  ],
  "next_cursor": null,
  "has_more": false,
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 62,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000004",
    "free_call": true
  }
}

One deal with its saved runs and extracted summary figures#

GET/v1/deals/{deal_id}

  • Lookup: 1,000 free a month, then 0.5 credits
  • Scope deals:read
  • MCP list_deals with deal_id

Parameters

  • deal_idstringpathrequired
    Deal id from list_deals.

Response 200

Deal

  • idstringrequired
    The deal's ID, passed as deal_id to deal calls and computed tools.
  • namestring
    The deal's name; Untitled deal when none was given.
  • perspectiveone of buyer, seller, brokerrequired
    Whose side the deal is worked from, set when the deal was created.
  • stageone of explore, value, market, offer, diligence, finance, close, transitionrequired
    Where the deal stands, as last set.
  • business_idstringnullable
    The caller's business record the deal is about; null when none.
  • business_namestring
    The business's name, beside its ID; absent when it has none or the caller can't read it.
  • listing_idstringnullable
    The listing the deal is about; null when none.
  • listing_headlinestring
    The listing's headline, beside its ID: broker-written text. Absent when the caller can't read the listing.
  • outside_ai_accessbooleanrequired
    Whether outside AI clients may be granted this deal. Changed on acquestor.com only; turning it off revokes every grant.
  • created_atdate-time
    When the deal was created, as an ISO 8601 timestamp.
  • updated_atdate-time
    When the deal was last changed, as an ISO 8601 timestamp.
  • runsarray of objects
    Saved runs of computed tools on this deal, newest first, up to 50.
    Show 8 fieldsHide 8 fields
    • idstringrequired
      The saved run's ID.
    • deal_idstringrequired
      The ID of the deal the run is saved to.
    • operation_idstringrequired
      The computed operation that ran, such as computeSbaCeiling.
    • labelstringnullable
      The name given when the run was saved; null when none was given. GET /deals/{deal_id} doesn't keep it yet, so a saved run reads null there.
    • requestobject
      The inputs the operation ran with. In getDeal, returned to the owner on acquestor.com only.
    • resultobject
      The operation's full result as it was saved, with its figures, sources and charge.
    • rule_setsarray of strings
      IDs of the rule sets the result applied, with their dates, such as sba-sop-50-10-8.1@2026-09-25.
    • created_atdate-timerequired
      When the run was saved, as an ISO 8601 timestamp.
  • summary_figuresobject
    The deal's figures read from its documents or typed in, keyed by label and year (such as pl_revenue_2024), each citing its document page or who typed it.
  • sourcesarray of Source
    The sources the summary figures cite: document pages and typed entries.
  • gapsarray of Gap
    Gaps in the deal detail; currently always empty.
  • disclaimerinformational
    Always informational: the figures are information, not advice.
  • chargeobject
    What this call charged in credits, its price class and the balance after.
    Show 5 fieldsHide 5 fields
    • creditsnumberrequired
      Credits this call charged; 0 when it was free or produced no result.
    • price_classone of free, lookup, quick_tool, deep_tool, ai_job, chat_answerrequired
      The price class the call was charged under.
    • balance_afternumber
      Your credit balance after this call, also on a free call; absent when the run produced no result.
    • ledger_entry_idstring
      The ID of this charge's entry in your credit ledger. REST only: an MCP result leaves it out.
    • free_callboolean
      True when a lookup was covered by the monthly free calls.
  • documentsarray of objects
    Names, types and status only; contents are never returned to MCP clients.
    Show 3 fieldsHide 3 fields
    • idstring
      The document's ID, for GET /deals/{deal_id}/documents/{document_id}.
    • typeone of bank_statement, tax_return, profit_and_loss, balance_sheet, ar_aging, payroll_register, lease, customer_list, teaser, cim, other
      The kind of document, as given at upload; other when none was given.
    • statusstring
      Where reading the document stands: uploaded (stored, not read), extracting, extracted or failed.

Errors

Status Code Meaning
400 invalid_header A header has an invalid value
401 unauthorized Sign-in required
402 insufficient_credits Not enough credits
402 over_limit Monthly limit reached
402 over_max_credits Over your Acquestor-Max-Credits
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 deal_access_off This client has no grant for this deal
403 insufficient_scope The key lacks a scope
404 not_found Not found
503 not_configured Not available on this server

On a 402: Nothing ran and nothing was charged. code is insufficient_credits (balance below the price), over_max_credits (price above Acquestor-Max-Credits) or over_limit (a grant's, key's or org member's monthly limit reached). The problem carries price and balance.

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
ts
const res = await fetch("https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001", {
  headers: {
    Authorization: `Bearer ${process.env.ACQUESTOR_API_KEY}`,
  },
});
const result = await res.json();
python
import os, requests

r = requests.get(
    "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": f"Bearer {os.environ['ACQUESTOR_API_KEY']}"},
)
r.raise_for_status()
result = r.json()

Example captured from the running code; lists in the answer cut to 3 items

Response 200
{
  "id": "00000000-0000-4000-8000-000000000001",
  "name": "Abilene HVAC",
  "perspective": "buyer",
  "stage": "diligence",
  "business_id": "00000000-0000-4000-8000-000000000002",
  "listing_id": "00000000-0000-4000-8000-000000000003",
  "outside_ai_access": true,
  "created_at": "2026-10-05T15:02:11.000Z",
  "updated_at": "2026-10-05T15:02:11.000Z",
  "business_name": "Abilene HVAC",
  "listing_headline": "HVAC service company with recurring maintenance contracts",
  "runs": [
    {
      "id": "00000000-0000-4000-8000-000000000004",
      "deal_id": "00000000-0000-4000-8000-000000000001",
      "operation_id": "computeSbaCeiling",
      "label": null,
      "rule_sets": [
        "sba-sop-50-10-8.1@2026-09-25",
        "sba-rate-caps@2026-03-01"
      ],
      "created_at": "2026-10-05T15:02:11.000Z",
      "result": {
        "data": {
          "cash_flow_for_debt": {
            "value": 295000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.1,
            "unit": "rate",
            "source": "c1"
          },
          "annual_debt_service": {
            "value": 236000,
            "unit": "USD",
            "source": "c1"
          },
          "max_loan": {
            "value": 1488200,
            "unit": "USD",
            "source": "c1"
          },
          "max_price": {
            "value": 1653555,
            "unit": "USD",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.13,
            "unit": "x",
            "source": "c1"
          },
          "grid": [
            {
              "manager_salary": {
                "value": 60000,
                "unit": "USD",
                "source": "c1"
              },
              "interest_rate": {
                "value": 0.1,
                "unit": "rate",
                "source": "c1"
              },
              "coverage": {
                "value": 1.25,
                "unit": "x",
                "source": "c1"
              },
              "price_to_sde": {
                "value": 4.41,
                "unit": "x",
                "source": "c1"
              },
              "max_price": {
                "value": 1765660,
                "unit": "USD",
                "source": "c1"
              }
            },
            {
              "manager_salary": {
                "value": 60000,
                "unit": "USD",
                "source": "c1"
              },
              "interest_rate": {
                "value": 0.0925,
                "unit": "rate",
                "source": "c1"
              },
              "coverage": {
                "value": 1.25,
                "unit": "x",
                "source": "c1"
              },
              "price_to_sde": {
                "value": 4.56,
                "unit": "x",
                "source": "c1"
              },
              "max_price": {
                "value": 1822451,
                "unit": "USD",
                "source": "c1"
              }
            },
            {
              "manager_salary": {
                "value": 60000,
                "unit": "USD",
                "source": "c1"
              },
              "interest_rate": {
                "value": 0.085,
                "unit": "rate",
                "source": "c1"
              },
              "coverage": {
                "value": 1.25,
                "unit": "x",
                "source": "c1"
              },
              "price_to_sde": {
                "value": 4.7,
                "unit": "x",
                "source": "c1"
              },
              "max_price": {
                "value": 1881938,
                "unit": "USD",
                "source": "c1"
              }
            }
          ],
          "flags": {
            "qoe_required": false,
            "internal_valuation_path": false,
            "loan_capped_at_program_max": false
          },
          "gap_to_asking": {
            "value": -228555,
            "unit": "USD",
            "source": "c1"
          },
          "bridge_needed": {
            "value": 0,
            "unit": "USD",
            "source": "c1"
          }
        },
        "sources": [
          {
            "id": "u1",
            "basis": "client_supplied",
            "route": "served_directly",
            "as_of": "2026-10-05",
            "name": "Supplied by the calling client",
            "line": "Supplied by the calling AI client or API caller, Oct 5, 2026; used for this request only"
          },
          {
            "id": "r1",
            "source_id": "sba-sop-50-10-8.1",
            "name": "SOP 50 10 8.1, Lender and Development Company Loan Programs",
            "publisher": "U.S. Small Business Administration",
            "dataset": "SOP 50 10 8.1",
            "basis": "rule",
            "route": "served_directly",
            "licence_status": "cleared",
            "as_of": "2026-10-01",
            "effective_from": "2026-10-01",
            "effective_to": null,
            "url": "https://legacy.sba.gov/document/information-notice-5000-882227-issuance-technical-updates-sop-50-10-81",
            "line": "Source: SBA SOP 50 10 8.1, effective Oct 1, 2026"
          },
          {
            "id": "s1",
            "source_id": "frb-h15-prime",
            "name": "H.15 Selected Interest Rates: bank prime loan rate",
            "publisher": "Board of Governors of the Federal Reserve System",
            "dataset": "H.15 bank prime loan rate",
            "basis": "public_record",
            "route": "served_directly",
            "licence_status": "cleared",
            "as_of": "2026-10-02",
            "url": "https://www.federalreserve.gov/releases/h15/",
            "line": "Source: Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026",
            "retrieved_at": "2026-10-05"
          },
          {
            "id": "r2",
            "source_id": "sba-notice-5000-875051",
            "name": "Procedural Notice 5000-875051, 7(a) maximum interest rates",
            "publisher": "U.S. Small Business Administration",
            "dataset": "Procedural Notice 5000-875051",
            "basis": "rule",
            "route": "served_directly",
            "licence_status": "cleared",
            "as_of": "2026-03-01",
            "effective_from": "2026-03-01",
            "effective_to": null,
            "url": "https://www.sba.gov/document/procedural-notice-5000-875051-7a-alternative-base-rate-options",
            "line": "Source: SBA Procedural Notice 5000-875051, effective Mar 1, 2026"
          }
        ],
        "gaps": [],
        "disclaimer": "informational",
        "computation": {
          "id": "c1",
          "method": "sba_ceiling",
          "method_version": "1.0.0",
          "computed_at": "2026-10-05T15:02:11.000Z",
          "rule_sets": [
            "sba-sop-50-10-8.1@2026-09-25",
            "sba-rate-caps@2026-03-01"
          ],
          "inputs": {
            "sde": {
              "value": 400000,
              "unit": "USD",
              "source": "u1"
            },
            "manager_salary": {
              "value": 80000,
              "unit": "USD",
              "source": "u1"
            },
            "capex_reserve": {
              "value": 25000,
              "unit": "USD",
              "source": "u1"
            },
            "prime_rate": {
              "value": 0.07,
              "unit": "rate",
              "source": "s1",
              "as_of": "2026-10-02"
            },
            "coverage": {
              "value": 1.25,
              "unit": "x",
              "source": "r1"
            },
            "term_months": {
              "value": 120,
              "unit": "months",
              "source": "r1"
            },
            "equity_injection_share": {
              "value": 0.1,
              "unit": "share",
              "source": "r1"
            },
            "asking_price": {
              "value": 1425000,
              "unit": "USD",
              "source": "u1"
            },
            "max_spread": {
              "value": 0.03,
              "unit": "rate",
              "source": "r2"
            }
          }
        },
        "card": {
          "card_type": "sba_ceiling",
          "card_version": "1.0.0",
          "title": "SBA price ceiling",
          "subtitle": "At 10.00% and 1.25x coverage, 10 years",
          "headline": [
            "max_price",
            "max_loan",
            "price_to_sde"
          ],
          "body": {
            "headline_items": [
              {
                "key": "max_price",
                "label": "SBA price ceiling",
                "display": "$1,654,000",
                "figure": {
                  "value": 1653555,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "max_loan",
                "label": "Highest SBA loan",
                "display": "$1,488,000",
                "figure": {
                  "value": 1488200,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "price_to_sde",
                "label": "Price to SDE",
                "display": "4.13x",
                "figure": {
                  "value": 4.13,
                  "unit": "x",
                  "source": "c1"
                }
              }
            ],
            "meaning": "The highest price an SBA 7(a)-financed buyer can pay at 1.25x coverage with 10% down.",
            "inputs": [
              {
                "label": "SDE",
                "display": "$400,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              },
              {
                "label": "manager salary",
                "display": "$80,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              },
              {
                "label": "capex reserve",
                "display": "$25,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              },
              {
                "label": "rate",
                "display": "10.00%, the SBA cap: prime 7.00% (Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026) plus 3.00%",
                "provenance": "SBA maximum rate under Procedural Notice 5000-875051, effective Mar 1, 2026",
                "source": "r2"
              },
              {
                "label": "coverage",
                "display": "1.25x",
                "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
                "source": "r1"
              },
              {
                "label": "term",
                "display": "10-year",
                "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
                "source": "r1"
              },
              {
                "label": "equity",
                "display": "10%",
                "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
                "source": "r1"
              },
              {
                "label": "asking price",
                "display": "$1,425,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              }
            ],
            "moves": "each $20,000 of salary moves the ceiling about $112,000.",
            "not": "**Not a valuation.** A price above this needs a seller note or more buyer cash.",
            "lines": [
              "Asking is $229,000 below the ceiling."
            ],
            "grid_columns": [
              "10.00%",
              "9.25%",
              "8.50%"
            ],
            "grid_rows": [
              "$60,000",
              "$80,000",
              "$100,000"
            ]
          },
          "as_of": "2026-10-02",
          "source_refs": [
            "u1",
            "r1",
            "s1",
            "r2",
            "c1"
          ],
          "actions": [
            {
              "label": "Stress test this",
              "tool": "stress_test_deal",
              "arguments": {
                "sde": 400000,
                "manager_salary": 80000,
                "capex_reserve": 25000,
                "loan_amount": 1488200,
                "interest_rate": 0.1,
                "term_months": 120
              }
            },
            {
              "label": "Find lenders",
              "tool": "find_sba_lenders",
              "arguments": {}
            }
          ],
          "disclaimers": [
            "informational"
          ],
          "deal_id": "00000000-0000-4000-8000-000000000001"
        },
        "run_id": "00000000-0000-4000-8000-000000000004",
        "charge": {
          "credits": 5,
          "price_class": "quick_tool"
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000005",
      "deal_id": "00000000-0000-4000-8000-000000000001",
      "operation_id": "computeProofOfCash",
      "label": null,
      "rule_sets": [],
      "created_at": "2026-10-05T15:02:11.000Z",
      "result": {
        "data": {
          "periods": [
            {
              "period": "2025",
              "deposits": {
                "value": 2100000,
                "unit": "USD",
                "source": "c1"
              },
              "excluded": {
                "value": 0,
                "unit": "USD",
                "source": "c1"
              },
              "net_deposits": {
                "value": 2100000,
                "unit": "USD",
                "source": "c1"
              },
              "pl_revenue": {
                "value": 2100000,
                "unit": "USD",
                "source": "c1"
              },
              "return_receipts": {
                "value": 2080000,
                "unit": "USD",
                "source": "c1"
              },
              "variance_to_pl": {
                "value": 0,
                "unit": "share",
                "source": "c1"
              },
              "variance_to_return": {
                "value": 0.009615,
                "unit": "share",
                "source": "c1"
              },
              "flagged": false,
              "months_covered": 12
            }
          ]
        },
        "sources": [
          {
            "id": "u1",
            "basis": "client_supplied",
            "route": "served_directly",
            "as_of": "2026-10-05",
            "name": "Supplied by the calling client",
            "line": "Supplied by the calling AI client or API caller, Oct 5, 2026; used for this request only"
          }
        ],
        "gaps": [
          {
            "field": "sde_over_tax_income_share",
            "reason": "insufficient_records",
            "detail": "No 2025 SDE or tax-return taxable income is among the deal's figures, so SDE isn't compared to taxable income."
          }
        ],
        "disclaimer": "informational",
        "computation": {
          "id": "c1",
          "method": "proof_of_cash",
          "method_version": "1.0.0",
          "computed_at": "2026-10-05T15:02:11.000Z",
          "rule_sets": [],
          "inputs": {
            "variance_threshold": {
              "value": 0.05,
              "unit": "share",
              "source": "u1"
            },
            "bank_deposits_2025_01": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_02": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_03": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_04": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_05": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_06": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_07": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_08": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_09": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_10": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_11": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "bank_deposits_2025_12": {
              "value": 175000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "pl_revenue_2025": {
              "value": 2100000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            },
            "return_gross_receipts_2025": {
              "value": 2080000,
              "unit": "USD",
              "source": "u1",
              "as_of": "2026-10-05"
            }
          }
        },
        "card": {
          "card_type": "proof_of_cash",
          "card_version": "1.0.0",
          "title": "Proof of cash",
          "subtitle": "Bank deposits against P&L revenue and tax-return receipts, 2025",
          "headline": [
            "net_deposits",
            "pl_revenue",
            "variance_to_return"
          ],
          "body": {
            "headline_items": [
              {
                "key": "net_deposits",
                "label": "Net deposits, 2025",
                "display": "$2,100,000",
                "figure": {
                  "value": 2100000,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "pl_revenue",
                "label": "P&L revenue, 2025",
                "display": "$2,100,000",
                "figure": {
                  "value": 2100000,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "variance_to_return",
                "label": "Biggest variance, 2025 (to tax return)",
                "display": "1.0%",
                "figure": {
                  "value": 0.009615,
                  "unit": "share",
                  "source": "c1"
                }
              }
            ],
            "meaning": "Deposits matched P&L revenue in 2025.",
            "inputs": [
              {
                "label": "variance threshold",
                "display": "5%",
                "provenance": "supplied by the caller",
                "source": "u1"
              }
            ],
            "table": {
              "columns": [
                "Period",
                "Deposits",
                "Excluded",
                "Net deposits",
                "P&L revenue",
                "Return receipts",
                "Variance to P&L",
                "Variance to return",
                "Flagged"
              ],
              "rows": [
                [
                  "2025",
                  "$2,100,000",
                  "$0",
                  "$2,100,000",
                  "$2,100,000",
                  "$2,080,000",
                  "0.0%",
                  "1.0%",
                  "No"
                ]
              ],
              "cell_sources": [
                [
                  null,
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  null
                ]
              ]
            },
            "lines": [],
            "moves": "each confirmed exclusion lowers net deposits dollar for dollar; months missing from the bank statements lower deposits.",
            "not": "A reconciliation of the documents you uploaded, not an audit or a quality of earnings report."
          },
          "as_of": "2026-10-05",
          "source_refs": [
            "u1",
            "c1"
          ],
          "actions": [
            {
              "label": "Check red flags",
              "tool": "check_red_flags",
              "arguments": {
                "deal_id": "00000000-0000-4000-8000-000000000001"
              }
            }
          ],
          "disclaimers": [
            "informational"
          ],
          "deal_id": "00000000-0000-4000-8000-000000000001"
        },
        "run_id": "00000000-0000-4000-8000-000000000005",
        "charge": {
          "credits": 50,
          "price_class": "deep_tool"
        }
      }
    }
  ],
  "summary_figures": {
    "bank_deposits_2025-01": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-02": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-03": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-04": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-05": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-06": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-07": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-08": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-09": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-10": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-11": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-12": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "pl_revenue_2025": {
      "value": 2100000,
      "unit": "USD",
      "source": "u2",
      "as_of": "2026-10-05"
    },
    "return_gross_receipts_2025": {
      "value": 2080000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    }
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_entered",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "You entered this",
      "line": "You entered this, Oct 5, 2026"
    },
    {
      "id": "u2",
      "basis": "user_upload",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "document_id": "00000000-0000-4000-8000-000000000006",
      "page": 1,
      "name": "abilene-hvac-pl-2025.csv",
      "line": "From abilene-hvac-pl-2025.csv, page 1, uploaded Oct 5, 2026"
    }
  ],
  "documents": [
    {
      "id": "00000000-0000-4000-8000-000000000006",
      "type": "profit_and_loss",
      "status": "extracted"
    }
  ],
  "gaps": [],
  "disclaimer": "informational",
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 62,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000007",
    "free_call": true
  }
}

Where each figure comes from

  1. u1You entered this, Oct 5, 2026
  2. u2From abilene-hvac-pl-2025.csv, page 1, uploaded Oct 5, 2026

Rename a deal, move its stage, or change outside AI access#

PATCH/v1/deals/{deal_id}

  • Free
  • Scope deals:write

Changing outside_ai_access requires a signed-in session (interface); API keys and OAuth clients cannot grant themselves deal access.

Parameters

  • deal_idstringpathrequired
    Deal id from list_deals.
  • Idempotency-Keystring (at least 1 character, up to 255 characters)header
    1 to 255 characters. Recommended on every write and on priced calls: a retry with the same key and body replays the first result and isn't charged again.

Body application/merge-patch+json

  • namestring (up to 200 characters)
    A name for the deal, up to 200 characters; SSNs and account numbers are removed. Defaults to Untitled deal.
  • perspectiveone of buyer, seller, broker
    Whose side the deal is worked from, set at creation; defaults to broker or seller by the account's role, otherwise buyer.
  • stageone of explore, value, market, offer, diligence, finance, close, transition
    Where the deal stands; defaults to explore.
  • business_idstring
    One of the caller's own business records, from POST /businesses, that the deal is about.
  • listing_idstring
    The listing the deal is about, from search_listings or GET /listings.
  • outside_ai_accessboolean
    Interface sessions only. Default false.

Response 200

Updated

  • idstringrequired
    The deal's ID, passed as deal_id to deal calls and computed tools.
  • namestring
    The deal's name; Untitled deal when none was given.
  • perspectiveone of buyer, seller, brokerrequired
    Whose side the deal is worked from, set when the deal was created.
  • stageone of explore, value, market, offer, diligence, finance, close, transitionrequired
    Where the deal stands, as last set.
  • business_idstringnullable
    The caller's business record the deal is about; null when none.
  • business_namestring
    The business's name, beside its ID; absent when it has none or the caller can't read it.
  • listing_idstringnullable
    The listing the deal is about; null when none.
  • listing_headlinestring
    The listing's headline, beside its ID: broker-written text. Absent when the caller can't read the listing.
  • outside_ai_accessbooleanrequired
    Whether outside AI clients may be granted this deal. Changed on acquestor.com only; turning it off revokes every grant.
  • created_atdate-time
    When the deal was created, as an ISO 8601 timestamp.
  • updated_atdate-time
    When the deal was last changed, as an ISO 8601 timestamp.

Errors

Status Code Meaning
400 invalid_header A header has an invalid value
400 invalid_json The body isn't valid JSON
401 unauthorized Sign-in required
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 cross_origin Cross-site request refused
403 deal_access_off This client has no grant for this deal
403 insufficient_scope The key lacks a scope
403 interface_only Only acquestor.com can do this
404 not_found Not found
409 idempotency_in_progress The same request is still running
413 file_too_large File too large
415 unsupported_media_type Unsupported content type
422 idempotency_key_reused Idempotency-Key used for a different call
422 invalid_input An input is out of range or the wrong type

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl -X PATCH "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{"stage":"diligence"}'
ts
const res = await fetch("https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.ACQUESTOR_API_KEY}`,
    "Content-Type": "application/merge-patch+json",
  },
  body: JSON.stringify({ stage: "diligence" }),
});
const result = await res.json();
python
import os, requests

r = requests.patch(
    "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": f"Bearer {os.environ['ACQUESTOR_API_KEY']}"},
    json={"stage": "diligence"},
)
r.raise_for_status()
result = r.json()

Example captured from the running code

Response 200
{
  "id": "00000000-0000-4000-8000-000000000001",
  "name": "Abilene HVAC",
  "perspective": "buyer",
  "stage": "diligence",
  "business_id": "00000000-0000-4000-8000-000000000002",
  "listing_id": "00000000-0000-4000-8000-000000000003",
  "outside_ai_access": true,
  "created_at": "2026-10-05T15:02:11.000Z",
  "updated_at": "2026-10-05T15:02:11.000Z"
}

Upload a document to a deal#

POST/v1/deals/{deal_id}/documents

  • 3 credits a page
  • Scope deals:write

Stored under the deal's own key. Bank statements, P&Ls and tax returns are read for figures at 3 credits a page, quoted from the page count and checked against the balance before reading; a failed read is not charged. Without the model connected, the document is stored and the user types the figures. Files that look like a marketplace printout are refused.

Parameters

  • Acquestor-Max-Creditsnumber (min 0)header
    The most this call may charge. If its price is higher, it returns 402 over_max_credits and runs nothing.
  • deal_idstringpathrequired
    Deal id from list_deals.
  • Idempotency-Keystring (at least 1 character, up to 255 characters)header
    1 to 255 characters. Recommended on every write and on priced calls: a retry with the same key and body replays the first result and isn't charged again.

Body multipart/form-data

  • typeone of bank_statement, tax_return, profit_and_loss, balance_sheet, ar_aging, payroll_register, lease, customer_list, teaser, cim, other
    What the document is. Bank statements, P&Ls and tax returns are read for figures; other types are stored only. Defaults to other when left out.
  • filefilerequired
    The document file, up to 25 MB.

Response 201

Stored, and read when the type supports it. Returned in the envelope (computation, sources, gaps, warnings, disclaimer, card, actions, run_id, charge, truncated); data holds the fields below. The stored document: its status, page count, a message on what was read, and the figures read from it.

  • idstringrequired
    The document's ID; use it with getDocument or as document_id on a typed figure.
  • deal_idstringrequired
    The ID of the deal the document was uploaded to.
  • typeone of bank_statement, tax_return, profit_and_loss, balance_sheet, ar_aging, payroll_register, lease, customer_list, teaser, cim, otherrequired
    The kind of document, as given on upload; bank statements, P&Ls and tax returns are read for figures.
  • filenamestringnullable
    The file name as uploaded. Returned on acquestor.com only; null for API callers.
  • pagesinteger
    Number of pages counted on upload; reading is priced at 3 credits a page.
  • statusone of uploaded, extracting, extracted, failedrequired
    uploaded when stored and not read, extracting while figures are read, extracted when the read finished, failed when it didn't.
  • extracted_figuresarray of objects
    Figures read from the document. uploadDocument returns them in figures instead and leaves this out.
    Show 4 fieldsHide 4 fields
    • labelstring
      What the figure is, such as bank_deposits or pl_revenue.
    • periodstring
      The period the figure covers: YYYY for a year, YYYY-MM for a month.
    • figureFigure
      The amount in dollars, sourced to this document and page.
    • pageinteger
      The page the figure was read from, counting from 1.
  • redactions_appliedboolean
    True when account numbers or other identifiers were removed from what was read. uploadDocument doesn't return it.
  • messagestringnullable
    A note on the read: figures left out, nothing found, or why it failed, and whether anything was charged. Null when there is nothing to add.
  • figuresarray of objects
    Figures read from this document and saved to the deal, each with its document and page. Empty when nothing was read.
    Show 6 fieldsHide 6 fields
    • idstringnullable
      The saved figure's ID.
    • labelone of bank_deposits, pl_revenue, return_gross_receipts, return_taxable_income, sderequired
      What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE.
    • periodstring (pattern ^[0-9]{4}(-[0-9]{2})?$)required
      The period the figure covers: YYYY for a year, YYYY-MM for a month.
    • document_idstringnullable
      The document the figure came from; null when it was typed without one.
    • pageintegernullable
      The page in that document; null when none was given.
    • valueFigurerequired
      The amount in dollars, sourced to its document and page or to the person who typed it, dated the day it was recorded.

Errors

Status Code Meaning
400 invalid_header A header has an invalid value
400 invalid_json The body isn't valid JSON
401 unauthorized Sign-in required
402 insufficient_credits Not enough credits
402 over_limit Monthly limit reached
402 over_max_credits Over your Acquestor-Max-Credits
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 cross_origin Cross-site request refused
403 deal_access_off This client has no grant for this deal
403 insufficient_scope The key lacks a scope
404 not_found Not found
409 idempotency_in_progress The same request is still running
413 file_too_large File too large
415 unsupported_media_type Unsupported content type
422 idempotency_key_reused Idempotency-Key used for a different call
422 invalid_input An input is out of range or the wrong type
422 marketplace_printout This looks like a marketplace printout
422 missing_input A required input is missing
503 not_configured Not available on this server

On a 402: Nothing ran and nothing was charged. code is insufficient_credits (balance below the price), over_max_credits (price above Acquestor-Max-Credits) or over_limit (a grant's, key's or org member's monthly limit reached). The problem carries price and balance.

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl -X POST "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/documents" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -F "file=@<file>"

Example captured from the running code

Response 201
{
  "data": {
    "id": "00000000-0000-4000-8000-000000000002",
    "deal_id": "00000000-0000-4000-8000-000000000001",
    "type": "profit_and_loss",
    "filename": null,
    "pages": 1,
    "status": "extracted",
    "message": null,
    "figures": [
      {
        "id": "00000000-0000-4000-8000-000000000003",
        "label": "pl_revenue",
        "period": "2025",
        "document_id": "00000000-0000-4000-8000-000000000002",
        "page": 1,
        "value": {
          "value": 2100000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      }
    ]
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_upload",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "a document on this deal",
      "document_id": "00000000-0000-4000-8000-000000000002",
      "page": 1,
      "line": "From a document on this deal, page 1, uploaded Oct 5, 2026"
    }
  ],
  "gaps": [],
  "disclaimer": "informational",
  "charge": {
    "credits": 3,
    "price_class": "ai_job",
    "balance_after": 472,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000004"
  }
}

Where each figure comes from

  1. u1From a document on this deal, page 1, uploaded Oct 5, 2026

Document status and extracted figures#

GET/v1/deals/{deal_id}/documents/{document_id}

  • Lookup: 1,000 free a month, then 0.5 credits
  • Scope deals:read

Parameters

  • deal_idstringpathrequired
    Deal id from list_deals.
  • document_idstringpathrequired
    The document's ID, from POST /deals/{deal_id}/documents or the deal's documents list in get_deal.

Response 200

Document

  • idstringrequired
    The document's ID.
  • deal_idstringrequired
    The deal the document belongs to.
  • typeone of bank_statement, tax_return, profit_and_loss, balance_sheet, ar_aging, payroll_register, lease, customer_list, teaser, cim, otherrequired
    The kind of document, as given at upload; other when none was given.
  • statusone of uploaded, extracting, extracted, failedrequired
    Where reading the document stands: uploaded (stored, not read), extracting while figures are read, extracted when done, or failed.
  • filenamestring
    Signed in on acquestor.com only.
  • pagesintegernullable
    Signed in on acquestor.com only; null until the document is read.
  • uploaded_atdate-time
    Signed in on acquestor.com only.
  • summary_figuresobjectrequired
    The deal's summary figures, each a Figure whose source names the document and page it was read from, or the person who typed it.
  • sourcesarray of Sourcerequired
    The sources the summary figures cite: document pages and typed entries.
  • gapsarray of Gaprequired
    Gaps in the result; currently always empty.
  • disclaimerinformationalrequired
    Always informational: the figures are information, not advice.
  • chargeobject
    What this call charged in credits, its price class and the balance after.
    Show 5 fieldsHide 5 fields
    • creditsnumberrequired
      Credits this call charged; 0 when it was free or produced no result.
    • price_classone of free, lookup, quick_tool, deep_tool, ai_job, chat_answerrequired
      The price class the call was charged under.
    • balance_afternumber
      Your credit balance after this call, also on a free call; absent when the run produced no result.
    • ledger_entry_idstring
      The ID of this charge's entry in your credit ledger. REST only: an MCP result leaves it out.
    • free_callboolean
      True when a lookup was covered by the monthly free calls.

Errors

Status Code Meaning
400 invalid_header A header has an invalid value
401 unauthorized Sign-in required
402 insufficient_credits Not enough credits
402 over_limit Monthly limit reached
402 over_max_credits Over your Acquestor-Max-Credits
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 deal_access_off This client has no grant for this deal
403 insufficient_scope The key lacks a scope
404 not_found Not found
503 not_configured Not available on this server

On a 402: Nothing ran and nothing was charged. code is insufficient_credits (balance below the price), over_max_credits (price above Acquestor-Max-Credits) or over_limit (a grant's, key's or org member's monthly limit reached). The problem carries price and balance.

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/documents/00000000-0000-4000-8000-000000000002" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
ts
const res = await fetch("https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/documents/00000000-0000-4000-8000-000000000002", {
  headers: {
    Authorization: `Bearer ${process.env.ACQUESTOR_API_KEY}`,
  },
});
const result = await res.json();
python
import os, requests

r = requests.get(
    "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/documents/00000000-0000-4000-8000-000000000002",
    headers={"Authorization": f"Bearer {os.environ['ACQUESTOR_API_KEY']}"},
)
r.raise_for_status()
result = r.json()

Example captured from the running code

Response 200
{
  "id": "00000000-0000-4000-8000-000000000002",
  "type": "profit_and_loss",
  "status": "extracted",
  "deal_id": "00000000-0000-4000-8000-000000000001",
  "summary_figures": {
    "bank_deposits_2025-01": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-02": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-03": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-04": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-05": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-06": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-07": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-08": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-09": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-10": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-11": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "bank_deposits_2025-12": {
      "value": 175000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    },
    "pl_revenue_2025": {
      "value": 2100000,
      "unit": "USD",
      "source": "u2",
      "as_of": "2026-10-05"
    },
    "return_gross_receipts_2025": {
      "value": 2080000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    }
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_entered",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "You entered this",
      "line": "You entered this, Oct 5, 2026"
    },
    {
      "id": "u2",
      "basis": "user_upload",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "document_id": "00000000-0000-4000-8000-000000000002",
      "page": 1,
      "name": "abilene-hvac-pl-2025.csv",
      "line": "From abilene-hvac-pl-2025.csv, page 1, uploaded Oct 5, 2026"
    }
  ],
  "gaps": [],
  "disclaimer": "informational",
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 472,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000003",
    "free_call": true
  }
}

Where each figure comes from

  1. u1You entered this, Oct 5, 2026
  2. u2From abilene-hvac-pl-2025.csv, page 1, uploaded Oct 5, 2026

Save a computed result to a deal#

POST/v1/deals/{deal_id}/runs

Runs a computed tool from its inputs against the granted deal and saves the result there. Charged at that tool's price; saving is free. Computed tools called through the MCP server read from a deal but don't save, so this is how an AI client keeps a result.

Parameters

  • deal_idstringpathrequired
    Deal id from list_deals.
  • Idempotency-Keystring (at least 1 character, up to 255 characters)header
    1 to 255 characters. Recommended on every write and on priced calls: a retry with the same key and body replays the first result and isn't charged again.

Body application/json

  • operation_idstringrequired
    Computed operation to run.
  • requestobjectrequired
    Its inputs, with objects such as seller_note nested.
  • labelstring
    Name for the saved run.

Response 201

Saved

  • idstringrequired
    The saved run's ID.
  • deal_idstringrequired
    The ID of the deal the run is saved to.
  • operation_idstringrequired
    The computed operation that ran, such as computeSbaCeiling.
  • labelstringnullable
    The name given when the run was saved; null when none was given. GET /deals/{deal_id} doesn't keep it yet, so a saved run reads null there.
  • requestobject
    The inputs the operation ran with. In getDeal, returned to the owner on acquestor.com only.
  • resultobject
    The operation's full result as it was saved, with its figures, sources and charge.
  • rule_setsarray of strings
    IDs of the rule sets the result applied, with their dates, such as sba-sop-50-10-8.1@2026-09-25.
  • created_atdate-timerequired
    When the run was saved, as an ISO 8601 timestamp.

Errors

Status Code Meaning
400 invalid_header A header has an invalid value
400 invalid_json The body isn't valid JSON
401 unauthorized Sign-in required
402 insufficient_credits Not enough credits
402 over_limit Monthly limit reached
402 over_max_credits Over your Acquestor-Max-Credits
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 cross_origin Cross-site request refused
403 deal_access_off This client has no grant for this deal
403 insufficient_scope The key lacks a scope
404 not_found Not found
409 idempotency_in_progress The same request is still running
413 file_too_large File too large
415 unsupported_media_type Unsupported content type
422 idempotency_key_reused Idempotency-Key used for a different call
422 invalid_input An input is out of range or the wrong type
422 missing_input A required input is missing
503 not_configured Not available on this server

On a 402: Nothing ran and nothing was charged. code is insufficient_credits (balance below the price), over_max_credits (price above Acquestor-Max-Credits) or over_limit (a grant's, key's or org member's monthly limit reached). The problem carries price and balance.

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl -X POST "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/runs" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operation_id":"computeSbaCeiling","label":"Ceiling at $400K SDE","request":{"sde":400000,"manager_salary":80000,"capex_reserve":25000,"asking_price":1425000,"as_of":"2026-10-05"}}'
ts
const res = await fetch("https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ACQUESTOR_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ operation_id: "computeSbaCeiling", label: "Ceiling at $400K SDE", request: { sde: 400000, manager_salary: 80000, capex_reserve: 25000, asking_price: 1425000, as_of: "2026-10-05" } }),
});
const result = await res.json();
python
import os, requests

r = requests.post(
    "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/runs",
    headers={"Authorization": f"Bearer {os.environ['ACQUESTOR_API_KEY']}"},
    json={"operation_id": "computeSbaCeiling", "label": "Ceiling at $400K SDE", "request": {"sde": 400000, "manager_salary": 80000, "capex_reserve": 25000, "asking_price": 1425000, "as_of": "2026-10-05"}},
)
r.raise_for_status()
result = r.json()

Example captured from the running code; lists in the answer cut to 3 items

Response 201
{
  "id": "00000000-0000-4000-8000-000000000002",
  "deal_id": "00000000-0000-4000-8000-000000000001",
  "operation_id": "computeSbaCeiling",
  "label": "Ceiling at $400K SDE",
  "result": {
    "data": {
      "cash_flow_for_debt": {
        "value": 295000,
        "unit": "USD",
        "source": "c1"
      },
      "interest_rate": {
        "value": 0.1,
        "unit": "rate",
        "source": "c1"
      },
      "annual_debt_service": {
        "value": 236000,
        "unit": "USD",
        "source": "c1"
      },
      "max_loan": {
        "value": 1488200,
        "unit": "USD",
        "source": "c1"
      },
      "max_price": {
        "value": 1653555,
        "unit": "USD",
        "source": "c1"
      },
      "price_to_sde": {
        "value": 4.13,
        "unit": "x",
        "source": "c1"
      },
      "grid": [
        {
          "manager_salary": {
            "value": 60000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.1,
            "unit": "rate",
            "source": "c1"
          },
          "coverage": {
            "value": 1.25,
            "unit": "x",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.41,
            "unit": "x",
            "source": "c1"
          },
          "max_price": {
            "value": 1765660,
            "unit": "USD",
            "source": "c1"
          }
        },
        {
          "manager_salary": {
            "value": 60000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.0925,
            "unit": "rate",
            "source": "c1"
          },
          "coverage": {
            "value": 1.25,
            "unit": "x",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.56,
            "unit": "x",
            "source": "c1"
          },
          "max_price": {
            "value": 1822451,
            "unit": "USD",
            "source": "c1"
          }
        },
        {
          "manager_salary": {
            "value": 60000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.085,
            "unit": "rate",
            "source": "c1"
          },
          "coverage": {
            "value": 1.25,
            "unit": "x",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.7,
            "unit": "x",
            "source": "c1"
          },
          "max_price": {
            "value": 1881938,
            "unit": "USD",
            "source": "c1"
          }
        }
      ],
      "flags": {
        "qoe_required": false,
        "internal_valuation_path": false,
        "loan_capped_at_program_max": false
      },
      "gap_to_asking": {
        "value": -228555,
        "unit": "USD",
        "source": "c1"
      },
      "bridge_needed": {
        "value": 0,
        "unit": "USD",
        "source": "c1"
      }
    },
    "sources": [
      {
        "id": "u1",
        "basis": "client_supplied",
        "route": "served_directly",
        "as_of": "2026-10-05",
        "name": "Supplied by the calling client",
        "line": "Supplied by the calling AI client or API caller, Oct 5, 2026; used for this request only"
      },
      {
        "id": "r1",
        "source_id": "sba-sop-50-10-8.1",
        "name": "SOP 50 10 8.1, Lender and Development Company Loan Programs",
        "publisher": "U.S. Small Business Administration",
        "dataset": "SOP 50 10 8.1",
        "basis": "rule",
        "route": "served_directly",
        "licence_status": "cleared",
        "as_of": "2026-10-01",
        "effective_from": "2026-10-01",
        "effective_to": null,
        "url": "https://legacy.sba.gov/document/information-notice-5000-882227-issuance-technical-updates-sop-50-10-81",
        "line": "Source: SBA SOP 50 10 8.1, effective Oct 1, 2026"
      },
      {
        "id": "s1",
        "source_id": "frb-h15-prime",
        "name": "H.15 Selected Interest Rates: bank prime loan rate",
        "publisher": "Board of Governors of the Federal Reserve System",
        "dataset": "H.15 bank prime loan rate",
        "basis": "public_record",
        "route": "served_directly",
        "licence_status": "cleared",
        "as_of": "2026-10-02",
        "url": "https://www.federalreserve.gov/releases/h15/",
        "line": "Source: Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026",
        "retrieved_at": "2026-10-05"
      },
      {
        "id": "r2",
        "source_id": "sba-notice-5000-875051",
        "name": "Procedural Notice 5000-875051, 7(a) maximum interest rates",
        "publisher": "U.S. Small Business Administration",
        "dataset": "Procedural Notice 5000-875051",
        "basis": "rule",
        "route": "served_directly",
        "licence_status": "cleared",
        "as_of": "2026-03-01",
        "effective_from": "2026-03-01",
        "effective_to": null,
        "url": "https://www.sba.gov/document/procedural-notice-5000-875051-7a-alternative-base-rate-options",
        "line": "Source: SBA Procedural Notice 5000-875051, effective Mar 1, 2026"
      }
    ],
    "gaps": [],
    "disclaimer": "informational",
    "computation": {
      "id": "c1",
      "method": "sba_ceiling",
      "method_version": "1.0.0",
      "computed_at": "2026-10-05T15:02:11.000Z",
      "rule_sets": [
        "sba-sop-50-10-8.1@2026-09-25",
        "sba-rate-caps@2026-03-01"
      ],
      "inputs": {
        "sde": {
          "value": 400000,
          "unit": "USD",
          "source": "u1"
        },
        "manager_salary": {
          "value": 80000,
          "unit": "USD",
          "source": "u1"
        },
        "capex_reserve": {
          "value": 25000,
          "unit": "USD",
          "source": "u1"
        },
        "prime_rate": {
          "value": 0.07,
          "unit": "rate",
          "source": "s1",
          "as_of": "2026-10-02"
        },
        "coverage": {
          "value": 1.25,
          "unit": "x",
          "source": "r1"
        },
        "term_months": {
          "value": 120,
          "unit": "months",
          "source": "r1"
        },
        "equity_injection_share": {
          "value": 0.1,
          "unit": "share",
          "source": "r1"
        },
        "asking_price": {
          "value": 1425000,
          "unit": "USD",
          "source": "u1"
        },
        "max_spread": {
          "value": 0.03,
          "unit": "rate",
          "source": "r2"
        }
      }
    },
    "card": {
      "card_type": "sba_ceiling",
      "card_version": "1.0.0",
      "title": "SBA price ceiling",
      "subtitle": "At 10.00% and 1.25x coverage, 10 years",
      "headline": [
        "max_price",
        "max_loan",
        "price_to_sde"
      ],
      "body": {
        "headline_items": [
          {
            "key": "max_price",
            "label": "SBA price ceiling",
            "display": "$1,654,000",
            "figure": {
              "value": 1653555,
              "unit": "USD",
              "source": "c1"
            }
          },
          {
            "key": "max_loan",
            "label": "Highest SBA loan",
            "display": "$1,488,000",
            "figure": {
              "value": 1488200,
              "unit": "USD",
              "source": "c1"
            }
          },
          {
            "key": "price_to_sde",
            "label": "Price to SDE",
            "display": "4.13x",
            "figure": {
              "value": 4.13,
              "unit": "x",
              "source": "c1"
            }
          }
        ],
        "meaning": "The highest price an SBA 7(a)-financed buyer can pay at 1.25x coverage with 10% down.",
        "inputs": [
          {
            "label": "SDE",
            "display": "$400,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          },
          {
            "label": "manager salary",
            "display": "$80,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          },
          {
            "label": "capex reserve",
            "display": "$25,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          },
          {
            "label": "rate",
            "display": "10.00%, the SBA cap: prime 7.00% (Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026) plus 3.00%",
            "provenance": "SBA maximum rate under Procedural Notice 5000-875051, effective Mar 1, 2026",
            "source": "r2"
          },
          {
            "label": "coverage",
            "display": "1.25x",
            "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
            "source": "r1"
          },
          {
            "label": "term",
            "display": "10-year",
            "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
            "source": "r1"
          },
          {
            "label": "equity",
            "display": "10%",
            "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
            "source": "r1"
          },
          {
            "label": "asking price",
            "display": "$1,425,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          }
        ],
        "moves": "each $20,000 of salary moves the ceiling about $112,000.",
        "not": "**Not a valuation.** A price above this needs a seller note or more buyer cash.",
        "lines": [
          "Asking is $229,000 below the ceiling."
        ],
        "grid_columns": [
          "10.00%",
          "9.25%",
          "8.50%"
        ],
        "grid_rows": [
          "$60,000",
          "$80,000",
          "$100,000"
        ]
      },
      "as_of": "2026-10-02",
      "source_refs": [
        "u1",
        "r1",
        "s1",
        "r2",
        "c1"
      ],
      "actions": [
        {
          "label": "Stress test this",
          "tool": "stress_test_deal",
          "arguments": {
            "sde": 400000,
            "manager_salary": 80000,
            "capex_reserve": 25000,
            "loan_amount": 1488200,
            "interest_rate": 0.1,
            "term_months": 120
          }
        },
        {
          "label": "Find lenders",
          "tool": "find_sba_lenders",
          "arguments": {}
        }
      ],
      "disclaimers": [
        "informational"
      ],
      "deal_id": "00000000-0000-4000-8000-000000000001"
    },
    "run_id": "00000000-0000-4000-8000-000000000002",
    "charge": {
      "credits": 5,
      "price_class": "quick_tool",
      "balance_after": 62,
      "ledger_entry_id": "00000000-0000-4000-8000-000000000003"
    }
  },
  "created_at": "2026-10-05T15:02:11.000Z"
}

Type figures onto a deal (bank deposits, P&L revenue, tax-return receipts)#

POST/v1/deals/{deal_id}/figures

  • Free
  • Scope deals:write

Each figure is user-entered and dated today; proof of cash reads them beside figures read from documents.

Parameters

  • deal_idstringpathrequired
    Deal id from list_deals.
  • Idempotency-Keystring (at least 1 character, up to 255 characters)header
    1 to 255 characters. Recommended on every write and on priced calls: a retry with the same key and body replays the first result and isn't charged again.

Body application/json, form 1 of 2

  • figuresarray of objects (at least 1 item)required
    One or more figures to type onto the deal.
    Show 5 fieldsHide 5 fields
    • labelone of bank_deposits, pl_revenue, return_gross_receipts, return_taxable_income, sderequired
      What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE.
    • periodstring (pattern ^[0-9]{4}(-[0-9]{2})?$)required
      YYYY for a year, YYYY-MM for a month (bank deposits are monthly).
    • valuenumberrequired
      The amount in US dollars; rounded to cents.
    • document_idstring
      A document on this deal the figure came from; leave it out when there is none.
    • pageinteger (min 1)
      The page in that document where the figure appears, counting from 1.

Body application/json, form 2 of 2

  • labelone of bank_deposits, pl_revenue, return_gross_receipts, return_taxable_income, sderequired
    What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE.
  • periodstring (pattern ^[0-9]{4}(-[0-9]{2})?$)required
    YYYY for a year, YYYY-MM for a month (bank deposits are monthly).
  • valuenumberrequired
    The amount in US dollars; rounded to cents.
  • document_idstring
    A document on this deal the figure came from; leave it out when there is none.
  • pageinteger (min 1)
    The page in that document where the figure appears, counting from 1.

Response 201

Saved. Returned in the envelope (computation, sources, gaps, warnings, disclaimer, card, actions, run_id, charge, truncated); data holds the fields below. The deal and the figures just saved.

  • deal_idstring
    The deal the figures were saved to.
  • figuresarray of objects
    The figures as saved, each user-entered and dated today, with its label, period and dollar value.
    Show 6 fieldsHide 6 fields
    • idstringnullable
      The saved figure's ID.
    • labelone of bank_deposits, pl_revenue, return_gross_receipts, return_taxable_income, sderequired
      What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE.
    • periodstring (pattern ^[0-9]{4}(-[0-9]{2})?$)required
      The period the figure covers: YYYY for a year, YYYY-MM for a month.
    • document_idstringnullable
      The document the figure came from; null when it was typed without one.
    • pageintegernullable
      The page in that document; null when none was given.
    • valueFigurerequired
      The amount in dollars, sourced to its document and page or to the person who typed it, dated the day it was recorded.

Errors

Status Code Meaning
400 invalid_header A header has an invalid value
400 invalid_json The body isn't valid JSON
401 unauthorized Sign-in required
403 beta_terms_not_accepted Accept the Beta Terms first
403 beta_terms_unavailable The Beta Terms aren't published yet
403 cross_origin Cross-site request refused
403 deal_access_off This client has no grant for this deal
403 insufficient_scope The key lacks a scope
404 not_found Not found
409 idempotency_in_progress The same request is still running
413 file_too_large File too large
415 unsupported_media_type Unsupported content type
422 idempotency_key_reused Idempotency-Key used for a different call
422 invalid_input An input is out of range or the wrong type
422 missing_input A required input is missing
503 not_configured Not available on this server

Codes any request can meet, such as internal_error, are on problem types. Errors are problem details.

Call

sh
curl -X POST "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/figures" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"figures":[{"label":"bank_deposits","period":"2025-01","value":175000},{"label":"bank_deposits","period":"2025-02","value":175000},{"label":"bank_deposits","period":"2025-03","value":175000},{"label":"bank_deposits","period":"2025-04","value":175000},{"label":"bank_deposits","period":"2025-05","value":175000},{"label":"bank_deposits","period":"2025-06","value":175000},{"label":"bank_deposits","period":"2025-07","value":175000},{"label":"bank_deposits","period":"2025-08","value":175000},{"label":"bank_deposits","period":"2025-09","value":175000},{"label":"bank_deposits","period":"2025-10","value":175000},{"label":"bank_deposits","period":"2025-11","value":175000},{"label":"bank_deposits","period":"2025-12","value":175000},{"label":"pl_revenue","period":"2025","value":2100000},{"label":"return_gross_receipts","period":"2025","value":2080000}]}'
ts
const res = await fetch("https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/figures", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ACQUESTOR_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ figures: [{ label: "bank_deposits", period: "2025-01", value: 175000 }, { label: "bank_deposits", period: "2025-02", value: 175000 }, { label: "bank_deposits", period: "2025-03", value: 175000 }, { label: "bank_deposits", period: "2025-04", value: 175000 }, { label: "bank_deposits", period: "2025-05", value: 175000 }, { label: "bank_deposits", period: "2025-06", value: 175000 }, { label: "bank_deposits", period: "2025-07", value: 175000 }, { label: "bank_deposits", period: "2025-08", value: 175000 }, { label: "bank_deposits", period: "2025-09", value: 175000 }, { label: "bank_deposits", period: "2025-10", value: 175000 }, { label: "bank_deposits", period: "2025-11", value: 175000 }, { label: "bank_deposits", period: "2025-12", value: 175000 }, { label: "pl_revenue", period: "2025", value: 2100000 }, { label: "return_gross_receipts", period: "2025", value: 2080000 }] }),
});
const result = await res.json();
python
import os, requests

r = requests.post(
    "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/figures",
    headers={"Authorization": f"Bearer {os.environ['ACQUESTOR_API_KEY']}"},
    json={"figures": [{"label": "bank_deposits", "period": "2025-01", "value": 175000}, {"label": "bank_deposits", "period": "2025-02", "value": 175000}, {"label": "bank_deposits", "period": "2025-03", "value": 175000}, {"label": "bank_deposits", "period": "2025-04", "value": 175000}, {"label": "bank_deposits", "period": "2025-05", "value": 175000}, {"label": "bank_deposits", "period": "2025-06", "value": 175000}, {"label": "bank_deposits", "period": "2025-07", "value": 175000}, {"label": "bank_deposits", "period": "2025-08", "value": 175000}, {"label": "bank_deposits", "period": "2025-09", "value": 175000}, {"label": "bank_deposits", "period": "2025-10", "value": 175000}, {"label": "bank_deposits", "period": "2025-11", "value": 175000}, {"label": "bank_deposits", "period": "2025-12", "value": 175000}, {"label": "pl_revenue", "period": "2025", "value": 2100000}, {"label": "return_gross_receipts", "period": "2025", "value": 2080000}]},
)
r.raise_for_status()
result = r.json()

Example captured from the running code; lists in the answer cut to 3 items

Response 201
{
  "data": {
    "deal_id": "00000000-0000-4000-8000-000000000001",
    "figures": [
      {
        "id": "00000000-0000-4000-8000-000000000002",
        "label": "bank_deposits",
        "period": "2025-01",
        "document_id": null,
        "page": null,
        "value": {
          "value": 175000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      },
      {
        "id": "00000000-0000-4000-8000-000000000003",
        "label": "bank_deposits",
        "period": "2025-02",
        "document_id": null,
        "page": null,
        "value": {
          "value": 175000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      },
      {
        "id": "00000000-0000-4000-8000-000000000004",
        "label": "bank_deposits",
        "period": "2025-03",
        "document_id": null,
        "page": null,
        "value": {
          "value": 175000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      }
    ]
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_entered",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "You entered this",
      "line": "You entered this, Oct 5, 2026"
    }
  ],
  "gaps": [],
  "disclaimer": "informational"
}

Where each figure comes from

  1. u1You entered this, Oct 5, 2026

Planned#

Operation Does Release
GET /deals/{deal_id}/comments Comments in a deal, from its owner and invited same-side collaborators P1
POST /deals/{deal_id}/comments Comment in a deal (owners and collaborators, including advisors) P1

One section per endpoint, generated from openapi/acquestor.yaml (version 0.10.19) on 2026-11-12. Base URL, authentication and the definition to download are under basics.

Something wrong or missing on this page? Email support@acquestor.com.