{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentry-com/json-schema/agentry-com-invoice-request-schema.json",
  "title": "InvoiceRequest",
  "description": "Request to create a Lightning invoice.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentry-com-lightning-api-openapi.yml#/components/schemas/InvoiceRequest",
  "properties": {
    "amount_sats": {
      "type": "integer",
      "maximum": 1000000.0,
      "minimum": 1.0,
      "title": "Amount Sats",
      "description": "Amount in satoshis (1-1,000,000)"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "Invoice description",
      "default": "Agentry payment"
    },
    "dvm_pubkey": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dvm Pubkey",
      "description": "If paying for a DVM request, the DVM's pubkey"
    }
  },
  "type": "object",
  "required": [
    "amount_sats"
  ]
}