{
  "openapi": "3.1.0",
  "info": {
    "title": "x402-hosting Public API",
    "version": "3.0.0",
    "description": "Full-stack Next.js hosting on Cloudflare Workers for Platforms, prepaid\nwith USDC over x402. Every project is a complete Next.js application —\nApp Router pages, server-side rendering, React Server Components, server\nactions, route handlers, and middleware — compiled locally with OpenNext\nand published as its own isolated Cloudflare Worker behind the dispatch\nnamespace. This is not static HTML hosting: server code runs on every\nrequest at the edge.\n\nA Project is a stable website and every uploaded release is an immutable\nDeployment, matching Vercel's public resource model. The initial upload is\na $0.01 paid step whose facilitator-verified x402 payer becomes the Project\nwallet; the project created from that upload inherits the owner, and that\nsame normalized EVM address authenticates activation and every later\nmanagement request. A raw address header, bearer token, or project file is\nnever wallet authentication. Reads are free: the unguessable project id is\nthe read capability.\n",
    "x-guidance": "Build your Next.js app with OpenNext and zip the .open-next output: the\nartifact contains the server bundle that runs as a Cloudflare Worker, not\njust static files. Use POST /v1/uploads first to create a paid artifact\nupload session, PUT the zip artifact to the returned uploadUrl, and then\ncall POST /v1/projects to create the project. Poll the returned\n/v1/operations/{operationId} URLs for asynchronous work. The wallet that\npays for the initial upload owns the project and must pay for activation,\nlater uploads, rollback, renewal, transfer, and deletion. Generate a fresh\nUUID for every Idempotency-Key.\n",
    "contact": {
      "name": "x402-hosting support",
      "url": "https://x402-hosting.com/contact",
      "email": "dries@whaamed.com"
    }
  },
  "servers": [
    {
      "url": "https://api.x402-hosting.com",
      "description": "Production"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Uploads",
      "description": "Direct artifact upload sessions."
    },
    {
      "name": "Projects",
      "description": "Stable websites authenticated by their controlling wallet."
    },
    {
      "name": "Deployments",
      "description": "Immutable uploaded releases belonging to a project."
    },
    {
      "name": "Operations",
      "description": "Free polling and payment reconciliation."
    },
    {
      "name": "Service",
      "description": "Service health."
    }
  ],
  "paths": {
    "/healthz": {
      "get": {
        "tags": ["Service"],
        "summary": "Check service health",
        "operationId": "health",
        "security": [],
        "responses": {
          "200": {
            "description": "Healthy.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["status"],
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "ok"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid health request."
          },
          "503": {
            "description": "A dependency is not ready."
          }
        }
      }
    },
    "/v1/uploads": {
      "post": {
        "tags": ["Uploads"],
        "operationId": "createInitialUpload",
        "summary": "Create the initial upload session for $0.01 and bind the owner wallet",
        "description": "The facilitator-verified payer is recorded as the future project owner. This request creates the upload session; uploading the artifact and creating the project happen in the following steps. Parameters are supplied in the query string and the request body is empty.",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "example": "my-site",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "example": 1024,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": true,
            "example": "0000000000000000000000000000000000000000000000000000000000000000",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            }
          },
          {
            "name": "contentType",
            "in": "query",
            "required": true,
            "example": "application/zip",
            "schema": {
              "type": "string",
              "const": "application/zip"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Paid upload session created and reconcilable by operation id. Upload the artifact, then create the project to trigger its first deployment. Poll GET /v1/operations/{operationId} to recover a lost response.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/UploadSession"
                    },
                    {
                      "type": "object",
                      "required": ["operationId"],
                      "properties": {
                        "operationId": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          }
        }
      }
    },
    "/v1/projects": {
      "post": {
        "tags": ["Projects"],
        "operationId": "createProject",
        "summary": "Create a project and trigger its initial deployment",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["uploadId", "name"],
                "properties": {
                  "uploadId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                },
                "description": "The owner is inherited from the paid initial upload's verified payer. Free and idempotent on uploadId (a repeat returns the existing project)."
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Bootstrap work queued; poll the free operation URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        }
      }
    },
    "/v1/projects/{id}": {
      "get": {
        "tags": ["Projects"],
        "operationId": "getProject",
        "summary": "Read project status (free; the project id is the capability)",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "responses": {
          "200": {
            "description": "Project metadata, including its public wallet address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": ["Projects"],
        "operationId": "deleteProject",
        "summary": "Queue project deletion for $0.01",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "202": {
            "description": "Deletion queued; irreversible work starts after settlement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        }
      }
    },
    "/v1/projects/{id}/activate": {
      "post": {
        "tags": ["Projects"],
        "operationId": "activateProject",
        "summary": "Activate for $0.20 per day",
        "description": "Only the owner wallet bound at project creation can pay for activation; payments from any other wallet are rejected before settlement.",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.20",
            "max": "146.00"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/Days"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "202": {
            "description": "Activation accepted; settlement activates the project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        }
      }
    },
    "/v1/projects/{id}/uploads": {
      "post": {
        "tags": ["Uploads"],
        "operationId": "createDeploymentUpload",
        "summary": "Create a wallet-bound deployment upload session for $0.01",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "example": 1024,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "sha256",
            "in": "query",
            "required": true,
            "example": "0000000000000000000000000000000000000000000000000000000000000000",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            }
          },
          {
            "name": "contentType",
            "in": "query",
            "required": true,
            "example": "application/zip",
            "schema": {
              "type": "string",
              "const": "application/zip"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Paid upload session created and reconcilable by operation ID. Upload the artifact, then create a deployment beneath the project.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/UploadSession"
                    },
                    {
                      "type": "object",
                      "required": ["operationId"],
                      "properties": {
                        "operationId": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          }
        }
      }
    },
    "/v1/projects/{id}/deployments": {
      "post": {
        "tags": ["Deployments"],
        "operationId": "createDeployment",
        "summary": "Complete an upload and trigger a deployment for free",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["uploadId"],
                "properties": {
                  "uploadId": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Deployment build queued; poll the free operation URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        }
      },
      "get": {
        "tags": ["Deployments"],
        "operationId": "listDeployments",
        "summary": "Read one deployments-list page (free)",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["projectId", "deployments", "nextCursor"],
                  "properties": {
                    "projectId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "deployments": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Deployment"
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/deployments/{deploymentId}": {
      "get": {
        "tags": ["Deployments"],
        "operationId": "getDeployment",
        "summary": "Read an individual deployment (free)",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "name": "deploymentId",
            "in": "path",
            "required": true,
            "example": "00000000-0000-4000-8000-000000000002",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deployment status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deployment"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/rollback": {
      "post": {
        "tags": ["Deployments"],
        "operationId": "rollbackProject",
        "summary": "Promote a previous deployment for $0.01",
        "description": "Parameters travel in the query string (empty body) so body-dropping x402 wallet tools can pay this leg.",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "name": "deploymentId",
            "in": "query",
            "required": true,
            "example": "00000000-0000-4000-8000-000000000002",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Rollback queued; publishing starts after settlement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        }
      }
    },
    "/v1/projects/{id}/renew": {
      "post": {
        "tags": ["Projects"],
        "operationId": "renewProject",
        "summary": "Renew a project for $0.20 per day with no management surcharge",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.20",
            "max": "146.00"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/Days"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "name": "deploymentId",
            "in": "query",
            "required": false,
            "example": "00000000-0000-4000-8000-000000000002",
            "description": "Defaults to the pending or current deployment.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Renewal queued; expired-site publishing starts after settlement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        }
      }
    },
    "/v1/projects/{id}/transfer": {
      "post": {
        "tags": ["Projects"],
        "operationId": "transferProject",
        "summary": "Transfer the controlling wallet for $0.01",
        "description": "toAddress travels in the query string (empty body) so body-dropping x402 wallet tools can pay this leg.",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "name": "toAddress",
            "in": "query",
            "required": true,
            "example": "0x1111111111111111111111111111111111111111",
            "schema": {
              "$ref": "#/components/schemas/EvmAddress"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Transfer queued and applied immediately after settlement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOperation"
                }
              }
            }
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          }
        }
      }
    },
    "/v1/operations/{operationId}": {
      "get": {
        "tags": ["Operations"],
        "operationId": "getOperation",
        "summary": "Poll an opaque workflow and reconcile payment for free",
        "security": [],
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "example": "00000000-0000-4000-8000-000000000003",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Operation, serialized result, and settlement receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "ProjectId": {
        "name": "id",
        "in": "path",
        "required": true,
        "example": "00000000-0000-4000-8000-000000000001",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "Days": {
        "name": "days",
        "in": "query",
        "required": true,
        "example": 1,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 730
        }
      },
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "Client-generated UUID; it is also the opaque operation ID.",
        "example": "00000000-0000-4000-8000-000000000003",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "schemas": {
      "EvmAddress": {
        "type": "string",
        "pattern": "^0x[0-9a-f]{40}$",
        "example": "0x1111111111111111111111111111111111111111"
      },
      "UploadSession": {
        "type": "object",
        "required": ["uploadId", "uploadUrl", "expiresAt", "headers"],
        "properties": {
          "uploadId": {
            "type": "string",
            "format": "uuid"
          },
          "uploadUrl": {
            "type": "string",
            "format": "uri"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "QueuedOperation": {
        "type": "object",
        "required": ["projectId", "operationId"],
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uuid"
          },
          "deploymentId": {
            "type": "string",
            "format": "uuid"
          },
          "deploymentNumber": {
            "type": "integer"
          },
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "operationUrl": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Project": {
        "type": "object",
        "required": [
          "projectId",
          "name",
          "slug",
          "url",
          "state",
          "walletAddress",
          "expiresAt",
          "activationDeadline",
          "renewableUntil",
          "currentDeploymentId",
          "pendingDeploymentId"
        ],
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "state": {
            "type": "string"
          },
          "walletAddress": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EvmAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "activationDeadline": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "renewableUntil": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "currentDeploymentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "pendingDeploymentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Deployment": {
        "type": "object",
        "required": [
          "deploymentId",
          "projectId",
          "deploymentNumber",
          "state",
          "current",
          "pending",
          "sha256",
          "size",
          "createdAt"
        ],
        "properties": {
          "deploymentId": {
            "type": "string",
            "format": "uuid"
          },
          "projectId": {
            "type": "string",
            "format": "uuid"
          },
          "deploymentNumber": {
            "type": "integer"
          },
          "state": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "pending": {
            "type": "boolean"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "readyAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "failureCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "failureMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Operation": {
        "type": "object",
        "required": [
          "operationId",
          "projectId",
          "type",
          "state",
          "result",
          "payment"
        ],
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "projectId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "result": {},
          "failureCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "failureMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "transaction": {
                    "type": "string"
                  },
                  "network": {
                    "type": "string"
                  },
                  "payer": {
                    "$ref": "#/components/schemas/EvmAddress"
                  },
                  "amount": {
                    "type": "string"
                  },
                  "settledAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Problem": {
        "type": "object",
        "required": ["type", "title", "status", "code", "detail", "traceId"],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "traceId": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "InvalidRequest": {
        "description": "Invalid request.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Conflict": {
        "description": "State conflict.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "TooLarge": {
        "description": "Artifact too large.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "Missing or invalid proof returns the normal x402 challenge. A verified\npayer whose address does not match the project's `walletAddress` is\nrejected with `wallet_not_owner` before settlement.\n",
        "headers": {
          "PAYMENT-REQUIRED": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    }
  }
}
