openapi: 3.0.3 x-reviewed-on: 2026-10-09 info: title: Pareto API - Vault Epochs version: 2026-10-09 description: Authenticated vault accounting epochs and lender history. servers: - url: https://api.pareto.credit/v1 security: - bearerAuth: [] paths: /vault-epochs: get: operationId: listVaultEpochs summary: List vault epochs tags: - Vault Epochs parameters: - name: _id in: query style: form explode: false schema: description: List of item IDs. type: array minItems: 1 maxItems: 200 items: type: string pattern: ^[a-f0-9]{24}$ - name: vaultId in: query style: form explode: false schema: description: The vault IDentifier type: array minItems: 1 maxItems: 200 items: type: string pattern: ^[a-f0-9]{24}$ - name: vaultAddress in: query style: form explode: false schema: description: The vault blockchain address type: array minItems: 1 maxItems: 200 items: type: string pattern: ^0x[a-fA-F0-9]{40}$ - name: status in: query schema: description: The status that must match type: string enum: - WAITING - RUNNING - DEFAULTED - FINISHED - CURE - name: includeTransactionHashes in: query schema: description: Whether to load epoch boundary transaction hashes type: boolean - name: apr in: query schema: description: The epoch gross APR that must match type: number - name: apr:lt in: query schema: description: The epoch gross APR less than type: number - name: apr:gte in: query schema: description: The epoch gross APR greater or equal than type: number - name: apr:gt in: query schema: description: The epoch gross APR greater than type: number - name: apr:lte in: query schema: description: The epoch gross APR less or equal than type: number - name: duration in: query schema: description: The epoch duration that must match type: number - name: duration:lt in: query schema: description: The epoch duration less than type: number - name: duration:lte in: query schema: description: The epoch duration less or equal than type: number - name: duration:gt in: query schema: description: The epoch duration greater than type: number - name: duration:gte in: query schema: description: The epoch duration greater or equal than type: number - name: count in: query schema: description: The epoch number that must match type: number - name: count:lt in: query schema: description: The epoch number less then type: number - name: count:lte in: query schema: description: The epoch number less or equal than type: number - name: count:gt in: query schema: description: The epoch number greater than type: number - name: count:gte in: query schema: description: The epoch number greater or equal than type: number - name: timestamp:gte in: query schema: description: The epoch block timestamp greater or equal than type: number - name: timestamp:lte in: query schema: description: The epoch block timestamp less or equal than type: number - name: startDate in: query schema: description: The epoch start date equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: startDate:lt in: query schema: description: The epoch start date less than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: startDate:gte in: query schema: description: The epoch start date greater or equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: startDate:gt in: query schema: description: The epoch start date greater than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: startDate:lte in: query schema: description: The epoch start date less or equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: endDate in: query schema: description: The epoch end date equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: endDate:lt in: query schema: description: The epoch start date equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: endDate:gte in: query schema: description: The epoch start date equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: endDate:gt in: query schema: description: The epoch start date equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: endDate:lte in: query schema: description: The epoch start date equal than type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ - name: limit in: query schema: description: Number of requested items. type: integer minimum: 1 maximum: 200 default: 50 - name: offset in: query schema: description: Number of skipped items. type: integer minimum: 0 - name: sort in: query schema: description: The field to use to sort the items. type: string enum: - _id - count - timestamp - apr - name: order in: query schema: description: Sort order of the items. type: string enum: - asc - desc - name: fields in: query style: form explode: false schema: description: Fields to include in the response. type: array items: type: string enum: - _id - block - APRs - TVL - totalSupply - price - deposits - duration - bufferDuration - unclaimedFees - expectedInterest - startDate - endDate - count - status - withdrawType - depositQueue - withdrawQueue - withdraws - instantWithdraws - createdAt - updatedAt responses: "200": description: Paginated epochs. Items may be field projections. content: application/json: schema: $ref: "#/components/schemas/VaultEpochPage" "400": description: Invalid request parameters. Correct the request before retrying. "401": description: An issued, valid API key is required. "403": description: The requested business data is outside the integration key access. "429": description: Request volume has been limited. Reduce frequency and honor Retry-After when supplied. 5XX: description: Service or upstream failure. Retry transient read failures with bounded backoff. /vault-epochs/lender-trend: get: operationId: getVaultEpochLenderTrend summary: Get completed-epoch lender counts tags: - Vault Epochs parameters: - name: vaultId in: query required: true schema: type: string - name: endDate:gt in: query schema: type: string format: date-time responses: "200": description: Lender count per completed materialized epoch. content: application/json: schema: type: array items: $ref: "#/components/schemas/LenderTrendValue" example: - date: 2026-09-30T00:00:00.000Z lenders: 42 "400": description: Invalid request parameters. Correct the request before retrying. "401": description: An issued, valid API key is required. "403": description: The requested business data is outside the integration key access. "429": description: Request volume has been limited. Reduce frequency and honor Retry-After when supplied. 5XX: description: Service or upstream failure. Retry transient read failures with bounded backoff. components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: API access token description: Pareto API access token supplied as a Bearer token. schemas: VaultEpoch: type: object additionalProperties: true properties: startSnapshot: type: object additionalProperties: false properties: price: type: string totalSupply: type: string transactionHash: type: string pattern: ^0x[a-fA-F0-9]{64}$ block: type: object additionalProperties: false properties: number: type: number timestamp: type: number description: Unix timestamp in seconds. required: - number - timestamp required: - price - totalSupply - transactionHash - block stopSnapshot: type: object additionalProperties: false properties: price: type: string totalSupply: type: string transactionHash: type: string pattern: ^0x[a-fA-F0-9]{64}$ block: type: object additionalProperties: false properties: number: type: number timestamp: type: number description: Unix timestamp in seconds. required: - number - timestamp required: - price - totalSupply - transactionHash - block APRs: type: object additionalProperties: false properties: EPOCH: type: number BUFFER: type: number CURE: type: number GROSS: type: number NET: type: number FEE: type: number DELTA: type: number required: - EPOCH - BUFFER - GROSS - NET - DELTA APYs: type: object additionalProperties: false properties: GROSS: type: number NET: type: number FEE: type: number required: - GROSS - NET - FEE interest: type: object additionalProperties: false properties: NET: type: string FEE: type: string GROSS: type: string required: - NET - FEE - GROSS fee: type: object additionalProperties: false properties: PERFORMANCE: type: string MANAGEMENT: type: string WITHDRAWALS: type: string required: - PERFORMANCE - MANAGEMENT feePercentage: type: object additionalProperties: false properties: PERFORMANCE: type: number minimum: 0 MANAGEMENT: type: number minimum: 0 required: - PERFORMANCE - MANAGEMENT totalSupply: type: string price: type: string TVL: type: object additionalProperties: false properties: token: type: string USD: type: string withRequestsToken: description: TVL including pending deposits and withdraws type: string withRequestsUSD: description: TVL + pending requests converted in USD type: string required: - token - USD creditExtended: type: object additionalProperties: false properties: token: type: string USD: type: string required: - token - USD expectedInterest: type: string unclaimedFees: type: string deposits: type: string duration: type: number status: type: string enum: - WAITING - RUNNING - DEFAULTED - FINISHED - CURE withdrawType: type: string enum: - INSTANT - STANDARD count: type: number bufferDuration: type: number startDate: type: string endDate: type: string withdraws: type: object additionalProperties: false properties: amount: type: string fees: type: string principal: type: string interest: type: string required: - amount - fees depositQueue: type: object additionalProperties: false properties: amount: type: string epochWithdrawPrice: type: string status: type: string enum: - PENDING - PROCESSED required: - amount - status withdrawQueue: type: object additionalProperties: false properties: amount: type: string epochWithdrawPrice: type: string status: type: string enum: - PENDING - PROCESSED required: - amount - status instantWithdraws: type: object additionalProperties: false properties: amount: type: string delay: type: number aprDelta: type: number allowed: type: boolean deadline: type: string required: - amount - delay - aprDelta - allowed vaultId: type: string pattern: ^[a-f0-9]{24}$ vaultAddress: type: string pattern: ^0x[a-fA-F0-9]{40}$ block: type: object additionalProperties: false properties: number: type: number timestamp: type: number description: Unix timestamp in seconds. required: - number - timestamp _id: readOnly: true description: Entity ID. type: string pattern: ^[a-f0-9]{24}$ createdAt: description: Entity creation date. type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ updatedAt: description: The last-update date. type: string pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$ startTransactionHash: type: string pattern: ^0x[a-fA-F0-9]{64}$ stopTransactionHash: type: string pattern: ^0x[a-fA-F0-9]{64}$ VaultEpochPage: type: object required: - data - totalCount properties: data: type: array items: $ref: "#/components/schemas/VaultEpoch" totalCount: type: integer minimum: 0 LenderTrendValue: type: object required: - date - lenders properties: date: type: string format: date-time lenders: type: integer minimum: 0