Skip to content

The desk

The UPB API.

Institutional sellers push tapes and read the bids on them. Pro buyers read the live book, their buy-box matches, their own inquiries and their holdings. Keys are stored as a hash and sent as a bearer token.

Keys and limits

Send every request with Authorization: Bearer upb_… . Sellers mint keys at Seller API. Pro buyers mint them at Buyer API, which needs Pro, a live trial included, and a buyer file the desk approved. A key belongs to the account, so every seat on a firm's account reads the same thing through it.

Each key may make 120 requests a minute. Past that, the API answers 429 with a Retry-After header in seconds and a JSON body with error and retryAfter. Wait that long, then go on.

Every call a key makes is logged for 90 days: the time, the method, the path with the query's values left out, the status the call was answered with (the route's own answer, or the key check's refusal) and a keyed hash of the caller's address, never the address. Past the allowance, or with a revoked key, the first refusal each minute is logged. The key's owner sees them under Recent calls on the Buyer API or Seller API page, with a CSV of the 90 days, and the desk can see them too.

Every error is JSON with an error sentence. 401 means the key is unknown, revoked, or its account is suspended or closed. 403 adds a code: pro_required when the account's Pro has lapsed, which pauses every buyer key until Pro is back, and scope_missing when the key wasn't given the scope the endpoint needs. 400 means a query parameter can't be read, and 404 means the record isn't one this key may see.

403 after a trial ends

{
  "code": "pro_required",
  "error": "This account's Pro trial ended on Nov 2, 2026. Buyer API keys need Pro. Subscribe at /buyer/subscription and the key works again."
}

Buyer scopes

A buyer key carries the scopes picked when it was minted. A seller key has tapes:write and offers:read.

  • listings:read · Read live listings
  • matches:read · Read buy-box matches
  • offers:read · Read offers
  • holdings:read · Read holdings

Paging

Buyer lists come oldest change first, then by id. limit sets the page size, 50 by default and at most 100. When more rows follow, nextCursor is set: send it back as cursor for the next page, with the same filters. It is null on the last page.

updated_since takes an ISO 8601 time and returns only rows that changed at or after it. To keep a copy in sync, store the newest updatedAt you received and send it on the next pass. A row that changes during a sync moves to the end and comes back on that next pass, so the same row can arrive twice with nothing new in it.

Buyer endpoints

GET /api/v1/listings

Live listings this account may see: taking bids or in contract, and past any launch date. A private sale shows only to the buyers its seller invited, and a seller who excludes the account shows none of theirs. Scope listings:read.

Filters, all optional: state (two letters), lien_position (FIRST, SECOND, THIRD, OTHER), payment_status (PERFORMING, SUB_PERFORMING, NON_PERFORMING), loan_program (CONVENTIONAL, FHA, VA, USDA, PRIVATE, OTHER), max_ltv (percent), min_upb and max_upb (dollars). Lien, status and program take several values, comma-separated. A pool is judged as the book judges it: its balance and LTV on the loans still for sale, its state, lien, performance and program on any one loan. A loan whose tape states no program matches no loan_program filter.

cra=1 lists CRA-eligible paper only: a loan whose tape puts the property in a low- or moderate-income census tract, or marks the borrower LMI. A pool matches when any loan still for sale does. This is UPB's simplified reading of the tape; your CRA officer and regulator decide what counts. Each loan in a listing carries censusTract, tractIncomeLevel and lmiBorrower, null where the tape lacks them.

price_cut=1 lists only listings whose latest move on the ask in the last 30 days was a cut, as the book's price-cut filter reads it. price_cut=0 or leaving it out is no filter.

Request

curl -H "Authorization: Bearer upb_…" \
  "https://upbcapital.com/api/v1/listings?state=FL&lien_position=FIRST&max_ltv=80&limit=50"

Response

{
  "listings": [
    {
      "id": "cm3k9x2ab0001",
      "title": "Orlando SFR first lien",
      "kind": "SINGLE",
      "status": "APPROVED",
      "private": false,
      "loanCount": 1,
      "loansForSale": 1,
      "states": [
        "FL"
      ],
      "lienPositions": [
        "FIRST"
      ],
      "paymentStatuses": [
        "NON_PERFORMING"
      ],
      "upb": 182400,
      "askingPrice": 118000,
      "lastPriceCut": {
        "percent": 7.1,
        "at": "2026-11-06T14:00:00.000Z"
      },
      "estimatedValue": 265000,
      "ltv": 68.83,
      "priceToUpb": 64.69,
      "currentYield": null,
      "noteRate": 6.25,
      "buyNowPrice": null,
      "saleFormat": "SEALED",
      "bidDeadline": "2026-11-20T21:00:00.000Z",
      "approvedAt": "2026-11-02T15:04:00.000Z",
      "updatedAt": "2026-11-08T09:12:44.000Z",
      "webUrl": "https://upbcapital.com/marketplace/cm3k9x2ab0001",
      "seller": "Credit union"
    }
  ],
  "nextCursor": "WyIyMDI2LTExLTA4VDA5OjEyOjQ0LjAwMFoiLCJjbTNrOXgyYWIwMDAxIl0"
}

Money is in dollars and ratios in percent. saleFormat is NONE for open offers, SEALED or BEST_AND_FINAL. bidDeadline is set when a round has one. updatedAt moves when the listing or its price changes. lastPriceCut is the latest move on the ask in the last 30 days when it was a cut: percent is how far the ask fell, to one decimal, and at is when. It is null otherwise, and turns null 30 days after the cut without moving updatedAt.

GET /api/v1/listings/:id

One live listing's summary and loan tape, as a signed-in buyer reads it before the confidentiality agreement. It never carries data-room files, the street, zip or borrower, the loan number, MERS or eNote ids, the seller's memo, or anyone's bid. seller is the seller's type, such as Credit union or Bank, until this account is in the listing's data room, and then the seller's name. paused is true when the seller hasn't reconfirmed the loans are still available: the listing is off the book and takes no bids until they do. confirmedAvailableAt is the seller's latest confirmation. otherBidders is how many other firms hold a live bid, where the seller chose to show it: count runs from 0 to 5, orMore is true at 5 or more, and label is the line the listing page shows. A firm counts once however many seats it has, a group once, and the desk's own book once. It is null when the seller hasn't chosen it, once the round's deadline passes, or once a bid is accepted, and it never carries an amount, a rank or when anyone bid. priceHistory lists each move on the ask while the listing was live, oldest first: at, the ask before and after across the loans that moved, and loans, how many moved. It never says who moved it. Each loan lists every other tape field, null where the tape lacks it. A value estimate shows only where it came from a real provider. Scope listings:read.

Response, shortened

{
  "id": "cm3k9x2ab0001",
  "title": "Orlando SFR first lien",
  "kind": "SINGLE",
  "status": "APPROVED",
  "private": false,
  "loanCount": 1,
  "loansForSale": 1,
  "states": [
    "FL"
  ],
  "lienPositions": [
    "FIRST"
  ],
  "paymentStatuses": [
    "NON_PERFORMING"
  ],
  "upb": 182400,
  "askingPrice": 118000,
  "lastPriceCut": {
    "percent": 7.1,
    "at": "2026-11-06T14:00:00.000Z"
  },
  "estimatedValue": 265000,
  "ltv": 68.83,
  "priceToUpb": 64.69,
  "currentYield": null,
  "noteRate": 6.25,
  "buyNowPrice": null,
  "saleFormat": "SEALED",
  "bidDeadline": "2026-11-20T21:00:00.000Z",
  "approvedAt": "2026-11-02T15:04:00.000Z",
  "updatedAt": "2026-11-08T09:12:44.000Z",
  "webUrl": "https://upbcapital.com/marketplace/cm3k9x2ab0001",
  "seller": "Credit union",
  "summary": "Vacant SFR, foreclosure filed, BPO in the room.",
  "loans": [
    {
      "id": "cm3k9x2ab0002",
      "city": "Orlando",
      "state": "FL",
      "tradeStatus": "AVAILABLE",
      "askingPrice": 118000,
      "propertyType": "SFR",
      "occupancy": "VACANT",
      "lienPosition": "FIRST",
      "paymentStatus": "NON_PERFORMING",
      "monthsDelinquent": 14,
      "foreclosureStatus": "LIS_PENDENS",
      "interestRate": 6.25,
      "monthlyPi": 1123.4,
      "upb": 182400,
      "estimatedValue": 265000,
      "lastPaidDate": "2025-08-01T00:00:00.000Z",
      "originationDate": "2019-04-12T00:00:00.000Z",
      "maturityDate": "2049-05-01T00:00:00.000Z",
      "payString": "999999999999",
      "creditScore": 612,
      "valueEstimate": null,
      "valueEstimateProvider": null,
      "valueEstimateAsOf": null
    }
  ],
  "priceHistory": [
    {
      "at": "2026-11-06T14:00:00.000Z",
      "before": 127000,
      "after": 118000,
      "loans": 1
    }
  ],
  "otherBidders": {
    "count": 2,
    "orMore": false,
    "label": "2 other bidders"
  }
}

GET /api/v1/matches

Live listings that fit one of the account's buy boxes, with the score and the reasons. indicativePrice is the box's own standing price where it has one, and binds nothing until you confirm it as a bid. updatedAt is when the match was made or its standing price last moved. Scope matches:read.

Response

{
  "matches": [
    {
      "id": "cm3kb1m4c0007",
      "listingId": "cm3k9x2ab0001",
      "listing": "Orlando SFR first lien",
      "listingStatus": "APPROVED",
      "buyBoxId": "cm3j7q0zd0003",
      "buyBox": "Florida firsts",
      "buyBoxActive": true,
      "score": 86,
      "reasons": [
        "In FL",
        "First lien",
        "LTV 69%"
      ],
      "indicativePrice": null,
      "matchedAt": "2026-11-02T15:05:10.000Z",
      "updatedAt": "2026-11-02T15:05:10.000Z",
      "webUrl": "https://upbcapital.com/marketplace/cm3k9x2ab0001"
    }
  ],
  "nextCursor": null
}

GET /api/v1/offers and GET /api/v1/offers/:id

With a buyer key, the account's own bids and requests and where each stands: OPEN, REVIEWED, ACCEPTED, DECLINED, WITHDRAWN or EXPIRED. amount is your own latest price. counter is a price the desk or the seller put to you that you haven't answered, and counterFrom says whose it is. No other bidder's amount is ever here. updatedAt is the latest message, counter, withdrawal or closing, so use the offer.status webhook to hear every change as it happens. Scope offers:read.

Response

{
  "offers": [
    {
      "id": "cm3kc8f2e0011",
      "type": "OFFER",
      "status": "REVIEWED",
      "listingId": "cm3k9x2ab0001",
      "listing": "Orlando SFR first lien",
      "noteId": null,
      "amount": 112000,
      "counter": 116500,
      "counterFrom": "desk",
      "expiresAt": "2026-11-30T00:00:00.000Z",
      "withdrawnAt": null,
      "closingId": null,
      "createdAt": "2026-11-04T13:22:08.000Z",
      "updatedAt": "2026-11-06T10:41:51.000Z",
      "webUrl": "https://upbcapital.com/marketplace/cm3k9x2ab0001"
    }
  ],
  "nextCursor": null
}

GET /api/v1/holdings

Notes the account holds, as its portfolio lists them: closed trades and notes added by hand. updatedAt for paging is the acquisition date. Scope holdings:read.

Response

{
  "holdings": [
    {
      "id": "cm3kd2h9f0014",
      "title": "Tampa performing second",
      "listingId": "cm3h1v6ya0020",
      "closingId": "cm3jx4n8b0031",
      "status": "CURRENT",
      "costBasis": 41250,
      "upb": 58800,
      "sharePercent": null,
      "underwrittenYield": 13.4,
      "acquiredAt": "2026-10-15T00:00:00.000Z"
    }
  ],
  "nextCursor": null
}

Buyer webhooks

Add an https endpoint on a public host at Buyer API and pick its events. Events go only while the account has Pro. Bodies carry ids and the listing's public terms, never a street, a borrower, a data-room file or another bidder's amount; read the rest from the endpoints above.

  • listing.matched · A new listing fits a buy box
  • listing.repriced · A saved listing has a new price
  • listing.deadline · Bids on a saved listing close within a day
  • offer.status · One of your bids or requests changes status

listing.matched goes when a listing goes live and fits a buy box, once per buyer, naming the best-scoring box. listing.repriced goes when a listing you saved has a new ask; previousAsk and ask cover the loans whose price moved. listing.deadline goes once, about a day before bids close on a listing you saved. offer.status goes when one of your bids or requests is placed, countered, accepted, declined, withdrawn or expires. change is created, countered, accepted, declined or expired, status is where it stands now, and reason says why where there is one, such as another_bid_accepted or withdrawn.

listing.repriced

{
  "event": "listing.repriced",
  "sentAt": "2026-11-09T14:00:03.000Z",
  "listingId": "cm3k9x2ab0001",
  "title": "Orlando SFR first lien",
  "saleFormat": "NONE",
  "bidDeadline": null,
  "webUrl": "https://upbcapital.com/marketplace/cm3k9x2ab0001",
  "loansRepriced": 1,
  "previousAsk": 118000,
  "ask": 109500
}

offer.status

{
  "event": "offer.status",
  "sentAt": "2026-11-21T16:30:12.000Z",
  "inquiryId": "cm3kc8f2e0011",
  "listingId": "cm3k9x2ab0001",
  "type": "OFFER",
  "status": "DECLINED",
  "change": "declined",
  "reason": "another_bid_accepted"
}

Connect an AI assistant (MCP)

An AI assistant or agent that speaks the Model Context Protocol can read the account through the buyer API. The server is at https://upbcapital.com/api/mcp. It takes the same buyer API key, sent as Authorization: Bearer upb_… on every request, so any MCP client that can send that header connects. The key's scopes and the Pro rule apply as on the endpoints above.

It is read-only: no tool bids, messages or changes anything. Each tool reads one buyer endpoint and answers what that endpoint would for the key, so the assistant gets nothing the API wouldn't give. Each tool call counts as one API call toward the 120 a minute and is logged under Recent calls with that endpoint's path. Connecting and listing the tools aren't counted.

  • search_listings · live listings this account may see, with the book's filters. GET /api/v1/listings, scope listings:read
  • get_listing · one listing's summary and loan tape. GET /api/v1/listings/:id, scope listings:read
  • list_matches · live listings that fit one of the account's buy boxes. GET /api/v1/matches, scope matches:read
  • list_offers · the account's own bids and requests and where each stands. GET /api/v1/offers, scope offers:read
  • get_offer · one of the account's own bids or requests. GET /api/v1/offers/:id, scope offers:read
  • list_holdings · the notes the account holds, as its portfolio lists them. GET /api/v1/holdings, scope holdings:read

A refusal comes back as the tool's error, in the API's own words: a missing scope, lapsed Pro, a record the key may not see, or the wait after too many calls. The transport is streamable HTTP, answered as plain JSON with no event stream or session, in protocol versions 2025-06-18, 2025-03-26, 2024-11-05.

Claude Code

claude mcp add --transport http upb https://upbcapital.com/api/mcp \
  --header "Authorization: Bearer YOUR_KEY"

JSON config, for clients that take one

{
  "mcpServers": {
    "upb": {
      "type": "http",
      "url": "https://upbcapital.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}

The assistant reads whatever the key's scopes allow. A key with only listings:read keeps it to the book, and revoking the key at Buyer API cuts it off.

From claude.ai, ChatGPT and other connectors that sign in

A connector that can't send a header signs in instead. Add a custom connector with the server URL above. It sends you to UPB, where you sign in and approve it on a screen that names the app as it named itself, the address it returns to and what it may read. The owner or a managing seat of a Pro buyer account with an approved buyer file can approve. The app then reads with the scopes you approved, on access tokens that last an hour and that it renews itself, and the same rules and the same 120 a minute apply. Revoke it any time under Connected apps on Buyer API.

For other clients: this is OAuth 2.1 as the MCP authorization spec asks, with dynamic registration for public clients, the authorization code flow with PKCE (S256 only), and refresh tokens that change on every use. The server's 401 points to https://upbcapital.com/.well-known/oauth-protected-resource, and the endpoints are listed at https://upbcapital.com/.well-known/oauth-authorization-server.

Seller endpoints

POST /api/v1/tapes with JSON. title is the pool name. csv is the tape, using the same headers as the upload template. ownership is the version of the ownership statement the seller gives, "2026-11": the seller owns these loans or holds the owner's written mandate, and they are not pledged or sold elsewhere. A tape without it is refused. The listing is submitted for review and the response is listingId and loans. Scope tapes:write.

GET /api/v1/offers returns bids on listings this key’s account owns: id, status, amount, listing title. GET /api/v1/offers/:id returns one of them. On a sealed listing before its deadline, amount is null, sealed is true, and the message history is empty. Scope offers:read.

A seller's webhook receives offer.created, offer.accepted, offer.declined, and offer.countered, and you can pick which for each endpoint. An offer declined because another bid won carries reason another_bid_accepted.

Signatures and retries

The body is JSON. x-upb-signature is the hex HMAC-SHA256 of the raw body, using the secret shown once when the endpoint is saved. x-upb-event names the event.

Answer a webhook with any 2xx status. Anything else, or no answer within five seconds, counts as a failure, and the same body is sent again after 1 minute, 10 minutes, 1 hour, 6 hours and 24 hours, then no more. Every try carries x-upb-delivery, which stays the same across tries, and x-upb-attempt, which counts them, so you can drop a repeat. The Seller API and Buyer API pages list recent deliveries with their answers and can send any one again.

Scheduled jobs are separate. A host can call GET /api/cron with Authorization: Bearer $CRON_SECRET, or run npm run jobs on a worker. That sends buy-box digests, task reminders, bid-deadline notices, closing-step reminders, the new owner’s sale-notice reminders, closed-auction notices, data-room destruction requests, webhook retries, and retention cleanup.

Education · FAQ · Results · Journal · API