{
  "openapi": "3.1.0",
  "info": {
    "title": "CRM Cleanse & Dedupe Edge API",
    "version": "1.0.0",
    "summary": "Normalize E.164 phones, clean names/companies, and fuzzy-deduplicate up to 500 CRM leads in <15ms.",
    "description": "Deterministic international E.164 phone parsing (40+ countries), smart name/email/company normalization, free-webmail vs. corporate domain isolation, and Jaro-Winkler + Soundex fuzzy contact deduplication.\n\nEliminates brittle regexes, trunk-zero E.164 bugs, McDonald/O'Connor casing mistakes, free-webmail false merges, and multi-turn LLM token burn over large lead lists.",
    "contact": {
      "name": "API Keg",
      "url": "https://apikeg.com"
    }
  },
  "servers": [
    {
      "url": "https://crm-cleanse.apikeg.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Keg Key (ak_live_...)",
        "description": "Optional per-email monthly subscription API key ($5/$20/$50 tiers at https://apikeg.com/account). Omit this header to pay per request inline via HTTP 402 (x402 USDC)."
      }
    }
  },
  "security": [
    {},
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/cleanse-contact-batch": {
      "post": {
        "operationId": "cleanse_contact_batch",
        "summary": "Cleanse & Deduplicate Contact Batch",
        "description": "Normalizes emails, international E.164 phones, person names/honorifics, and company legal suffixes across 1-500 CRM records, returning merged canonical uniqueRecords and duplicateClusters. Why call instead of DIY: Replaces 300+ lines of fragile phone/name/Jaro-Winkler code and saves thousands of LLM tokens on 500-row CSV imports; executes deterministically in <15ms. Pricing: $0.001 base (up to $0.01 max ($0.001 minimum + $0.002 per 100 records, capped at $0.01 for up to 500 records), x402 variable settlement). Pass ?dry_run=true on REST to validate schema free.",
        "tags": [
          "crm-automation",
          "revops",
          "data-hygiene",
          "business-ops"
        ],
        "externalDocs": {
          "description": "Cleanse & Deduplicate Contact Batch Specification & Examples",
          "url": "https://crm-cleanse.apikeg.com/tools/cleanse-contact-batch"
        },
        "x-x402": {
          "version": 2,
          "scheme": "upto",
          "priceUsd": "0.001",
          "maxPriceUsd": "0.01",
          "amountAtomicUnits": "10000",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x000000000000000000000000000000000000dEaD",
          "extensions": {
            "bazaar": {
              "discoverable": true,
              "category": [
                "crm-automation",
                "revops",
                "data-hygiene",
                "business-ops"
              ],
              "info": {
                "input": {
                  "type": "http",
                  "method": "POST",
                  "bodyType": "json",
                  "example": {
                    "defaultCountry": "US",
                    "dedupe": true,
                    "matchThreshold": 0.82,
                    "records": [
                      {
                        "fullName": "Dr. Ronald MCDONALD, MBA",
                        "email": "ronald+webinar@ApexCloud.io",
                        "phone": "(415) 555-2671 ext. 402",
                        "company": "Apex Cloud, Inc."
                      },
                      {
                        "firstName": "Ronald",
                        "lastName": "McDonald",
                        "email": "ronald@apexcloud.io",
                        "company": "Apex Cloud LLC"
                      }
                    ]
                  }
                },
                "output": {
                  "type": "json",
                  "summary": "1 unique merged contact and 1 duplicate cluster with exact_email_fingerprint + fuzzy_name_and_company."
                }
              },
              "schema": {
                "inputSchema": {
                  "type": "object",
                  "properties": {
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 128,
                            "description": "Optional caller-supplied CRM record identifier."
                          },
                          "fullName": {
                            "type": "string",
                            "maxLength": 200,
                            "description": "Full person name (may include honorifics/suffixes such as 'Dr. Ronald MCDONALD, MBA')."
                          },
                          "firstName": {
                            "type": "string",
                            "maxLength": 120,
                            "description": "Given/first name if already split."
                          },
                          "lastName": {
                            "type": "string",
                            "maxLength": 120,
                            "description": "Family/last name if already split."
                          },
                          "email": {
                            "type": "string",
                            "maxLength": 320,
                            "description": "Email address (supports +tag subaddressing and free-webmail detection)."
                          },
                          "phone": {
                            "type": "string",
                            "maxLength": 64,
                            "description": "Domestic or international phone string, optionally including an extension."
                          },
                          "country": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 2,
                            "pattern": "^[A-Za-z]{2}$",
                            "description": "Per-record ISO 3166-1 alpha-2 country override for domestic phone parsing."
                          },
                          "company": {
                            "type": "string",
                            "maxLength": 240,
                            "description": "Raw company or organization name (e.g. 'Acme, Inc.' or 'Siemens AG')."
                          },
                          "title": {
                            "type": "string",
                            "maxLength": 160,
                            "description": "Job title or organizational role."
                          },
                          "website": {
                            "type": "string",
                            "maxLength": 512,
                            "description": "Company website URL or domain."
                          }
                        },
                        "additionalProperties": false,
                        "description": "CRM contact or lead record."
                      },
                      "minItems": 1,
                      "maxItems": 500,
                      "description": "Batch of 1 to 500 CRM contact records to normalize and deduplicate."
                    },
                    "defaultCountry": {
                      "type": "string",
                      "default": "US",
                      "minLength": 2,
                      "maxLength": 2,
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "Default ISO 3166-1 alpha-2 country code for domestic phone numbers."
                    },
                    "dedupe": {
                      "type": "boolean",
                      "default": true,
                      "description": "Cluster duplicate records and merge non-null fields into uniqueRecords."
                    },
                    "matchThreshold": {
                      "type": "number",
                      "default": 0.82,
                      "minimum": 0.5,
                      "maximum": 1,
                      "description": "Minimum confidence threshold [0.5-1.0] required to merge duplicate records."
                    }
                  },
                  "required": [
                    "records"
                  ],
                  "additionalProperties": false
                },
                "outputSchema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "_meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "description": "Deterministic structured tool result payload."
                    },
                    "_meta": {
                      "type": "object",
                      "required": [
                        "requestId",
                        "durationMs",
                        "chargedUsd",
                        "dryRun"
                      ],
                      "properties": {
                        "requestId": {
                          "type": "string"
                        },
                        "durationMs": {
                          "type": "number"
                        },
                        "chargedUsd": {
                          "type": "string"
                        },
                        "dryRun": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "dry_run",
            "in": "query",
            "required": false,
            "description": "Validate request schema for free ($0.00) without executing or settling payment.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 128,
                          "description": "Optional caller-supplied CRM record identifier."
                        },
                        "fullName": {
                          "type": "string",
                          "maxLength": 200,
                          "description": "Full person name (may include honorifics/suffixes such as 'Dr. Ronald MCDONALD, MBA')."
                        },
                        "firstName": {
                          "type": "string",
                          "maxLength": 120,
                          "description": "Given/first name if already split."
                        },
                        "lastName": {
                          "type": "string",
                          "maxLength": 120,
                          "description": "Family/last name if already split."
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 320,
                          "description": "Email address (supports +tag subaddressing and free-webmail detection)."
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 64,
                          "description": "Domestic or international phone string, optionally including an extension."
                        },
                        "country": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[A-Za-z]{2}$",
                          "description": "Per-record ISO 3166-1 alpha-2 country override for domestic phone parsing."
                        },
                        "company": {
                          "type": "string",
                          "maxLength": 240,
                          "description": "Raw company or organization name (e.g. 'Acme, Inc.' or 'Siemens AG')."
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 160,
                          "description": "Job title or organizational role."
                        },
                        "website": {
                          "type": "string",
                          "maxLength": 512,
                          "description": "Company website URL or domain."
                        }
                      },
                      "additionalProperties": false,
                      "description": "CRM contact or lead record."
                    },
                    "minItems": 1,
                    "maxItems": 500,
                    "description": "Batch of 1 to 500 CRM contact records to normalize and deduplicate."
                  },
                  "defaultCountry": {
                    "type": "string",
                    "default": "US",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[A-Za-z]{2}$",
                    "description": "Default ISO 3166-1 alpha-2 country code for domestic phone numbers."
                  },
                  "dedupe": {
                    "type": "boolean",
                    "default": true,
                    "description": "Cluster duplicate records and merge non-null fields into uniqueRecords."
                  },
                  "matchThreshold": {
                    "type": "number",
                    "default": 0.82,
                    "minimum": 0.5,
                    "maximum": 1,
                    "description": "Minimum confidence threshold [0.5-1.0] required to merge duplicate records."
                  }
                },
                "required": [
                  "records"
                ],
                "additionalProperties": false
              },
              "example": {
                "defaultCountry": "US",
                "dedupe": true,
                "matchThreshold": 0.82,
                "records": [
                  {
                    "fullName": "Dr. Ronald MCDONALD, MBA",
                    "email": "ronald+webinar@ApexCloud.io",
                    "phone": "(415) 555-2671 ext. 402",
                    "company": "Apex Cloud, Inc."
                  },
                  {
                    "firstName": "Ronald",
                    "lastName": "McDonald",
                    "email": "ronald@apexcloud.io",
                    "company": "Apex Cloud LLC"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful execution result.",
            "headers": {
              "PAYMENT-RESPONSE": {
                "description": "Base64-encoded x402 v2 payment settlement receipt (when paid).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object"
                    },
                    "_meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string"
                        },
                        "durationMs": {
                          "type": "number"
                        },
                        "chargedUsd": {
                          "type": "string"
                        },
                        "dryRun": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Schema validation error (unbilled, $0.00)."
          },
          "402": {
            "description": "Payment Required. Decode the Base64 PAYMENT-REQUIRED header and retry with PAYMENT-SIGNATURE.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "Base64-encoded x402 v2 PaymentRequired JSON object.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compare-contact-pair": {
      "post": {
        "operationId": "compare_contact_pair",
        "summary": "Compare Two Contacts for Duplicate Match",
        "description": "Computes field-by-field normalized similarity (email fingerprint, E.164 phone, Jaro-Winkler + Soundex name, company key, corporate domain) and returns an isMatch merge recommendation. Why call instead of DIY: Instant deterministic entity-resolution check for webhook/CRM pre-insert hooks at $0.0005 per pair. Pricing: $0.0005 USD per contact pair comparison (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
        "tags": [
          "crm-automation",
          "revops",
          "data-hygiene",
          "business-ops"
        ],
        "externalDocs": {
          "description": "Compare Two Contacts for Duplicate Match Specification & Examples",
          "url": "https://crm-cleanse.apikeg.com/tools/compare-contact-pair"
        },
        "x-x402": {
          "version": 2,
          "scheme": "exact",
          "priceUsd": "0.0005",
          "amountAtomicUnits": "500",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x000000000000000000000000000000000000dEaD",
          "extensions": {
            "bazaar": {
              "discoverable": true,
              "category": [
                "crm-automation",
                "revops",
                "data-hygiene",
                "business-ops"
              ],
              "info": {
                "input": {
                  "type": "http",
                  "method": "POST",
                  "bodyType": "json",
                  "example": {
                    "defaultCountry": "GB",
                    "matchThreshold": 0.82,
                    "recordA": {
                      "fullName": "Jon Smyth",
                      "phone": "07911 123456",
                      "company": "Albion Analytics Ltd"
                    },
                    "recordB": {
                      "fullName": "John Smith",
                      "phone": "+44 7911 123456",
                      "company": "Albion Analytics Limited"
                    }
                  }
                },
                "output": {
                  "type": "json",
                  "summary": "isMatch=true, recommendation='merge' with exact_phone_e164, fuzzy_name_and_company, and phonetic_name_match."
                }
              },
              "schema": {
                "inputSchema": {
                  "type": "object",
                  "properties": {
                    "recordA": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 128,
                          "description": "Optional caller-supplied CRM record identifier."
                        },
                        "fullName": {
                          "type": "string",
                          "maxLength": 200,
                          "description": "Full person name (may include honorifics/suffixes such as 'Dr. Ronald MCDONALD, MBA')."
                        },
                        "firstName": {
                          "type": "string",
                          "maxLength": 120,
                          "description": "Given/first name if already split."
                        },
                        "lastName": {
                          "type": "string",
                          "maxLength": 120,
                          "description": "Family/last name if already split."
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 320,
                          "description": "Email address (supports +tag subaddressing and free-webmail detection)."
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 64,
                          "description": "Domestic or international phone string, optionally including an extension."
                        },
                        "country": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[A-Za-z]{2}$",
                          "description": "Per-record ISO 3166-1 alpha-2 country override for domestic phone parsing."
                        },
                        "company": {
                          "type": "string",
                          "maxLength": 240,
                          "description": "Raw company or organization name (e.g. 'Acme, Inc.' or 'Siemens AG')."
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 160,
                          "description": "Job title or organizational role."
                        },
                        "website": {
                          "type": "string",
                          "maxLength": 512,
                          "description": "Company website URL or domain."
                        }
                      },
                      "additionalProperties": false,
                      "description": "CRM contact or lead record."
                    },
                    "recordB": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 128,
                          "description": "Optional caller-supplied CRM record identifier."
                        },
                        "fullName": {
                          "type": "string",
                          "maxLength": 200,
                          "description": "Full person name (may include honorifics/suffixes such as 'Dr. Ronald MCDONALD, MBA')."
                        },
                        "firstName": {
                          "type": "string",
                          "maxLength": 120,
                          "description": "Given/first name if already split."
                        },
                        "lastName": {
                          "type": "string",
                          "maxLength": 120,
                          "description": "Family/last name if already split."
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 320,
                          "description": "Email address (supports +tag subaddressing and free-webmail detection)."
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 64,
                          "description": "Domestic or international phone string, optionally including an extension."
                        },
                        "country": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[A-Za-z]{2}$",
                          "description": "Per-record ISO 3166-1 alpha-2 country override for domestic phone parsing."
                        },
                        "company": {
                          "type": "string",
                          "maxLength": 240,
                          "description": "Raw company or organization name (e.g. 'Acme, Inc.' or 'Siemens AG')."
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 160,
                          "description": "Job title or organizational role."
                        },
                        "website": {
                          "type": "string",
                          "maxLength": 512,
                          "description": "Company website URL or domain."
                        }
                      },
                      "additionalProperties": false,
                      "description": "CRM contact or lead record."
                    },
                    "defaultCountry": {
                      "type": "string",
                      "default": "US",
                      "minLength": 2,
                      "maxLength": 2,
                      "pattern": "^[A-Za-z]{2}$",
                      "description": "Default ISO 3166-1 alpha-2 country code for domestic phone numbers."
                    },
                    "matchThreshold": {
                      "type": "number",
                      "default": 0.82,
                      "minimum": 0.5,
                      "maximum": 1,
                      "description": "Minimum confidence threshold [0.5-1.0] required to recommend merging."
                    }
                  },
                  "required": [
                    "recordA",
                    "recordB"
                  ],
                  "additionalProperties": false
                },
                "outputSchema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "_meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "description": "Deterministic structured tool result payload."
                    },
                    "_meta": {
                      "type": "object",
                      "required": [
                        "requestId",
                        "durationMs",
                        "chargedUsd",
                        "dryRun"
                      ],
                      "properties": {
                        "requestId": {
                          "type": "string"
                        },
                        "durationMs": {
                          "type": "number"
                        },
                        "chargedUsd": {
                          "type": "string"
                        },
                        "dryRun": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "dry_run",
            "in": "query",
            "required": false,
            "description": "Validate request schema for free ($0.00) without executing or settling payment.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "recordA": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 128,
                        "description": "Optional caller-supplied CRM record identifier."
                      },
                      "fullName": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "Full person name (may include honorifics/suffixes such as 'Dr. Ronald MCDONALD, MBA')."
                      },
                      "firstName": {
                        "type": "string",
                        "maxLength": 120,
                        "description": "Given/first name if already split."
                      },
                      "lastName": {
                        "type": "string",
                        "maxLength": 120,
                        "description": "Family/last name if already split."
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 320,
                        "description": "Email address (supports +tag subaddressing and free-webmail detection)."
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 64,
                        "description": "Domestic or international phone string, optionally including an extension."
                      },
                      "country": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[A-Za-z]{2}$",
                        "description": "Per-record ISO 3166-1 alpha-2 country override for domestic phone parsing."
                      },
                      "company": {
                        "type": "string",
                        "maxLength": 240,
                        "description": "Raw company or organization name (e.g. 'Acme, Inc.' or 'Siemens AG')."
                      },
                      "title": {
                        "type": "string",
                        "maxLength": 160,
                        "description": "Job title or organizational role."
                      },
                      "website": {
                        "type": "string",
                        "maxLength": 512,
                        "description": "Company website URL or domain."
                      }
                    },
                    "additionalProperties": false,
                    "description": "CRM contact or lead record."
                  },
                  "recordB": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 128,
                        "description": "Optional caller-supplied CRM record identifier."
                      },
                      "fullName": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "Full person name (may include honorifics/suffixes such as 'Dr. Ronald MCDONALD, MBA')."
                      },
                      "firstName": {
                        "type": "string",
                        "maxLength": 120,
                        "description": "Given/first name if already split."
                      },
                      "lastName": {
                        "type": "string",
                        "maxLength": 120,
                        "description": "Family/last name if already split."
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 320,
                        "description": "Email address (supports +tag subaddressing and free-webmail detection)."
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 64,
                        "description": "Domestic or international phone string, optionally including an extension."
                      },
                      "country": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[A-Za-z]{2}$",
                        "description": "Per-record ISO 3166-1 alpha-2 country override for domestic phone parsing."
                      },
                      "company": {
                        "type": "string",
                        "maxLength": 240,
                        "description": "Raw company or organization name (e.g. 'Acme, Inc.' or 'Siemens AG')."
                      },
                      "title": {
                        "type": "string",
                        "maxLength": 160,
                        "description": "Job title or organizational role."
                      },
                      "website": {
                        "type": "string",
                        "maxLength": 512,
                        "description": "Company website URL or domain."
                      }
                    },
                    "additionalProperties": false,
                    "description": "CRM contact or lead record."
                  },
                  "defaultCountry": {
                    "type": "string",
                    "default": "US",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[A-Za-z]{2}$",
                    "description": "Default ISO 3166-1 alpha-2 country code for domestic phone numbers."
                  },
                  "matchThreshold": {
                    "type": "number",
                    "default": 0.82,
                    "minimum": 0.5,
                    "maximum": 1,
                    "description": "Minimum confidence threshold [0.5-1.0] required to recommend merging."
                  }
                },
                "required": [
                  "recordA",
                  "recordB"
                ],
                "additionalProperties": false
              },
              "example": {
                "defaultCountry": "GB",
                "matchThreshold": 0.82,
                "recordA": {
                  "fullName": "Jon Smyth",
                  "phone": "07911 123456",
                  "company": "Albion Analytics Ltd"
                },
                "recordB": {
                  "fullName": "John Smith",
                  "phone": "+44 7911 123456",
                  "company": "Albion Analytics Limited"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful execution result.",
            "headers": {
              "PAYMENT-RESPONSE": {
                "description": "Base64-encoded x402 v2 payment settlement receipt (when paid).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object"
                    },
                    "_meta": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string"
                        },
                        "durationMs": {
                          "type": "number"
                        },
                        "chargedUsd": {
                          "type": "string"
                        },
                        "dryRun": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Schema validation error (unbilled, $0.00)."
          },
          "402": {
            "description": "Payment Required. Decode the Base64 PAYMENT-REQUIRED header and retry with PAYMENT-SIGNATURE.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "Base64-encoded x402 v2 PaymentRequired JSON object.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}