{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coudrebros-eu/json-schema/coudrebros-eu-atomic-mint-request-schema.json",
  "title": "AtomicMintRequest",
  "description": "Same information as MintRequest, but with no payment_tx -- the payment\nand the mint are the same transaction here, so there is nothing to\nreference separately.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coudrebros-eu-openapi.yml#/components/schemas/AtomicMintRequest",
  "properties": {
    "ipfs_hash": {
      "type": "string",
      "pattern": "^(Qm[1-9A-HJ-NP-Za-km-z]{44}|bafy[a-z2-7]{50,}|bafk[a-z2-7]{50,})$",
      "title": "Ipfs Hash",
      "description": "IPFS CID of the main asset (image, or video for video NFTs)"
    },
    "ipfs_hash_thumbnail": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(Qm[1-9A-HJ-NP-Za-km-z]{44}|bafy[a-z2-7]{50,}|bafk[a-z2-7]{50,})$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ipfs Hash Thumbnail",
      "description": "IPFS CID of a still-image thumbnail. Required when asset_kind is 'video'."
    },
    "asset_kind": {
      "type": "string",
      "enum": [
        "image",
        "video"
      ],
      "title": "Asset Kind",
      "description": "Type of asset being minted",
      "default": "image"
    },
    "nft_name": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9 ._-]+$",
      "title": "Nft Name",
      "description": "On-chain asset name (max 32 characters; letters, digits, spaces, and . _ - only)"
    },
    "description": {
      "type": "string",
      "maxLength": 500,
      "pattern": "^[^<>]*$",
      "title": "Description",
      "description": "Free-text description embedded in the NFT's CIP-25 metadata (no < or > characters, and no javascript:/vbscript:/data: URIs)",
      "default": ""
    },
    "from_address": {
      "type": "string",
      "pattern": "^addr1[a-z0-9]+$",
      "title": "From Address",
      "description": "Cardano address that will fund this transaction's mint fee -- must sign the transaction this endpoint returns before it can be submitted. Must be a mainnet address (starts with 'addr1')."
    },
    "destination_address": {
      "type": "string",
      "pattern": "^addr1[a-z0-9]+$",
      "title": "Destination Address",
      "description": "Cardano address to receive the minted NFT. Must be a mainnet address (starts with 'addr1')."
    }
  },
  "type": "object",
  "required": [
    "ipfs_hash",
    "nft_name",
    "from_address",
    "destination_address"
  ]
}