{
  "openapi": "3.1.0",
  "info": {
    "title": "Assay A2A, MCP & x402 Pre-Flight Security Verifier & Observatory",
    "version": "0.7.32",
    "description": "Cryptographic pre-flight security audit, schema conformance & TDQS reputation verifier for A2A, MCP, and x402 endpoints.",
    "x-guidance": "Use GET or POST /v1/certify or /v1/audit with ?target=https://agentdiet.dev to verify any A2A, MCP, or x402 endpoint.",
    "contact": {
      "name": "Assay Security Observatory",
      "email": "roberto.yanguas@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://assay.agentdiet.dev"
    }
  ],
  "paths": {
    "/v1/certify": {
      "get": {
        "operationId": "certifyEndpointGet",
        "summary": "Run a cryptographic pre-flight security & TDQS certification on an endpoint",
        "x-payment-info": {
          "offers": [
            {
              "method": "tempo",
              "intent": "charge",
              "amount": "5000",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "description": "Run a cryptographic pre-flight security & TDQS certification on an endpoint"
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            },
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "description": "Target A2A/MCP/x402 endpoint URL to audit and certify",
            "schema": {
              "type": "string",
              "default": "https://agentdiet.dev"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "default": "https://agentdiet.dev"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed Assay TDQS Audit & Security Certificate",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "grade",
                    "score"
                  ],
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "grade": {
                      "type": "string"
                    },
                    "score": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 v2 or MPP)"
          }
        }
      },
      "post": {
        "operationId": "certifyEndpointPost",
        "summary": "Run a cryptographic pre-flight security & TDQS certification on an endpoint",
        "x-payment-info": {
          "offers": [
            {
              "method": "tempo",
              "intent": "charge",
              "amount": "5000",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "description": "Run a cryptographic pre-flight security & TDQS certification on an endpoint"
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            },
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "description": "Target A2A/MCP/x402 endpoint URL to audit and certify",
            "schema": {
              "type": "string",
              "default": "https://agentdiet.dev"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "default": "https://agentdiet.dev"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed Assay TDQS Audit & Security Certificate",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "grade",
                    "score"
                  ],
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "grade": {
                      "type": "string"
                    },
                    "score": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 v2 or MPP)"
          }
        }
      }
    },
    "/v1/audit": {
      "get": {
        "operationId": "auditEndpointGet",
        "summary": "Deep protocol & security audit of an A2A/MCP/x402 endpoint",
        "x-payment-info": {
          "offers": [
            {
              "method": "tempo",
              "intent": "charge",
              "amount": "5000",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "description": "Deep protocol & security audit of an A2A/MCP/x402 endpoint"
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            },
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "description": "Target A2A/MCP/x402 endpoint URL to audit and certify",
            "schema": {
              "type": "string",
              "default": "https://x402broker.com"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "default": "https://x402broker.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed Assay TDQS Audit & Security Certificate",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "grade",
                    "score"
                  ],
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "grade": {
                      "type": "string"
                    },
                    "score": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 v2 or MPP)"
          }
        }
      },
      "post": {
        "operationId": "auditEndpointPost",
        "summary": "Deep protocol & security audit of an A2A/MCP/x402 endpoint",
        "x-payment-info": {
          "offers": [
            {
              "method": "tempo",
              "intent": "charge",
              "amount": "5000",
              "currency": "0x20C000000000000000000000b9537d11c60E8b50",
              "description": "Deep protocol & security audit of an A2A/MCP/x402 endpoint"
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.005000"
          },
          "protocols": [
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20C000000000000000000000b9537d11c60E8b50"
              }
            },
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "description": "Target A2A/MCP/x402 endpoint URL to audit and certify",
            "schema": {
              "type": "string",
              "default": "https://x402broker.com"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "default": "https://x402broker.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed Assay TDQS Audit & Security Certificate",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "grade",
                    "score"
                  ],
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "grade": {
                      "type": "string"
                    },
                    "score": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required (x402 v2 or MPP)"
          }
        }
      }
    }
  }
}