{
  "openapi": "3.1.0",
  "info": {
    "title": "apidx UUID Generator",
    "description": "Random UUID v4 (RFC 9562) as an HTTP API: 1-100 UUIDs per call, in uuid, URN, hex or integer form. An alternative to the X Pay UUID listing on x402 Bazaar.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://uuid-forge.saastemly.com"
    }
  ],
  "paths": {
    "/v1/uuid": {
      "get": {
        "summary": "Returns 1-100 random UUID v4 strings (RFC 9562): ?count=1..100 (default 1), ?format=uuid|urn|hex|int (default uuid).",
        "description": "Returns 1-100 random UUID v4 strings (RFC 9562): ?count=1..100 (default 1), ?format=uuid|urn|hex|int (default uuid).\n\nPrice: $0.0017 per call (x402, or prepaid credits with an API key).",
        "x-price-usd": 0.0017,
        "responses": {
          "200": {
            "description": "The result",
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "uuids": [
                    "67b45f13-9297-4938-ace8-8308e465299c"
                  ],
                  "count": 1,
                  "format": "uuid",
                  "uuid": "67b45f13-9297-4938-ace8-8308e465299c"
                }
              }
            }
          },
          "400": {
            "description": "The request is not valid (nothing is charged)"
          },
          "402": {
            "description": "Payment required: the x402 terms are in the PAYMENT-REQUIRED header; or send an API key"
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "description": "How many UUIDs to return, 1-100 (default 1)"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "uuid",
                "urn",
                "hex",
                "int"
              ],
              "description": "uuid: canonical 8-4-4-4-12 (default); urn: urn:uuid: prefix; hex: 32 hex digits; int: 128-bit decimal"
            }
          }
        ]
      }
    },
    "/x402/uuid": {
      "get": {
        "operationId": "get_uuid",
        "summary": "The same UUID generation on the x402 face: the body adds network/asset (base/USDC) as in the reference x402 listing's response.",
        "description": "The same UUID generation on the x402 face: the body adds network/asset (base/USDC) as in the reference x402 listing's response.\n\nPrice: $0.0017 per call (x402, or prepaid credits with an API key).",
        "x-price-usd": 0.0017,
        "responses": {
          "200": {
            "description": "The result",
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "uuids": [
                    "67b45f13-9297-4938-ace8-8308e465299c"
                  ],
                  "count": 1,
                  "format": "uuid",
                  "uuid": "67b45f13-9297-4938-ace8-8308e465299c",
                  "network": "base",
                  "asset": "USDC"
                }
              }
            }
          },
          "400": {
            "description": "The request is not valid (nothing is charged)"
          },
          "402": {
            "description": "Payment required: the x402 terms are in the PAYMENT-REQUIRED header; or send an API key"
          }
        },
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "description": "How many UUIDs to return, 1-100 (default 1)"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "uuid",
                "urn",
                "hex",
                "int"
              ],
              "description": "uuid: canonical 8-4-4-4-12 (default); urn: urn:uuid: prefix; hex: 32 hex digits; int: 128-bit decimal"
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key with prepaid credits, from https://uuid-forge.saastemly.com"
      }
    }
  },
  "x-mcp-server": "https://uuid-forge.saastemly.com/mcp"
}