{
  "openapi": "3.2.1",
  "info": {
    "title": "Open Edge Network",
    "description": "Network routes of the Open Edge Network: guard, sub-keys, know-your-agent, provenance, reputation, sandbox, bounties, human approval and scratchpads. Every pass and receipt verifies offline against /.well-known/jwks.json.",
    "version": "1.0.0",
    "contact": {
      "email": "ops@caelaralabs.com",
      "url": "https://caelaralabs.com"
    },
    "x-network": {
      "name": "Open Edge Network",
      "url": "https://open-edge-network.pages.dev",
      "jwks_uri": "https://open-edge-network.pages.dev/.well-known/jwks.json"
    }
  },
  "servers": [
    {
      "url": "https://api.caelaralabs.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "RapidAPIKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Proxy-Secret"
      },
      "CaelaraKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Caelara-Key",
        "description": "EGU key: metered at $0.0002 per EGU after the free daily allowance"
      },
      "EguBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same EGU key as Authorization: Bearer <key>"
      },
      "x402USDC": {
        "type": "apiKey",
        "in": "header",
        "name": "PAYMENT-SIGNATURE",
        "description": "Per-call payment over HTTP 402 (x402 v2) in USDC on Base ($0.005 atomic, $0.025 composite); the 402 answer carries the terms in PAYMENT-REQUIRED. X-PAYMENT (v1) is still accepted"
      }
    }
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Health check",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/guard/eval": {
      "post": {
        "operationId": "guard__eval",
        "summary": "Pre-execution policy check over an action digest; returns an Ed25519-signed pass (allow, review or block)",
        "description": "Pre-execution policy check over an action digest; returns an Ed25519-signed pass (allow, review or block)",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action_type": {
                    "type": "string",
                    "description": "Kind of action, e.g. payment.send"
                  },
                  "payload_sha256": {
                    "type": "string",
                    "description": "SHA-256 of the action payload (the payload itself is never sent)"
                  },
                  "context_meta": {
                    "type": "object",
                    "description": "Small object the rules can read (amounts, labels)"
                  },
                  "prev_receipt_hash": {
                    "type": "string",
                    "description": "Receipt hash of the previous step, chained into the pass"
                  },
                  "spend_cap_egu": {
                    "type": "integer",
                    "description": "Spend cap to bind into the pass"
                  },
                  "target_recipient": {
                    "type": "string",
                    "description": "Recipient to bind into the pass (only its SHA-256 is signed)"
                  },
                  "policy": {
                    "type": "object",
                    "description": "Rules: { rules: [{ id, path, op, value }], schema?, on_fail?: review|block, review_rules?: [ids] }"
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "description": "Pass validity, 1 to 3600 seconds (default 300)"
                  }
                },
                "required": [
                  "action_type",
                  "payload_sha256"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/keys/delegate": {
      "post": {
        "operationId": "keys__delegate",
        "summary": "Mint a scoped, expiring sub-key with a hard EGU spend cap reserved from this key",
        "description": "Mint a scoped, expiring sub-key with a hard EGU spend cap reserved from this key",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "max_egu": {
                    "type": "integer",
                    "description": "Spend cap reserved from this key"
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "description": "60 to 86400 seconds"
                  },
                  "allowed_suites": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Route families or hosts the sub-key may call, e.g. [\"guard\",\"sandbox\",\"scratchpad\",\"hitl\"]"
                  },
                  "require_prev_receipt_hash": {
                    "type": "boolean",
                    "description": "Require X-Prev-Receipt-Hash continuity on every call"
                  }
                },
                "required": [
                  "max_egu",
                  "ttl_seconds"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/kya/attest": {
      "post": {
        "operationId": "kya__attest",
        "summary": "Know-your-agent pass: proves operator control of a domain (agent card or DNS TXT) and reports settlement-address posture",
        "description": "Know-your-agent pass: proves operator control of a domain (agent card or DNS TXT) and reports settlement-address posture",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 5,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 5,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "Operator domain"
                  },
                  "method": {
                    "type": "string",
                    "description": "auto, agent_card or dns_txt"
                  },
                  "settlement_address": {
                    "type": "string",
                    "description": "Settlement address declared by the operator, checked against the agent card"
                  }
                },
                "required": [
                  "domain"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/provenance/commit": {
      "post": {
        "operationId": "provenance__commit",
        "summary": "Commit a payload digest to a hash-only audit chain; returns a signed receipt",
        "description": "Commit a payload digest to a hash-only audit chain; returns a signed receipt",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "payload_sha256": {
                    "type": "string",
                    "description": "SHA-256 of what you are recording"
                  },
                  "prev_receipt_hash": {
                    "type": "string",
                    "description": "Receipt hash this commit follows (or send X-Prev-Receipt-Hash)"
                  }
                },
                "required": [
                  "payload_sha256"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/provenance/verify": {
      "get": {
        "operationId": "provenance__verify",
        "summary": "Verify a provenance receipt and walk its chain",
        "description": "Verify a provenance receipt and walk its chain",
        "security": [],
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": true,
            "description": "Receipt hash",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 0,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": false,
          "key_required": false
        },
        "x-caelara-price-usdc": "0",
        "x-caelara-tier": "free"
      }
    },
    "/v1/reputation/score": {
      "get": {
        "operationId": "reputation__score",
        "summary": "Privacy-preserving 7-day risk score (0 low to 100 high) for a key fingerprint or domain",
        "description": "Privacy-preserving 7-day risk score (0 low to 100 high) for a key fingerprint or domain",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "description": "SHA-256 key fingerprint, or \"self\" with a key",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Operator domain instead of a fingerprint",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 2,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 2
      }
    },
    "/v1/route/negotiate": {
      "post": {
        "operationId": "route__negotiate",
        "summary": "Declarative routing: an intent and a max_egu ceiling return native routes ranked by their 7-day success record, then caller-supplied connectors; with execute, verified failover across the connectors you hold keys for",
        "description": "Declarative routing: an intent and a max_egu ceiling return native routes ranked by their 7-day success record, then caller-supplied connectors; with execute, verified failover across the connectors you hold keys for",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "intent": {
                    "type": "string",
                    "description": "What the call should do, for example \"scrape a page to markdown\""
                  },
                  "max_egu": {
                    "type": "integer",
                    "description": "Ceiling for native routes, 1 to 1000 (default 5)"
                  },
                  "execute": {
                    "type": "object",
                    "description": "Optional { connector, path, method, body, expect }: run through your own provider key (X-Byok-<Provider>), with an expect JSON schema checked before settlement"
                  }
                },
                "required": [
                  "intent"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/events/relay": {
      "post": {
        "operationId": "events__relay",
        "summary": "Signed Edge Webhook Relay: an ingest URL for a provider webhook; every event is signed with Ed25519 and delivered to your https destination at once, with nothing stored",
        "description": "Signed Edge Webhook Relay: an ingest URL for a provider webhook; every event is signed with Ed25519 and delivered to your https destination at once, with nothing stored",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "deliver_to": {
                    "type": "string",
                    "description": "Your https destination on a named public host"
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "description": "How long the ingest URL works, 60 to 86400 (default 3600)"
                  }
                },
                "required": [
                  "deliver_to"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/ultra/run": {
      "post": {
        "operationId": "ultra__run",
        "summary": "Caelara Ultra: chained deterministic verification, up to 10 policy steps in one call, each step digest linked into the next; one Ed25519-signed chain receipt",
        "description": "Caelara Ultra: chained deterministic verification, up to 10 policy steps in one call, each step digest linked into the next; one Ed25519-signed chain receipt",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 5,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.025",
          "free_allowance": false,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.025",
        "x-caelara-tier": "composite",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "policy": {
                    "type": "object",
                    "description": "Policy applied to every step: rules and/or a JSON schema, as in /v1/guard/eval"
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Ordered inputs (1 to 10 objects) evaluated in sequence; a failing step stops the chain"
                  },
                  "prev_receipt_hash": {
                    "type": "string",
                    "description": "Receipt hash of a previous call, linked into the first step"
                  }
                },
                "required": [
                  "policy",
                  "steps"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/eval": {
      "post": {
        "operationId": "sandbox__eval",
        "summary": "Deterministic JavaScript (QuickJS): no network, filesystem or environment, 32 MB, 50 ms; Ed25519-signed execution receipt",
        "description": "Deterministic JavaScript (QuickJS): no network, filesystem or environment, 32 MB, 50 ms; Ed25519-signed execution receipt",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 2,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 2,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "runtime": {
                    "type": "string",
                    "description": "js (wasm and python-restricted are planned)"
                  },
                  "code": {
                    "type": "string",
                    "description": "Source, up to 64 KB; the completion value is the result"
                  },
                  "input_json": {
                    "type": "object",
                    "description": "JSON input, available as the global input"
                  },
                  "timeout_ms": {
                    "type": "integer",
                    "description": "1 to 50"
                  }
                },
                "required": [
                  "runtime",
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/shield/inspect": {
      "post": {
        "operationId": "shield__inspect",
        "summary": "One verdict (allow, warn or block) with reason codes over a URL, text and/or file fingerprint: lookalike and deceptive addresses, injection and secret patterns; nothing stored; signed receipt",
        "description": "One verdict (allow, warn or block) with reason codes over a URL, text and/or file fingerprint: lookalike and deceptive addresses, injection and secret patterns; nothing stored; signed receipt",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "An address about to be opened, up to 4096 characters"
                  },
                  "text": {
                    "type": "string",
                    "description": "Text about to be sent or pasted, up to 50,000 characters"
                  },
                  "file_sha256": {
                    "type": "string",
                    "description": "SHA-256 of a file about to be opened (64 hex)"
                  }
                },
                "required": []
              }
            }
          }
        }
      }
    },
    "/v1/media/stamp": {
      "post": {
        "operationId": "media__stamp",
        "summary": "Originality stamp: a signed, timestamped receipt over the SHA-256 of a file computed on your device; the file is never sent",
        "description": "Originality stamp: a signed, timestamped receipt over the SHA-256 of a file computed on your device; the file is never sent",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sha256": {
                    "type": "string",
                    "description": "SHA-256 of the file (64 hex)"
                  },
                  "media_type": {
                    "type": "string",
                    "description": "video, audio, image or document"
                  },
                  "bytes": {
                    "type": "integer",
                    "description": "File size in bytes"
                  },
                  "screen_text": {
                    "type": "string",
                    "description": "Optional words the file was made from (up to 5,000 characters): screened by Caelara Shield in the same call; only their SHA-256 is signed"
                  }
                },
                "required": [
                  "sha256",
                  "media_type"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/media/create": {
      "post": {
        "operationId": "media__create",
        "summary": "Creator tools: a visual card from your text or a page, an extractive brief of a page or text, or an originality stamp; screened by Caelara Shield first, signed receipt, returned inline, nothing stored",
        "description": "Creator tools: a visual card from your text or a page, an extractive brief of a page or text, or an originality stamp; screened by Caelara Shield first, signed receipt, returned inline, nothing stored",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 2,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 2,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "description": "visual_card, link_pack or stamp"
                  },
                  "prompt": {
                    "type": "string",
                    "description": "visual_card: the card text, 1 to 280 characters"
                  },
                  "source_url": {
                    "type": "string",
                    "description": "visual_card or link_pack: a public web page to read"
                  },
                  "text": {
                    "type": "string",
                    "description": "link_pack: pasted text, up to 100,000 characters"
                  },
                  "style": {
                    "type": "string",
                    "description": "visual_card: editorial, mono or signal"
                  },
                  "sha256": {
                    "type": "string",
                    "description": "stamp: SHA-256 of the file"
                  },
                  "media_type": {
                    "type": "string",
                    "description": "stamp: video, audio, image or document"
                  }
                },
                "required": [
                  "mode"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/builders/id": {
      "post": {
        "operationId": "builders__id",
        "summary": "A public, non-spendable builder ID for this key's account, for share links: send it as X-Builder-Id to credit the 10% EGU compute rebate without sharing a key",
        "description": "A public, non-spendable builder ID for this key's account, for share links: send it as X-Builder-Id to credit the 10% EGU compute rebate without sharing a key",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "x-key-required": true
      }
    },
    "/v1/execution/verify": {
      "post": {
        "operationId": "execution__verify",
        "summary": "Caelara Proof: check an Execution Passport (signature, digest and every chain link) or turn any network receipt into passport form; nothing sent is stored",
        "description": "Caelara Proof: check an Execution Passport (signature, digest and every chain link) or turn any network receipt into passport form; nothing sent is stored",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 0,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": false,
          "key_required": false
        },
        "x-caelara-price-usdc": "0",
        "x-caelara-tier": "free",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "passport": {
                    "type": "object",
                    "description": "A passport from /v1/negotiate/commit or /v1/ultra/run"
                  },
                  "receipt": {
                    "type": "string",
                    "description": "Or any network receipt (compact JWS)"
                  }
                },
                "required": []
              }
            }
          }
        }
      }
    },
    "/v1/negotiate/compare": {
      "post": {
        "operationId": "negotiate__compare",
        "summary": "Negotiation Engine: a dry run that scores candidate plans on measured latency, the live 7-day record of every step and EGU cost, and recommends one; nothing is executed",
        "description": "Negotiation Engine: a dry run that scores candidate plans on measured latency, the live 7-day record of every step and EGU cost, and recommends one; nothing is executed",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "objective": {
                    "type": "string",
                    "description": "What to get done (compiles the default and the network-only plan)"
                  },
                  "max_egu": {
                    "type": "integer",
                    "description": "Budget, 1 to 1000 (default 20)"
                  },
                  "plans": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Or 1 to 5 plans from /v1/intent/plan to compare"
                  }
                },
                "required": []
              }
            }
          }
        }
      }
    },
    "/v1/negotiate/commit": {
      "post": {
        "operationId": "negotiate__commit",
        "summary": "Negotiation Engine: run a compiled plan step by step for its validated total EGU, inside your key's scopes, with Caelara Shield screens, failover for services run with your own key, and expect schemas checked before settlement; a stopped run is not charged. Returns an Execution Passport",
        "description": "Negotiation Engine: run a compiled plan step by step for its validated total EGU, inside your key's scopes, with Caelara Shield screens, failover for services run with your own key, and expect schemas checked before settlement; a stopped run is not charged. Returns an Execution Passport",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 5,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.025",
          "free_allowance": false,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.025",
        "x-caelara-tier": "composite",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plan": {
                    "type": "object",
                    "description": "A plan from /v1/intent/plan, unchanged"
                  },
                  "inputs": {
                    "type": "object",
                    "description": "Per step id: the body (or query) for that step"
                  },
                  "expect": {
                    "type": "object",
                    "description": "Per step id: a JSON schema the step output must satisfy"
                  }
                },
                "required": [
                  "plan"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/intent/plan": {
      "post": {
        "operationId": "intent__plan",
        "summary": "Intent Compiler: an objective, constraints and a max_egu budget compile into an ordered, schema-checked plan of Caelara Genome capabilities, with a Caelara Shield screen before every external action; the plan carries its own SHA-256",
        "description": "Intent Compiler: an objective, constraints and a max_egu budget compile into an ordered, schema-checked plan of Caelara Genome capabilities, with a Caelara Shield screen before every external action; the plan carries its own SHA-256",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "objective": {
                    "type": "string",
                    "description": "What to get done, in steps if you like: \"check this link, then post the summary\""
                  },
                  "max_egu": {
                    "type": "integer",
                    "description": "Budget for the whole plan, 1 to 1000 (default 20)"
                  },
                  "constraints": {
                    "type": "object",
                    "description": "Optional { native_only, exclude: [Genome ids] }"
                  }
                },
                "required": [
                  "objective"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/intent/validate": {
      "post": {
        "operationId": "intent__validate",
        "summary": "Intent Compiler: re-check a plan (hash, known capabilities, Shield screens, order, schemas, budget) before you run it",
        "description": "Intent Compiler: re-check a plan (hash, known capabilities, Shield screens, order, schemas, budget) before you run it",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plan": {
                    "type": "object",
                    "description": "A plan from /v1/intent/plan"
                  }
                },
                "required": [
                  "plan"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/genome/query": {
      "post": {
        "operationId": "genome__query",
        "summary": "Caelara Genome: capability records matching a need (native routes, then services you run with your own key), each with input and output schemas, security requirements, dependencies, expected EGU, failure modes, provenance and its live 7-day record",
        "description": "Caelara Genome: capability records matching a need (native routes, then services you run with your own key), each with input and output schemas, security requirements, dependencies, expected EGU, failure modes, provenance and its live 7-day record",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "q": {
                    "type": "string",
                    "description": "The need, for example \"screen a link before posting\""
                  },
                  "max_egu": {
                    "type": "integer",
                    "description": "Only records expected to cost at most this much"
                  },
                  "kind": {
                    "type": "string",
                    "description": "native or caller_byok"
                  },
                  "limit": {
                    "type": "integer",
                    "description": "1 to 25 (default 10)"
                  }
                },
                "required": [
                  "q"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/genome/compose": {
      "post": {
        "operationId": "genome__compose",
        "summary": "Caelara Genome: check an ordered chain of capability records as one pipeline, with total expected EGU, combined security requirements and the Caelara Shield screens it needs",
        "description": "Caelara Genome: check an ordered chain of capability records as one pipeline, with total expected EGU, combined security requirements and the Caelara Shield screens it needs",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "1 to 10 record ids from /.well-known/genome.json, in order"
                  }
                },
                "required": [
                  "ids"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/discover/stack": {
      "post": {
        "operationId": "find_stack",
        "summary": "Find a stack for what you want to build, free first: open-source projects, browser and WebAssembly libraries and free MCP servers (permissive licences, screened by Caelara Shield), then metered network routes with exact prices, then commercial providers when the work needs them",
        "description": "Find a stack for what you want to build, free first: open-source projects, browser and WebAssembly libraries and free MCP servers (permissive licences, screened by Caelara Shield), then metered network routes with exact prices, then commercial providers when the work needs them",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "What you want to build, e.g. \"pdf parser\", \"voiceover\", \"link scanner\""
                  },
                  "runtime": {
                    "type": "string",
                    "description": "browser, node, python or mcp (default browser)"
                  },
                  "budget": {
                    "type": "string",
                    "description": "free_only, balanced (default) or performance"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/bounties/post": {
      "post": {
        "operationId": "bounties__post",
        "summary": "Post a machine-verifiable task with an escrowed EGU reward",
        "description": "Post a machine-verifiable task with an escrowed EGU reward",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Task title, up to 120 characters"
                  },
                  "description": {
                    "type": "string",
                    "description": "Up to 2000 characters"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Up to 5 lowercase tags"
                  },
                  "reward_units": {
                    "type": "integer",
                    "description": "Reward in EGU, locked until claimed or expired"
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "description": "60 to 86400 seconds"
                  },
                  "acceptance": {
                    "type": "object",
                    "description": "Acceptance: { schema?, rules?, proof?: { execution_receipt?: { code_sha256?, exit_code? }, signed_pass?: { verdict?, action_type?, sub? } } }"
                  }
                },
                "required": [
                  "title",
                  "reward_units",
                  "ttl_seconds",
                  "acceptance"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/bounties/open": {
      "get": {
        "operationId": "bounties__open",
        "summary": "Open bounties, filterable by tag, minimum reward and expiry",
        "description": "Open bounties, filterable by tag, minimum reward and expiry",
        "security": [],
        "parameters": [
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Only bounties with this tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_reward",
            "in": "query",
            "required": false,
            "description": "Minimum reward in EGU",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "expires_before",
            "in": "query",
            "required": false,
            "description": "Unix time in milliseconds",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1 to 100",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 0,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": false,
          "key_required": false
        },
        "x-caelara-price-usdc": "0",
        "x-caelara-tier": "free"
      }
    },
    "/v1/bounties/claim": {
      "post": {
        "operationId": "bounties__claim",
        "summary": "Submit an output (with an execution receipt or signed pass when required); a pass releases the reward with a signed receipt",
        "description": "Submit an output (with an execution receipt or signed pass when required); a pass releases the reward with a signed receipt",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bounty_id": {
                    "type": "string",
                    "description": "From /v1/bounties/open"
                  },
                  "output": {
                    "type": "object",
                    "description": "The output to check"
                  },
                  "execution_receipt": {
                    "type": "string",
                    "description": "Execution receipt from /v1/sandbox/eval, when the bounty requires one"
                  },
                  "signed_pass": {
                    "type": "string",
                    "description": "Signed pass from /v1/guard/eval, when the bounty requires one"
                  }
                },
                "required": [
                  "bounty_id",
                  "output"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/hitl/escalate": {
      "post": {
        "operationId": "hitl__escalate",
        "summary": "Ask a human to approve an action; an approval returns a single-use Ed25519 approval pass",
        "description": "Ask a human to approve an action; an approval returns a single-use Ed25519 approval pass",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 5,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 5,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action_sha256": {
                    "type": "string",
                    "description": "SHA-256 of the action"
                  },
                  "summary": {
                    "type": "string",
                    "description": "Up to 280 characters; redacted before storage"
                  },
                  "channel": {
                    "type": "string",
                    "description": "webhook, webapp or telegram"
                  },
                  "target": {
                    "type": "string",
                    "description": "HTTPS webhook URL, or the reviewer key fingerprint (or \"parent\" for a sub-key)"
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "description": "60 to 3600"
                  }
                },
                "required": [
                  "action_sha256",
                  "summary",
                  "channel",
                  "target",
                  "ttl_seconds"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/hitl/status": {
      "get": {
        "operationId": "hitl__status",
        "summary": "Escalation status, with the approval pass once approved",
        "description": "Escalation status, with the approval pass once approved",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [
          {
            "name": "escalation_id",
            "in": "query",
            "required": true,
            "description": "From /v1/hitl/escalate",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 0,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": false,
          "key_required": true
        },
        "x-caelara-price-usdc": "0",
        "x-caelara-tier": "free",
        "x-key-required": true
      }
    },
    "/v1/hitl/verify": {
      "post": {
        "operationId": "hitl__verify",
        "summary": "Verify a single-use approval pass online and mark it used (a second check reports already_used)",
        "description": "Verify a single-use approval pass online and mark it used (a second check reports already_used)",
        "security": [
          {},
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          },
          {
            "x402USDC": []
          },
          {
            "RapidAPIKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment required: pay this call over HTTP 402 (USDC on Base), or send an EGU key",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": "0.005",
          "free_allowance": true,
          "key_required": false
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "approval_pass": {
                    "type": "string",
                    "description": "The approval pass"
                  }
                },
                "required": [
                  "approval_pass"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/scratchpad/put": {
      "post": {
        "operationId": "scratchpad__put",
        "summary": "Store a client-encrypted blob (and optional vector) with a hard TTL",
        "description": "Store a client-encrypted blob (and optional vector) with a hard TTL",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 3,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 3,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "namespace": {
                    "type": "string",
                    "description": "Namespace, 1 to 64 characters"
                  },
                  "key": {
                    "type": "string",
                    "description": "Item key (only its SHA-256 is stored)"
                  },
                  "ciphertext_b64": {
                    "type": "string",
                    "description": "Client-encrypted bytes, base64, up to 64 KB"
                  },
                  "vector": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "description": "Up to 1536 numbers"
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "description": "60 to 86400"
                  }
                },
                "required": [
                  "namespace",
                  "key",
                  "ciphertext_b64",
                  "ttl_seconds"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/scratchpad/query": {
      "post": {
        "operationId": "scratchpad__query",
        "summary": "Exact key lookup, or cosine search over live items",
        "description": "Exact key lookup, or cosine search over live items",
        "security": [
          {
            "CaelaraKey": []
          },
          {
            "EguBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success (partial:true when upstream unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "The key has too few EGU for this call",
            "headers": {
              "X-Payment-Required": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-cost": {
          "egu": 1,
          "usd_per_egu": "0.0002",
          "usdc_per_call": null,
          "free_allowance": true,
          "key_required": true
        },
        "x-caelara-price-usdc": "0.005",
        "x-caelara-tier": "atomic",
        "x-edge-gas-units": 1,
        "x-key-required": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "namespace": {
                    "type": "string",
                    "description": "Namespace"
                  },
                  "key": {
                    "type": "string",
                    "description": "Exact key"
                  },
                  "query_vector": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "description": "Vector for cosine search"
                  },
                  "top_k": {
                    "type": "integer",
                    "description": "1 to 10"
                  }
                },
                "required": [
                  "namespace"
                ]
              }
            }
          }
        }
      }
    }
  }
}
