Skip to main content
POST
Plan Repay

Plan Repay

Creates a plan to repay borrowed assets and withdraw collateral. Returns a plan ID and an EIP-712 digest that must be signed to authorize execution.

Request

Path parameters

Body parameters

Examples

Response (201 Created)

Response fields

Errors

Notes

  • Plans expire after 2 minutes. Sign and execute via Execute Plan before expiry.
  • The market parameter is required for Morpho and must be a valid 32-byte market ID.
  • The resulting activity will have action_type: "COMET_REPAY" (Compound) or "MORPHO_REPAY" (Morpho) in its metadata.