{
  "x402Version": 2,
  "id": 3452,
  "slug": "3452",
  "resource": "https://artifact-inspector.use.x402atlas.com/file",
  "description": "File type and MIME/media type inspector — identify bounded content by magic bytes and return SHA-256, size, and extension consistency without unpacking, malware scanning, or safety claims.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "utilities",
      "info": {
        "input": {
          "body": {
            "content_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=",
            "filename": "pixel.png"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "algorithm_version": "go-content-sniff-v1",
            "operation": "file-inspect",
            "result": {
              "extension": ".png",
              "extension_matches": true,
              "extension_media_type": "image/png",
              "filename_provided": true,
              "media_type": "image/png",
              "sha256": "431ced6916a2a21a156e38701afe55bbd7f88969fbbfc56d7fe099d47f265460",
              "size": 68,
              "warnings": []
            },
            "warnings": [
              "Media-type sniffing and extension consistency are not malware, macro, archive-content, execution-safety, or general file-safety results."
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "content_base64": {
                    "description": "Canonical standard base64 for zero to 1 MiB caller-provided bytes; never a URL",
                    "maxLength": 1398104,
                    "minLength": 0,
                    "type": "string"
                  },
                  "filename": {
                    "description": "Optional synthetic base filename used only for extension comparison; paths are rejected",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "content_base64"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "_atlas": {
                    "additionalProperties": false,
                    "description": "Atlas documentation and related-route metadata added after deployment",
                    "properties": {
                      "docs": {
                        "description": "Documentation URL for this bridge",
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "related": {
                        "description": "Bounded related Atlas routes",
                        "items": {
                          "additionalProperties": false,
                          "description": "One related Atlas route",
                          "properties": {
                            "bridge": {
                              "description": "Related bridge name",
                              "maxLength": 64,
                              "type": "string"
                            },
                            "docs": {
                              "description": "Related bridge documentation URL",
                              "format": "uri",
                              "maxLength": 512,
                              "type": "string"
                            },
                            "summary": {
                              "description": "Short capability summary",
                              "maxLength": 256,
                              "type": "string"
                            },
                            "url": {
                              "description": "Related route URL",
                              "format": "uri",
                              "maxLength": 512,
                              "type": "string"
                            }
                          },
                          "required": [
                            "bridge",
                            "url",
                            "docs",
                            "summary"
                          ],
                          "type": "object"
                        },
                        "maxItems": 3,
                        "type": "array"
                      }
                    },
                    "required": [
                      "docs"
                    ],
                    "type": "object"
                  },
                  "algorithm_version": {
                    "const": "go-content-sniff-v1",
                    "description": "Pinned bounded Go content-sniffing contract",
                    "type": "string"
                  },
                  "operation": {
                    "const": "file-inspect",
                    "description": "Stable operation name",
                    "type": "string"
                  },
                  "result": {
                    "additionalProperties": false,
                    "description": "Bounded content-sniffing and integrity result",
                    "properties": {
                      "extension": {
                        "description": "Lowercase filename extension or empty",
                        "type": "string"
                      },
                      "extension_matches": {
                        "description": "Comparison result or null when no registered extension was available",
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "extension_media_type": {
                        "description": "Registered media type for the extension or empty",
                        "type": "string"
                      },
                      "filename_provided": {
                        "description": "Whether a synthetic filename was supplied",
                        "type": "boolean"
                      },
                      "media_type": {
                        "description": "Bounded magic-sniffed media type; application/octet-stream means unknown",
                        "type": "string"
                      },
                      "sha256": {
                        "description": "SHA-256 of the decoded bytes",
                        "pattern": "^[0-9a-f]{64}$",
                        "type": "string"
                      },
                      "size": {
                        "description": "Decoded byte length",
                        "maximum": 1048576,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "warnings": {
                        "description": "Extension consistency warnings",
                        "items": {
                          "description": "Human-readable warning",
                          "type": "string"
                        },
                        "maxItems": 4,
                        "type": "array"
                      }
                    },
                    "required": [
                      "size",
                      "sha256",
                      "media_type",
                      "filename_provided",
                      "extension",
                      "extension_media_type",
                      "extension_matches",
                      "warnings"
                    ],
                    "type": "object"
                  },
                  "warnings": {
                    "description": "Route-level safety limitations",
                    "items": {
                      "description": "Human-readable warning",
                      "type": "string"
                    },
                    "maxItems": 4,
                    "type": "array"
                  }
                },
                "required": [
                  "operation",
                  "algorithm_version",
                  "result",
                  "warnings"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "file-type",
        "media-type",
        "mime-type",
        "content-sniff",
        "sha256"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "artifact-inspector.use.x402atlas.com",
  "lastUpdated": "2026-09-15T06:32:38.919Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-15T06:32:38.801Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "artifact-inspector.use.x402atlas.com",
    "manifest_name": "artifact-inspector.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}