Terms of Use
Export Terms
Download a market terms of use as a PDF, plain text or markdown file
GET
Returns the market’s current terms of use as a file an institution can archive. The PDF header carries what makes a printed copy checkable against the API: the market, the collateral token, the version and the content hash.
A successful call answers with the file itself, not the JSON envelope. Failures answer with the usual JSON error body.
What is exported depends on the caller. An instance that could author the terms receives the current record even when it is a draft or was unpublished. It qualifies when one of its verified wallets is the lender of record or holds the market’s admin or issuer role. Every other instance receives published terms only, exactly as Get Terms serves them.
Path Parameters
string
required
Market ID.
Query Parameters
string
default:"pdf"
pdf, text or markdown. Any other value is refused with VALIDATION_ERROR.Response
The file name isLending-Terms-{symbol}-v{version} with the extension of the format. {symbol} is the collateral token symbol reduced to letters and digits, at most 12 characters, or MARKET when there is none.
Every format is sent with
Content-Disposition: attachment.
The PDF opens with the title and a block of facts. It lists the market and collateral token addresses, the ISIN when the market records one, the lender of record, the version and the content hash. The publication time, the network and environment, the retrieving instance’s name and the generation time follow. The document body comes next, and every page carries a footer with the title, the version and the market address.
The Lender of record line prints the terms’ curatorAddress. That is the wallet that saved the version, which can be a wallet holding the market’s admin or issuer role rather than the lender of record’s own.
