{
  "x402Version": 2,
  "id": 7900,
  "slug": "7900",
  "resource": "https://i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws/v1/document-structured-extractor",
  "description": "Extract structured fields and source evidence from supported documents using task-specific profiles such as tenders, invoices, contract dates, and privacy policies. Returns schema-validated JSON with confidence and page/source references.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x94bab5853bff59401b355371f9c4b8ca6d6eca9d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "fields": [
              {
                "name": "total",
                "type": "number"
              }
            ],
            "profile": "generic-key-values",
            "source": {
              "text": "Invoice total: $125.00",
              "type": "text"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "evidenceRequired": true,
            "fields": {},
            "profile": "generic-key-values",
            "truncatedByBudget": false,
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "fields": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "description": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "profile": {
                    "enum": [
                      "tender",
                      "invoice",
                      "contract-dates",
                      "privacy-policy",
                      "generic-key-values"
                    ],
                    "type": "string"
                  },
                  "source": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "type": {
                            "const": "url",
                            "type": "string"
                          },
                          "url": {
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "url"
                        ],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "text": {
                            "type": "string"
                          },
                          "type": {
                            "const": "text",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "data": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "type": {
                            "const": "base64",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "data",
                          "mimeType"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "profile",
                  "source"
                ],
                "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": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "evidenceRequired": {
                    "type": "boolean"
                  },
                  "fields": {
                    "additionalProperties": {
                      "additionalProperties": false,
                      "properties": {
                        "confidence": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "page": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "sourceText": {
                          "type": "string"
                        },
                        "unknownReason": {
                          "type": "string"
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "value",
                        "confidence"
                      ],
                      "type": "object"
                    },
                    "propertyNames": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "profile": {
                    "type": "string"
                  },
                  "truncatedByBudget": {
                    "type": "boolean"
                  },
                  "warnings": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "profile",
                  "fields",
                  "evidenceRequired",
                  "warnings",
                  "truncatedByBudget"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "required": false
    }
  },
  "tags": [
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws",
  "lastUpdated": "2026-09-16T18:06:29.514Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-16T18:06:29.35Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws",
    "manifest_name": "i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}