> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molq.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Harden externally realized USDe profit

> Operator-only. Requires profit hardening to be explicitly enabled and the keeper to hold the requested USDe.



## OpenAPI

````yaml /openapi.json post /api/execution/vault/harden
openapi: 3.1.0
info:
  title: MolQ API
  version: 1.0.0
  description: >-
    Live MolQ vault, market, agent, and execution state. Public endpoints are
    read-only. Operator endpoints require an explicitly configured credential.
servers:
  - url: https://api.molq.site
security: []
tags:
  - name: System
  - name: Portfolio
  - name: Agent
  - name: Execution
paths:
  /api/execution/vault/harden:
    post:
      tags:
        - Execution
      summary: Harden externally realized USDe profit
      description: >-
        Operator-only. Requires profit hardening to be explicitly enabled and
        the keeper to hold the requested USDe.
      operationId: hardenProfit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - grossProfitUsd
                - idempotencyKey
              properties:
                grossProfitUsd:
                  type: number
                  exclusiveMinimum: 0
                idempotencyKey:
                  type: string
                  minLength: 8
                  maxLength: 128
      responses:
        '200':
          description: Profit was returned, charged, and reallocated
        '400':
          $ref: '#/components/responses/BadRequest'
      security:
        - operatorKey: []
components:
  responses:
    BadRequest:
      description: Validation, authorization, configuration, or execution error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    operatorKey:
      type: apiKey
      in: header
      name: X-Molq-Operator-Key
      description: >-
        Private operator credential. Never expose this key in a browser or
        public client.

````