{
  "openapi": "3.1.0",
  "info": {
    "title": "AgentLab Services",
    "version": "1.0.0",
    "description": "Deterministic micro-services with a signed quality receipt on every result. Verify quality before you pay."
  },
  "servers": [
    {
      "url": "https://sigmaintelligence.online"
    }
  ],
  "x-payments": {
    "protocol": "x402",
    "network": "eip155:8453",
    "asset": "USDC",
    "pay_to": "0x93bB43a85F3D72aB7dF6D4c9E628065B279ac81e"
  },
  "x-trust": {
    "scheme": "ed25519-quality-receipt",
    "verify_before_pay": true
  },
  "paths": {
    "/preview/market_brief": {
      "post": {
        "operationId": "preview_market_brief",
        "summary": "FREE signed preview of market_brief",
        "description": "Evidence-backed demand/pain/opportunity brief for a topic (HN + StackExchange + GitHub signals). Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/market_brief": {
      "post": {
        "operationId": "call_market_brief",
        "summary": "PAID market_brief (x402)",
        "description": "Evidence-backed demand/pain/opportunity brief for a topic (HN + StackExchange + GitHub signals). Requires x402 payment (0.25 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/screen_message": {
      "post": {
        "operationId": "preview_screen_message",
        "summary": "FREE signed preview of screen_message",
        "description": "Phishing / social-engineering risk score for a message. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/screen_message": {
      "post": {
        "operationId": "call_screen_message",
        "summary": "PAID screen_message (x402)",
        "description": "Phishing / social-engineering risk score for a message. Requires x402 payment (0.02 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/verify_text": {
      "post": {
        "operationId": "preview_verify_text",
        "summary": "FREE signed preview of verify_text",
        "description": "Deterministic quality check of a deliverable against a spec (length, coverage, honesty, structure). Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/verify_text": {
      "post": {
        "operationId": "call_verify_text",
        "summary": "PAID verify_text (x402)",
        "description": "Deterministic quality check of a deliverable against a spec (length, coverage, honesty, structure). Requires x402 payment (0.05 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/clean_csv": {
      "post": {
        "operationId": "preview_clean_csv",
        "summary": "FREE signed preview of clean_csv",
        "description": "Clean, dedupe and normalize a CSV; returns a tidy CSV. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/clean_csv": {
      "post": {
        "operationId": "call_clean_csv",
        "summary": "PAID clean_csv (x402)",
        "description": "Clean, dedupe and normalize a CSV; returns a tidy CSV. Requires x402 payment (0.1 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/rank_opportunities": {
      "post": {
        "operationId": "preview_rank_opportunities",
        "summary": "FREE signed preview of rank_opportunities",
        "description": "Rank candidate money/leads by euros-per-hour and speed-to-cash toward a target. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/rank_opportunities": {
      "post": {
        "operationId": "call_rank_opportunities",
        "summary": "PAID rank_opportunities (x402)",
        "description": "Rank candidate money/leads by euros-per-hour and speed-to-cash toward a target. Requires x402 payment (0.15 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/audit_opportunity": {
      "post": {
        "operationId": "preview_audit_opportunity",
        "summary": "FREE signed preview of audit_opportunity",
        "description": "Conservative fit, fee, scam, eligibility and pay audit for a work opportunity. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/audit_opportunity": {
      "post": {
        "operationId": "call_audit_opportunity",
        "summary": "PAID audit_opportunity (x402)",
        "description": "Conservative fit, fee, scam, eligibility and pay audit for a work opportunity. Requires x402 payment (0.12 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/productize_service": {
      "post": {
        "operationId": "preview_productize_service",
        "summary": "FREE signed preview of productize_service",
        "description": "Turn a raw capability into a fixed-scope, priced, machine-readable commercial offer. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/productize_service": {
      "post": {
        "operationId": "call_productize_service",
        "summary": "PAID productize_service (x402)",
        "description": "Turn a raw capability into a fixed-scope, priced, machine-readable commercial offer. Requires x402 payment (0.08 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/notarize": {
      "post": {
        "operationId": "preview_notarize",
        "summary": "FREE signed preview of notarize",
        "description": "Proof-of-existence: signed, timestamped receipt binding any content to a hash (IP/plagiarism/audit). Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/notarize": {
      "post": {
        "operationId": "call_notarize",
        "summary": "PAID notarize (x402)",
        "description": "Proof-of-existence: signed, timestamped receipt binding any content to a hash (IP/plagiarism/audit). Requires x402 payment (0.03 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/honesty_audit": {
      "post": {
        "operationId": "preview_honesty_audit",
        "summary": "FREE signed preview of honesty_audit",
        "description": "Honesty linter for AI output: flags unsupported certifications, fabricated authority and uncited statistics. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/honesty_audit": {
      "post": {
        "operationId": "call_honesty_audit",
        "summary": "PAID honesty_audit (x402)",
        "description": "Honesty linter for AI output: flags unsupported certifications, fabricated authority and uncited statistics. Requires x402 payment (0.06 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/endpoint_safety": {
      "post": {
        "operationId": "preview_endpoint_safety",
        "summary": "FREE signed preview of endpoint_safety",
        "description": "Verify-before-you-pay: pre-flight scam/liveness/https screen of an x402 or MCP endpoint. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/endpoint_safety": {
      "post": {
        "operationId": "call_endpoint_safety",
        "summary": "PAID endpoint_safety (x402)",
        "description": "Verify-before-you-pay: pre-flight scam/liveness/https screen of an x402 or MCP endpoint. Requires x402 payment (0.1 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/attest_quality": {
      "post": {
        "operationId": "preview_attest_quality",
        "summary": "FREE signed preview of attest_quality",
        "description": "QA notary: independently quality-check ANOTHER agent's deliverable and issue a signed pass/fail. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/attest_quality": {
      "post": {
        "operationId": "call_attest_quality",
        "summary": "PAID attest_quality (x402)",
        "description": "QA notary: independently quality-check ANOTHER agent's deliverable and issue a signed pass/fail. Requires x402 payment (0.09 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/trust_lease": {
      "post": {
        "operationId": "preview_trust_lease",
        "summary": "FREE signed preview of trust_lease",
        "description": "24-hour renewable trust passport for an agent/API: identity surfaces, schema availability and drift, bound to a signed receipt. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/trust_lease": {
      "post": {
        "operationId": "call_trust_lease",
        "summary": "PAID trust_lease (x402)",
        "description": "24-hour renewable trust passport for an agent/API: identity surfaces, schema availability and drift, bound to a signed receipt. Requires x402 payment (0.29 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/revenue_leak": {
      "post": {
        "operationId": "preview_revenue_leak",
        "summary": "FREE signed preview of revenue_leak",
        "description": "Revenue-leak diagnostic for an agent-economy seller: which discovery surfaces are missing and whether a buying agent can settle machine-to-machine at all. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/revenue_leak": {
      "post": {
        "operationId": "call_revenue_leak",
        "summary": "PAID revenue_leak (x402)",
        "description": "Revenue-leak diagnostic for an agent-economy seller: which discovery surfaces are missing and whether a buying agent can settle machine-to-machine at all. Requires x402 payment (0.19 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/preview/revenue_watch": {
      "post": {
        "operationId": "preview_revenue_watch",
        "summary": "FREE signed preview of revenue_watch",
        "description": "30-day recurring revenue-leak monitor: reports newly appeared and resolved leaks against the last settled baseline, bound to a signed receipt. Returns a redacted result plus an Ed25519-signed quality receipt so you can verify quality before paying.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed quality receipt + preview"
          }
        }
      }
    },
    "/call/revenue_watch": {
      "post": {
        "operationId": "call_revenue_watch",
        "summary": "PAID revenue_watch (x402)",
        "description": "30-day recurring revenue-leak monitor: reports newly appeared and resolved leaks against the last settled baseline, bound to a signed receipt. Requires x402 payment (0.89 USDC on Base) via the X-PAYMENT header; returns full output + paid receipt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "full output + paid receipt"
          },
          "402": {
            "description": "payment required (x402 challenge)"
          }
        }
      }
    },
    "/.well-known/agent-commerce.json": {
      "get": {
        "operationId": "get_commerce_passport",
        "summary": "Universal machine-readable commerce passport",
        "responses": {
          "200": {
            "description": "identity, catalog and commerce protocol"
          }
        }
      }
    },
    "/.well-known/x402.json": {
      "get": {
        "operationId": "get_x402_resources",
        "summary": "Discover payable resources",
        "responses": {
          "200": {
            "description": "x402 resources and Bazaar support"
          }
        }
      }
    },
    "/commerce/reputation": {
      "get": {
        "operationId": "get_settled_reputation",
        "summary": "Signed reputation derived only from real settlements",
        "responses": {
          "200": {
            "description": "signed settlement reputation"
          }
        }
      }
    },
    "/commerce/quote/{offer_id}": {
      "post": {
        "operationId": "create_commerce_mandate",
        "summary": "Create a free signed, expiring commercial mandate",
        "parameters": [
          {
            "name": "offer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "signed mandate"
          },
          "404": {
            "description": "unknown offer"
          }
        }
      }
    },
    "/commerce/buy/{offer_id}": {
      "post": {
        "operationId": "execute_commerce_mandate",
        "summary": "Pay and execute an untampered commercial mandate",
        "parameters": [
          {
            "name": "offer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "settled output and signed receipt"
          },
          "402": {
            "description": "x402 payment required"
          },
          "409": {
            "description": "invalid, changed or expired mandate"
          }
        }
      }
    }
  }
}