{
  "openapi": "3.1.0",
  "info": {
    "title": "Cloudless x402 — pay-per-request APIs",
    "version": "1.0.0",
    "description": "Machine-consumable APIs paid per invocation with x402 — no signup, subscription, or API key. Each successful request settles on-chain and returns payment evidence. First endpoint: the currently supported AWS Lambda runtimes, returned as fresh, structured data.",
    "x-guidance": "Transaction-native x402 routes. Call a paid route and you receive HTTP 402 with an x402 PAYMENT-REQUIRED challenge (network, asset, amount, recipient). Sign an `exact` EVM payment authorization and retry with a PAYMENT-SIGNATURE header; the facilitator settles on-chain (gasless EIP-3009) and the 200 carries a PAYMENT-RESPONSE reference. If the static terms here are known, a client may send PAYMENT-SIGNATURE on the first request. No account, subscription, or API key. The runtime 402 is authoritative over this document.",
    "contact": {
      "email": "hello@cloudless.sh",
      "url": "https://x402.cloudless.sh"
    }
  },
  "servers": [
    {
      "url": "https://x402.cloudless.sh"
    }
  ],
  "paths": {
    "/v1/lambda-runtimes": {
      "get": {
        "operationId": "lambda-runtimes",
        "summary": "Currently supported AWS Lambda runtimes, parsed live from the AWS documentation and returned as structured JSON.",
        "tags": [
          "paid"
        ],
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.001000"
          },
          "accepts": [
            {
              "scheme": "exact",
              "network": "eip155:8453",
              "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "payTo": "0x61A87C2387c249840610bccB40253DbD411AD572",
              "amount": "1000",
              "maxTimeoutSeconds": 300,
              "extra": {
                "name": "USD Coin",
                "version": "2"
              }
            }
          ],
          "extensions": {
            "bazaar": {
              "info": {
                "name": "lambda-runtimes",
                "description": "Currently supported AWS Lambda runtimes, parsed live from the AWS documentation.",
                "input": {
                  "type": "http",
                  "method": "GET"
                },
                "output": {
                  "example": [
                    "nodejs22.x",
                    "python3.13",
                    "java21",
                    "provided.al2023"
                  ]
                }
              },
              "schema": {
                "properties": {
                  "input": {
                    "properties": {
                      "body": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false,
                        "description": "No input required."
                      }
                    }
                  },
                  "output": {
                    "properties": {
                      "example": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "List of supported AWS Lambda runtime identifiers."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid resource.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "List of currently supported AWS Lambda runtime identifiers."
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false,
                "description": "No input required."
              }
            }
          }
        }
      }
    }
  },
  "x-discovery": {
    "ownershipProofs": [
      "0xad2f8111d2bb4fcc85d5b04a14ee22c796cb6d135e1cb4cd4ed9fa343954a355727043fa3e69a792975b2b18b0ff549a3a2825eb0959eb6810ff271f10731e6a1b"
    ]
  }
}