Skip to main content
POST
Creates a standing policy for one deployer wallet or one collateral token and answers 201. This is a database write: nothing is signed and nothing goes on chain. What a policy does, and what it never does, is set out on List Standing Policies.
A policy never takes a role. Every market it matches is still adopted with one transaction signed by the lender’s own wallet through Accept Lender Role.
Only an account Trusset approved as a lender of record can write policies. Any other account is refused with 403 CURATOR_NOT_APPROVED before the body is read. An instance holds one policy per kind and address: a second one is refused with 409 STANDING_POLICY_EXISTS, so change the existing one with Update Standing Policy.

Body Parameters

string
required
DEPLOYER to match markets deployed by address, or COLLATERAL_TOKEN to match markets whose collateral token is address. When a market matches an enabled policy of each kind, the DEPLOYER policy wins.
string
required
The deployer wallet or collateral token, 0x followed by 40 hex characters, not the zero address. Matched exactly and stored lowercased.
string
Your name for the policy, at most 120 characters. Trimmed, and a blank label is stored as null.
string | null
A template of this instance’s terms library, 1 to 100 characters. Confirm Lender Role publishes it as the terms of use of a market adopted under the policy while the market has none. An archived template is refused with 409 TEMPLATE_ARCHIVED. Omit it or send null to bind none.
object | null
The loan agreement policy a market adopted under this policy starts with: { mode, validityDays?, autoIssue?, autoIssueMaxAmount?, frameworkValidityDays?, requestAccess? }, with mode OFF, OPTIONAL or REQUIRED, validityDays 1 to 365 (default 30), autoIssue (default false), autoIssueMaxAmount a decimal borrow amount or null, frameworkValidityDays 7 to 1830 or null, and requestAccess ANY (default) or BANK_ONLY. Any other key is refused. A mode other than OFF needs the Scale plan (402 AGREEMENT_FEATURE_REQUIRED). It applies only to markets adopted after it is saved, and never over a market’s own policy. The response adds agreementPolicySetAt.
object | null
The adoption values the issuer app pre-fills for a matching market. Every key is optional. Any key not listed here is refused with 400 VALIDATION_ERROR. Leave a key out to leave it unset: null or an empty string as a value is refused with 400 VALIDATION_ERROR. An empty object is stored as null.
boolean
default:"true"
false creates the policy switched off. A switched-off policy matches no market.

Response Fields

object
The queue reflects a write at once: List Queued Markets is read fresh on the next call.

Error Codes