{
  "x402Version": 2,
  "id": 34975,
  "slug": "34975",
  "resource": "https://api.mekler.ai/v1/data/csv/validate-data",
  "description": "Validate CSV before import using a fixed JSON column specification. Checks missing/extra columns, required cells, string/integer/decimal/boolean/date types, uniqueness, allowed values and numeric/row-count bounds. Returns pass/fail with row/column error codes. POST JSON with csv and spec.columns; schemas/examples attached. Full contract: /openapi.json. Max 2,000 rows, 50 columns, 256 KiB; first 50 failures. No formulas, cross-column rules, fact checking or data repair.",
  "type": "http",
  "serviceName": "Mekler AI",
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "9mMDrHabSf73MPn1ANdANSmsNw2wKiqE7JZ7eD6EUSRc",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF6c6E2e530bb311c14a49C1a07C720fc232c07c5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "boundary": {
            "type": "string"
          },
          "failure_count": {
            "minimum": 0,
            "type": "integer"
          },
          "failures": {
            "items": {
              "properties": {
                "code": {
                  "enum": [
                    "missing_column",
                    "extra_columns",
                    "row_width",
                    "required",
                    "type",
                    "min",
                    "max",
                    "enum",
                    "unique",
                    "min_rows",
                    "max_rows"
                  ],
                  "type": "string"
                },
                "column": {
                  "description": "Column name, or null when the error applies to the row or file.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "row": {
                  "description": "One-based data record, excluding header; null for file/header errors.",
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "code",
                "row",
                "column"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "failures_truncated": {
            "type": "boolean"
          },
          "receipt_sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "type": "string"
          },
          "rows_checked": {
            "minimum": 0,
            "type": "integer"
          },
          "schema_version": {
            "enum": [
              1
            ],
            "type": "integer"
          },
          "verdict": {
            "enum": [
              "pass",
              "fail"
            ],
            "type": "string"
          }
        },
        "required": [
          "schema_version",
          "verdict",
          "rows_checked",
          "failure_count",
          "failures",
          "failures_truncated",
          "receipt_sha256",
          "boundary"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "csv": "id,amount\na,12.50\na,-2.00\n",
            "spec": {
              "columns": [
                {
                  "name": "id",
                  "required": true,
                  "type": "string",
                  "unique": true
                },
                {
                  "max": "100",
                  "min": "0",
                  "name": "amount",
                  "required": true,
                  "type": "decimal"
                }
              ],
              "min_rows": 1
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "boundary": "Only supplied explicit criteria checked; no certification of truth or subjective quality.",
            "failure_count": 2,
            "failures": [
              {
                "code": "unique",
                "column": "id",
                "row": 2
              },
              {
                "code": "min",
                "column": "amount",
                "row": 2
              }
            ],
            "failures_truncated": false,
            "receipt_sha256": "32265ae46050fa0067b9adb0df085a5cf3d9fa3d47d91e9ea2f61135a382d8ac",
            "rows_checked": 2,
            "schema_version": 1,
            "verdict": "fail"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "csv": {
                    "description": "UTF-8 comma-delimited CSV with header. No trimming. Data record numbers start at 1; quoted newlines are one record.",
                    "type": "string"
                  },
                  "spec": {
                    "additionalProperties": false,
                    "properties": {
                      "allow_extra_columns": {
                        "default": false,
                        "description": "If false, reject CSV headers not named in columns.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Fixed built-in checks. Every named column must exist, even when required is false.",
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "enum": {
                              "description": "Exact allowed cell strings, compared without trimming or normalization.",
                              "items": {
                                "maxLength": 1000,
                                "type": "string"
                              },
                              "maxItems": 100,
                              "minItems": 1,
                              "type": "array"
                            },
                            "max": {
                              "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "min": {
                              "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 100,
                              "minLength": 1,
                              "type": "string"
                            },
                            "required": {
                              "default": false,
                              "description": "Reject empty cells. Whitespace is not trimmed.",
                              "type": "boolean"
                            },
                            "type": {
                              "description": "string: literal text; integer: base-10, no plus sign or leading zeros; decimal: plain decimal, no exponent; boolean: lowercase true/false; date: valid YYYY-MM-DD.",
                              "enum": [
                                "string",
                                "integer",
                                "decimal",
                                "boolean",
                                "date"
                              ],
                              "type": "string"
                            },
                            "unique": {
                              "default": false,
                              "description": "Reject repeated nonempty values within this column; numeric values compare numerically.",
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name",
                            "type"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "max_rows": {
                        "default": 2000,
                        "maximum": 2000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "min_rows": {
                        "default": 0,
                        "maximum": 2000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "columns"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "csv",
                  "spec"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "boundary": {
                    "type": "string"
                  },
                  "failure_count": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "failures": {
                    "items": {
                      "properties": {
                        "code": {
                          "enum": [
                            "missing_column",
                            "extra_columns",
                            "row_width",
                            "required",
                            "type",
                            "min",
                            "max",
                            "enum",
                            "unique",
                            "min_rows",
                            "max_rows"
                          ],
                          "type": "string"
                        },
                        "column": {
                          "description": "Column name, or null when the error applies to the row or file.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "row": {
                          "description": "One-based data record, excluding header; null for file/header errors.",
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "row",
                        "column"
                      ],
                      "type": "object"
                    },
                    "maxItems": 50,
                    "type": "array"
                  },
                  "failures_truncated": {
                    "type": "boolean"
                  },
                  "receipt_sha256": {
                    "pattern": "^[0-9a-f]{64}$",
                    "type": "string"
                  },
                  "rows_checked": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "schema_version": {
                    "enum": [
                      1
                    ],
                    "type": "integer"
                  },
                  "verdict": {
                    "enum": [
                      "pass",
                      "fail"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "schema_version",
                  "verdict",
                  "rows_checked",
                  "failure_count",
                  "failures",
                  "failures_truncated",
                  "receipt_sha256",
                  "boundary"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "csv",
    "data-validation",
    "data-quality",
    "bazaar"
  ],
  "sourceHost": "api.mekler.ai",
  "lastUpdated": "2026-10-08T16:14:51.296Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T16:14:49.908Z"
  },
  "metadata": {
    "serviceName": "Mekler AI",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "csv": "id,amount\na,12.50\na,-2.00\n",
              "spec": {
                "columns": [
                  {
                    "name": "id",
                    "required": true,
                    "type": "string",
                    "unique": true
                  },
                  {
                    "max": "100",
                    "min": "0",
                    "name": "amount",
                    "required": true,
                    "type": "decimal"
                  }
                ],
                "min_rows": 1
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "boundary": "Only supplied explicit criteria checked; no certification of truth or subjective quality.",
              "failure_count": 2,
              "failures": [
                {
                  "code": "unique",
                  "column": "id",
                  "row": 2
                },
                {
                  "code": "min",
                  "column": "amount",
                  "row": 2
                }
              ],
              "failures_truncated": false,
              "receipt_sha256": "32265ae46050fa0067b9adb0df085a5cf3d9fa3d47d91e9ea2f61135a382d8ac",
              "rows_checked": 2,
              "schema_version": 1,
              "verdict": "fail"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "csv": {
                      "description": "UTF-8 comma-delimited CSV with header. No trimming. Data record numbers start at 1; quoted newlines are one record.",
                      "type": "string"
                    },
                    "spec": {
                      "additionalProperties": false,
                      "properties": {
                        "allow_extra_columns": {
                          "default": false,
                          "description": "If false, reject CSV headers not named in columns.",
                          "type": "boolean"
                        },
                        "columns": {
                          "description": "Fixed built-in checks. Every named column must exist, even when required is false.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "enum": {
                                "description": "Exact allowed cell strings, compared without trimming or normalization.",
                                "items": {
                                  "maxLength": 1000,
                                  "type": "string"
                                },
                                "maxItems": 100,
                                "minItems": 1,
                                "type": "array"
                              },
                              "max": {
                                "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                                "oneOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "min": {
                                "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                                "oneOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "name": {
                                "maxLength": 100,
                                "minLength": 1,
                                "type": "string"
                              },
                              "required": {
                                "default": false,
                                "description": "Reject empty cells. Whitespace is not trimmed.",
                                "type": "boolean"
                              },
                              "type": {
                                "description": "string: literal text; integer: base-10, no plus sign or leading zeros; decimal: plain decimal, no exponent; boolean: lowercase true/false; date: valid YYYY-MM-DD.",
                                "enum": [
                                  "string",
                                  "integer",
                                  "decimal",
                                  "boolean",
                                  "date"
                                ],
                                "type": "string"
                              },
                              "unique": {
                                "default": false,
                                "description": "Reject repeated nonempty values within this column; numeric values compare numerically.",
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "type"
                            ],
                            "type": "object"
                          },
                          "maxItems": 50,
                          "minItems": 1,
                          "type": "array"
                        },
                        "max_rows": {
                          "default": 2000,
                          "maximum": 2000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "min_rows": {
                          "default": 0,
                          "maximum": 2000,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "columns"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "csv",
                    "spec"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "boundary": {
                      "type": "string"
                    },
                    "failure_count": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "failures": {
                      "items": {
                        "properties": {
                          "code": {
                            "enum": [
                              "missing_column",
                              "extra_columns",
                              "row_width",
                              "required",
                              "type",
                              "min",
                              "max",
                              "enum",
                              "unique",
                              "min_rows",
                              "max_rows"
                            ],
                            "type": "string"
                          },
                          "column": {
                            "description": "Column name, or null when the error applies to the row or file.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "row": {
                            "description": "One-based data record, excluding header; null for file/header errors.",
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "code",
                          "row",
                          "column"
                        ],
                        "type": "object"
                      },
                      "maxItems": 50,
                      "type": "array"
                    },
                    "failures_truncated": {
                      "type": "boolean"
                    },
                    "receipt_sha256": {
                      "pattern": "^[0-9a-f]{64}$",
                      "type": "string"
                    },
                    "rows_checked": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "schema_version": {
                      "enum": [
                        1
                      ],
                      "type": "integer"
                    },
                    "verdict": {
                      "enum": [
                        "pass",
                        "fail"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "schema_version",
                    "verdict",
                    "rows_checked",
                    "failure_count",
                    "failures",
                    "failures_truncated",
                    "receipt_sha256",
                    "boundary"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.mekler.ai",
    "manifest_name": "api.mekler.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "boundary": "string",
      "failure_count": 0,
      "failures": [
        {
          "code": "missing_column",
          "column": "string",
          "row": 0
        }
      ],
      "failures_truncated": true,
      "receipt_sha256": "string",
      "rows_checked": 0,
      "schema_version": 1,
      "verdict": "pass"
    },
    "type": "string"
  }
}