Vesta Backup

health

Vesta API · 6.0.77 · Community

POST/api/v1/agents/backups/{backup_id}/checkpoint-proofTransaction Checkpoint Proof

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "checkpoint": {
      "type": "string"
    },
    "checkpoint_creation_time": {
      "type": "string"
    },
    "guest_consistency": {
      "type": "string"
    },
    "intent_id": {
      "type": "string"
    },
    "terminal_resource_version": {
      "type": "string"
    },
    "tracker_resource_version": {
      "type": "string"
    },
    "vmb_absent": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "intent_id",
    "checkpoint",
    "tracker_resource_version",
    "terminal_resource_version",
    "checkpoint_creation_time",
    "guest_consistency",
    "vmb_absent"
  ],
  "type": "object"
}

Authentication

Responses

202

Checkpoint evidence durably accepted; publication may still await manifest. Completed replay also returns 202.

application/json

Schema
{
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "completed": {
          "const": false,
          "type": "boolean"
        },
        "intent_id": {
          "type": "string"
        },
        "status": {
          "const": "awaiting_manifest",
          "type": "string"
        }
      },
      "required": [
        "intent_id",
        "status",
        "completed"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "completed": {
          "const": true,
          "type": "boolean"
        },
        "intent_id": {
          "type": "string"
        },
        "status": {
          "const": "completed",
          "type": "string"
        }
      },
      "required": [
        "intent_id",
        "status",
        "completed"
      ],
      "type": "object"
    }
  ]
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/finalize-intentTransaction Finalize Intent

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Exact accepted receipt and immutable source binding; started_at must include timezone. No publication authority is granted by intent acceptance.

application/json

Schema

ProtocolFinalizeBinding

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "binding": {
      "$ref": "#/components/schemas/ProtocolFinalizeBinding"
    },
    "intent_id": {
      "type": "string"
    }
  },
  "required": [
    "intent_id",
    "binding"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-admissionNative Admission

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "producer_request_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "attempt_id",
    "intent_sha256",
    "producer_request_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "admitted": {
      "const": true,
      "type": "boolean"
    },
    "attempt_id": {
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "producer_request_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "attempt_id",
    "intent_sha256",
    "producer_request_sha256",
    "admitted"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-closed-failureNative Closed Failure

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Canonical JSON strings and SHA256 digests must match the original admitted intent and exact versioned evidence certificate. Equality, producer identity, and database custody gates are enforced separately.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "closure_canonical": {
      "type": "string"
    },
    "closure_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "intent_canonical": {
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "intent_canonical",
    "closure_canonical",
    "intent_sha256",
    "closure_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "capacity_id": {
      "type": "string"
    },
    "closure_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "settled": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "settled",
    "attempt_id",
    "capacity_id",
    "intent_sha256",
    "closure_sha256"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-fenced-failureNative Fenced Failure

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Canonical JSON strings and SHA256 digests must match the original admitted intent and exact versioned evidence certificate. Equality, producer identity, and database custody gates are enforced separately.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "fence_canonical": {
      "type": "string"
    },
    "fence_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "intent_canonical": {
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "intent_canonical",
    "fence_canonical",
    "intent_sha256",
    "fence_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "capacity_id": {
      "type": "string"
    },
    "fence_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "settled": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "settled",
    "attempt_id",
    "capacity_id",
    "intent_sha256",
    "fence_sha256"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-inventoryNative Inventory

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Inventory, producer manifest and closed job must bind exactly to the admitted intent, domain and selected disks. Canonical digest and cross-field checks remain runtime requirements.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "closed_job": {
      "additionalProperties": false,
      "properties": {
        "attempt_id": {
          "type": "string"
        },
        "exit_code": {
          "const": 0,
          "type": "integer"
        },
        "invocation_id": {
          "pattern": "^[0-9a-f]{32}$",
          "type": "string"
        },
        "job_id": {
          "type": "string"
        },
        "state": {
          "enum": [
            "exited",
            "sealed"
          ]
        }
      },
      "required": [
        "job_id",
        "attempt_id",
        "invocation_id",
        "exit_code",
        "state"
      ],
      "type": "object"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "inventory": {
      "$ref": "#/components/schemas/ProtocolNativeInventory"
    },
    "push_result": {
      "$ref": "#/components/schemas/ProtocolNativePushResult"
    }
  },
  "required": [
    "intent_sha256",
    "inventory",
    "closed_job",
    "push_result"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "accepted": {
      "const": true,
      "type": "boolean"
    },
    "attempt_id": {
      "type": "string"
    },
    "completed": {
      "const": false,
      "type": "boolean"
    },
    "inventory_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "accepted",
    "inventory_sha256",
    "attempt_id",
    "completed"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-no-effectNative No Effect

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Canonical JSON strings and SHA256 digests must match the original admitted intent and exact versioned evidence certificate. Equality, producer identity, and database custody gates are enforced separately.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "intent_canonical": {
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "refusal_canonical": {
      "type": "string"
    },
    "refusal_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "intent_canonical",
    "refusal_canonical",
    "intent_sha256",
    "refusal_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "capacity_id": {
      "type": "string"
    },
    "intent_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "refusal_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "settled": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "settled",
    "attempt_id",
    "capacity_id",
    "intent_sha256",
    "refusal_sha256"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-publicationNative Publication

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "acceptance_id": {
      "type": "string"
    },
    "receipt_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "reservation_id": {
      "type": "string"
    }
  },
  "required": [
    "reservation_id",
    "acceptance_id",
    "receipt_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "completed": {
      "const": true,
      "type": "boolean"
    },
    "reservation_id": {
      "type": "string"
    },
    "status": {
      "const": "completed",
      "type": "string"
    }
  },
  "required": [
    "reservation_id",
    "status",
    "completed"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/native-transactionNative Transaction

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "inventory_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "attempt_id",
    "inventory_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema

ProtocolNativeTransaction

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/prepared-receiptPrepared Receipt

A durable acceptance permits finalize, never completion or visibility. The agent must retain its prepared journal until this response is received. Authentication installs persisted tenant identity before any reservation read.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Receipt must match all committed artifacts and target; canonical ordering, byte counts and digest bindings are verified. Acceptance does not imply backup visibility or completion.

application/json

Schema

ProtocolStorageReceipt

Authentication

Responses

200

Successful response

application/json

Schema
{
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "accepted": {
          "const": true,
          "type": "boolean"
        },
        "reservation_id": {
          "type": "string"
        },
        "verification": {
          "additionalProperties": false,
          "properties": {
            "receipt": {
              "$ref": "#/components/schemas/ProtocolLegacyStorageReceipt"
            },
            "scrub_required": {
              "type": "boolean"
            },
            "verification": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "assurance": {
                    "enum": [
                      "provider_checksum_verified",
                      "identity_metadata_only"
                    ]
                  },
                  "checksum_sha256": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checksum_type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "key": {
                    "type": "string"
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "version_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "key",
                  "version_id",
                  "assurance",
                  "reason",
                  "checksum_type",
                  "checksum_sha256"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "receipt",
            "verification",
            "scrub_required"
          ],
          "type": "object"
        }
      },
      "required": [
        "reservation_id",
        "accepted",
        "verification"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "acceptance_id": {
          "type": "string"
        },
        "accepted": {
          "const": true,
          "type": "boolean"
        },
        "protocol": {
          "const": "vnbui-storage-transaction/1",
          "type": "string"
        },
        "receipt_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "reservation_id": {
          "type": "string"
        },
        "scrub_required": {
          "type": "boolean"
        },
        "verification": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "assurance": {
                "enum": [
                  "provider_checksum_verified",
                  "identity_metadata_only"
                ]
              },
              "key": {
                "type": "string"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "version_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "key",
              "version_id",
              "assurance",
              "reason"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "protocol",
        "reservation_id",
        "receipt_sha256",
        "accepted",
        "acceptance_id",
        "verification",
        "scrub_required"
      ],
      "type": "object"
    }
  ]
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

POST/api/v1/agents/backups/{backup_id}/storage-controlStorage Control

Finite, authenticated control; signed authority never enters durable state.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

Exact attempt binding required; part sizes and sequence, object identities, signed authority lifetime and compensation custody are checked against the committed plan.

application/json

Schema
{
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "args": {
          "additionalProperties": false,
          "properties": {},
          "required": [],
          "type": "object"
        },
        "artifact_key": {
          "type": "string"
        },
        "binding": {
          "$ref": "#/components/schemas/ProtocolAttemptBinding"
        },
        "operation": {
          "const": "create",
          "type": "string"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "binding",
        "artifact_key",
        "operation",
        "args"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "args": {
          "additionalProperties": false,
          "properties": {
            "bytes": {
              "minimum": 0,
              "type": "integer"
            },
            "number": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            },
            "sha256": {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            "upload_id": {
              "type": "string"
            }
          },
          "required": [
            "upload_id",
            "number",
            "bytes",
            "sha256"
          ],
          "type": "object"
        },
        "artifact_key": {
          "type": "string"
        },
        "binding": {
          "$ref": "#/components/schemas/ProtocolAttemptBinding"
        },
        "operation": {
          "const": "part",
          "type": "string"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "binding",
        "artifact_key",
        "operation",
        "args"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "args": {
          "additionalProperties": false,
          "properties": {
            "bytes": {
              "minimum": 0,
              "type": "integer"
            },
            "etag": {
              "type": "string"
            },
            "number": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            },
            "sha256": {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            "upload_id": {
              "type": "string"
            }
          },
          "required": [
            "upload_id",
            "number",
            "bytes",
            "sha256",
            "etag"
          ],
          "type": "object"
        },
        "artifact_key": {
          "type": "string"
        },
        "binding": {
          "$ref": "#/components/schemas/ProtocolAttemptBinding"
        },
        "operation": {
          "const": "part_ack",
          "type": "string"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "binding",
        "artifact_key",
        "operation",
        "args"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "args": {
          "additionalProperties": false,
          "properties": {
            "parts": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "bytes": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "etag": {
                    "type": "string"
                  },
                  "number": {
                    "maximum": 10000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "sha256": {
                    "pattern": "^[0-9a-f]{64}$",
                    "type": "string"
                  }
                },
                "required": [
                  "number",
                  "bytes",
                  "sha256",
                  "etag"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "upload_id": {
              "type": "string"
            }
          },
          "required": [
            "upload_id",
            "parts"
          ],
          "type": "object"
        },
        "artifact_key": {
          "type": "string"
        },
        "binding": {
          "$ref": "#/components/schemas/ProtocolAttemptBinding"
        },
        "operation": {
          "const": "complete",
          "type": "string"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "binding",
        "artifact_key",
        "operation",
        "args"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "args": {
          "additionalProperties": false,
          "properties": {
            "etag": {
              "type": "string"
            },
            "version_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "etag",
            "version_id"
          ],
          "type": "object"
        },
        "artifact_key": {
          "type": "string"
        },
        "binding": {
          "$ref": "#/components/schemas/ProtocolAttemptBinding"
        },
        "operation": {
          "const": "head",
          "type": "string"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "binding",
        "artifact_key",
        "operation",
        "args"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "args": {
          "additionalProperties": false,
          "properties": {
            "abort_id": {
              "type": "string"
            },
            "acceptance_id": {
              "type": "string"
            },
            "reason": {
              "const": "original_native_identity_lost",
              "type": "string"
            },
            "receipt_sha256": {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            }
          },
          "required": [
            "abort_id",
            "acceptance_id",
            "receipt_sha256",
            "reason"
          ],
          "type": "object"
        },
        "artifact_key": {
          "const": "",
          "type": "string"
        },
        "binding": {
          "$ref": "#/components/schemas/ProtocolAttemptBinding"
        },
        "operation": {
          "const": "compensate_pre_finalize",
          "type": "string"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "binding",
        "artifact_key",
        "operation",
        "args"
      ],
      "type": "object"
    }
  ]
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "schema": {
          "const": 1,
          "type": "integer"
        },
        "upload_id": {
          "type": "string"
        }
      },
      "required": [
        "schema",
        "upload_id"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "acknowledged": {
          "const": true,
          "type": "boolean"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "acknowledged"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "authority": {
          "additionalProperties": false,
          "properties": {
            "expires_at": {
              "type": "integer"
            },
            "headers": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "Dynamic HTTP header names, each with a string value.",
              "type": "object",
              "x-open-schema-reason": "Dynamic HTTP header names, each with a string value."
            },
            "method": {
              "const": "PUT",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "method",
            "url",
            "headers",
            "expires_at"
          ],
          "type": "object"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "authority"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "object": {
          "additionalProperties": false,
          "properties": {
            "bytes": {
              "type": "integer"
            },
            "checksum_type": {
              "enum": [
                "",
                "FULL_OBJECT",
                "COMPOSITE"
              ]
            },
            "etag": {
              "type": "string"
            },
            "metadata": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {},
                  "required": [],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "vnbui-artifact-id": {
                      "type": "string"
                    },
                    "vnbui-backup-id": {
                      "type": "string"
                    },
                    "vnbui-org-id": {
                      "type": "string"
                    },
                    "vnbui-plan-sha256": {
                      "type": "string"
                    },
                    "vnbui-protocol": {
                      "type": "string"
                    },
                    "vnbui-reservation-id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "vnbui-protocol",
                    "vnbui-org-id",
                    "vnbui-backup-id",
                    "vnbui-reservation-id",
                    "vnbui-plan-sha256",
                    "vnbui-artifact-id"
                  ],
                  "type": "object"
                }
              ]
            },
            "sha256": {
              "type": "string"
            },
            "version_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "etag",
            "version_id",
            "bytes",
            "sha256",
            "checksum_type",
            "metadata"
          ],
          "type": "object"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "object"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "capacity_state": {
          "const": "reserved",
          "type": "string"
        },
        "cleanup_required": {
          "const": true,
          "type": "boolean"
        },
        "intent_id": {
          "type": "string"
        },
        "s3_absent": {
          "type": "boolean"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "intent_id",
        "s3_absent",
        "cleanup_required",
        "capacity_state"
      ],
      "type": "object"
    }
  ]
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/agents/backups/{backup_id}/storage-retirementStorage Retirement

Reveal only the exact reviewed release to its original agent.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "journal_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "plan_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "reservation_id": {
      "type": "string"
    }
  },
  "required": [
    "reservation_id",
    "attempt_id",
    "plan_sha256",
    "journal_sha256"
  ],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "attempt_id": {
      "type": "string"
    },
    "backup_id": {
      "type": "string"
    },
    "capacity_id": {
      "type": "string"
    },
    "journal_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "operation_id": {
      "type": "string"
    },
    "org_id": {
      "type": "string"
    },
    "plan_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "release_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "reservation_id": {
      "type": "string"
    },
    "schema": {
      "const": 1,
      "type": "integer"
    }
  },
  "required": [
    "schema",
    "org_id",
    "backup_id",
    "reservation_id",
    "attempt_id",
    "operation_id",
    "capacity_id",
    "plan_sha256",
    "journal_sha256",
    "release_sha256"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/agents/backups/{backup_id}/transaction-keyTransaction Key

Authenticated, no-store, memory-only key delivery for exact live custody.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Required

application/json

Schema

ProtocolAttemptBinding

Authentication

Responses

200

Successful response

application/json

Schema
{
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "attempt_id": {
          "type": "string"
        },
        "dek": {
          "type": "null"
        },
        "format": {
          "const": "none",
          "type": "string"
        },
        "key_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "plan_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "reservation_id": {
          "type": "string"
        }
      },
      "required": [
        "reservation_id",
        "attempt_id",
        "plan_sha256",
        "key_ref",
        "format",
        "dek"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "attempt_id": {
          "type": "string"
        },
        "dek": {
          "description": "Base64 encoded 32 byte attempt data key; memory-only, no-store delivery.",
          "type": "string"
        },
        "format": {
          "const": "vnbu1-aes256gcm-chunk5242880",
          "type": "string"
        },
        "key_ref": {
          "type": "string"
        },
        "plan_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "reservation_id": {
          "type": "string"
        }
      },
      "required": [
        "reservation_id",
        "attempt_id",
        "key_ref",
        "plan_sha256",
        "format",
        "dek"
      ],
      "type": "object"
    }
  ]
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Agent identity or key is invalid, disabled, expired or no longer available

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

409

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/HTTPValidationError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/agents/{agent_id}/pending-jobsGet Agent Pending Jobs

Get backup jobs orchestrator believes are running on this agent. Used by agent on startup to reconcile state - determine which backups the orchestrator thinks are running so agent can verify reality. Returns: dict: backups list with id, vm_name, storage_path, started_at

Parameters

agent_id · path · Required

{
  "title": "Agent Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "backups": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "storage_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "vm_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "vm_name",
          "storage_path",
          "started_at",
          "status"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "backups"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/healthGet Health

Consolidated system health endpoint. Returns comprehensive health data for all system components. Use the `include` parameter to request specific sections only. Args: include: Comma-separated list of sections to include. Options: database, agents, storage, s3, api, metrics, services. If not specified, all sections are included. Returns: Health data for requested sections.

Parameters

include · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Include"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "agents": {
      "additionalProperties": false,
      "properties": {
        "degraded": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "issues": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "issues"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "healthy": {
          "type": "integer"
        },
        "online": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "total": {
          "type": "integer"
        }
      },
      "required": [
        "status",
        "total",
        "online",
        "healthy",
        "degraded"
      ],
      "type": "object"
    },
    "api": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "version"
      ],
      "type": "object"
    },
    "database": {
      "additionalProperties": false,
      "properties": {
        "connections": {
          "type": "integer"
        },
        "max_connections": {
          "type": "integer"
        },
        "response_time": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "response_time",
        "connections",
        "max_connections"
      ],
      "type": "object"
    },
    "metrics": {
      "additionalProperties": false,
      "properties": {
        "active_backups": {
          "type": "integer"
        },
        "failed_jobs_24h": {
          "type": "integer"
        },
        "online_agents": {
          "type": "integer"
        },
        "pending_jobs": {
          "type": "integer"
        },
        "total_backups": {
          "type": "integer"
        },
        "total_vms": {
          "type": "integer"
        }
      },
      "required": [
        "active_backups",
        "pending_jobs",
        "failed_jobs_24h",
        "online_agents",
        "total_vms",
        "total_backups"
      ],
      "type": "object"
    },
    "s3": {
      "additionalProperties": false,
      "properties": {
        "bucket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "configured": {
          "type": "boolean"
        },
        "endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_check": {
          "anyOf": [
            {
              "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "configured",
        "status",
        "endpoint",
        "bucket",
        "error",
        "last_check"
      ],
      "type": "object"
    },
    "services": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "description",
          "status"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "status": {
      "type": "string"
    },
    "storage": {
      "additionalProperties": false,
      "properties": {
        "backup_count": {
          "type": "integer"
        },
        "note": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "used_space": {
          "type": "number"
        }
      },
      "required": [
        "status",
        "used_space",
        "backup_count",
        "note"
      ],
      "type": "object"
    },
    "timestamp": {
      "anyOf": [
        {
          "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "status",
    "timestamp"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/health/agentsGet Agent Health Deprecated

DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "agents": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "hostname": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_heartbeat": {
            "anyOf": [
              {
                "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "time_since_heartbeat_seconds": {
            "type": "integer"
          },
          "vm_count": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "hostname",
          "status",
          "last_heartbeat",
          "time_since_heartbeat_seconds",
          "vm_count"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "summary": {
      "additionalProperties": false,
      "properties": {
        "health_percentage": {
          "type": "number"
        },
        "offline": {
          "type": "integer"
        },
        "online": {
          "type": "integer"
        },
        "total_agents": {
          "type": "integer"
        }
      },
      "required": [
        "total_agents",
        "online",
        "offline",
        "health_percentage"
      ],
      "type": "object"
    }
  },
  "required": [
    "summary",
    "agents"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/health/agents/{agent_id}/heartbeatAgent Heartbeat

Agent heartbeat endpoint - requires agent API key authentication. Called by agent every 30 seconds to report it's alive and send metrics. Args: agent_id: Agent ID from URL path request: Request body with metrics agent: Authenticated agent (from X-Agent-Key header) db: Database session Returns: dict: Status and timestamp

Parameters

agent_id · path · Required

{
  "title": "Agent Id",
  "type": "string"
}

X-Agent-Key · header · Optional

{
  "title": "X-Agent-Key",
  "type": "string"
}

Request body

Legacy receiver treats malformed/empty JSON as an empty heartbeat; non-object JSON has no successful path. Extra fields are ignored. Provider events and capabilities are extensible observations, not publication authority.

application/json

Schema
{
  "additionalProperties": true,
  "properties": {
    "active_backups": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "active_restores": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "backup_storage_free_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "backup_storage_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "backup_storage_total_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "capabilities": {
      "additionalProperties": true,
      "description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
      "type": "object",
      "x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
    },
    "cpu_cores": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "cpu_usage_percent": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "disk_usage_percent": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "events": {
      "items": {
        "additionalProperties": true,
        "description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
        "type": "object",
        "x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
      },
      "type": "array"
    },
    "ip_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "libvirt_accessible": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "load_average_15m": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "memory_usage_percent": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "port": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "provider_accessible": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "scope": {
      "anyOf": [
        {
          "additionalProperties": true,
          "description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
          "type": "object",
          "x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "storage_measurement_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "storage_role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [],
  "type": "object"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "agent_id": {
      "type": "string"
    },
    "config": {
      "additionalProperties": true,
      "description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
      "type": "object",
      "x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
    },
    "s3_config": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "access_key": {
              "type": "string"
            },
            "bucket": {
              "type": "string"
            },
            "delete_local": {
              "type": "boolean"
            },
            "enabled": {
              "const": true,
              "type": "boolean"
            },
            "endpoint": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "prefix": {
              "type": "string"
            },
            "region": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "secret_key": {
              "type": "string"
            }
          },
          "required": [
            "enabled",
            "endpoint",
            "region",
            "bucket",
            "prefix",
            "access_key",
            "secret_key",
            "delete_local"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "const": "ok",
      "type": "string"
    },
    "timestamp": {
      "anyOf": [
        {
          "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "status",
    "timestamp",
    "agent_id",
    "config",
    "s3_config"
  ],
  "type": "object"
}

401

Missing/invalid agent or registration credential, or required verified TLS transport unavailable

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/health/backupsGet Backup Health Deprecated

DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "health_metrics": {
      "additionalProperties": false,
      "properties": {
        "avg_backup_size_bytes": {
          "type": "integer"
        },
        "old_backups_past_retention": {
          "type": "integer"
        },
        "recent_completions_24h": {
          "type": "integer"
        },
        "recent_failures_24h": {
          "type": "integer"
        },
        "success_rate_7d": {
          "type": "number"
        },
        "total_storage_bytes": {
          "type": "integer"
        }
      },
      "required": [
        "recent_failures_24h",
        "recent_completions_24h",
        "old_backups_past_retention",
        "avg_backup_size_bytes",
        "total_storage_bytes",
        "success_rate_7d"
      ],
      "type": "object"
    },
    "health_status": {
      "type": "string"
    },
    "recent_failures": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "vm_id": {
            "type": "string"
          },
          "vm_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "vm_id",
          "vm_name",
          "error",
          "created_at"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "summary": {
      "additionalProperties": false,
      "properties": {
        "completed": {
          "type": "integer"
        },
        "failed": {
          "type": "integer"
        },
        "pending": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        },
        "total_backups": {
          "type": "integer"
        }
      },
      "required": [
        "total_backups",
        "completed",
        "failed",
        "running",
        "pending"
      ],
      "type": "object"
    }
  },
  "required": [
    "summary",
    "health_metrics",
    "recent_failures",
    "health_status"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/health/detailedGet Detailed Health Deprecated

DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "agents": {
      "additionalProperties": false,
      "properties": {
        "degraded": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "issues": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "issues"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "healthy": {
          "type": "integer"
        },
        "online": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "total": {
          "type": "integer"
        }
      },
      "required": [
        "status",
        "total",
        "online",
        "healthy",
        "degraded"
      ],
      "type": "object"
    },
    "api": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "version"
      ],
      "type": "object"
    },
    "database": {
      "additionalProperties": false,
      "properties": {
        "connections": {
          "type": "integer"
        },
        "max_connections": {
          "type": "integer"
        },
        "response_time": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "response_time",
        "connections",
        "max_connections"
      ],
      "type": "object"
    },
    "metrics": {
      "additionalProperties": false,
      "properties": {
        "active_backups": {
          "type": "integer"
        },
        "failed_jobs_24h": {
          "type": "integer"
        },
        "online_agents": {
          "type": "integer"
        },
        "pending_jobs": {
          "type": "integer"
        },
        "total_backups": {
          "type": "integer"
        },
        "total_vms": {
          "type": "integer"
        }
      },
      "required": [
        "active_backups",
        "pending_jobs",
        "failed_jobs_24h",
        "online_agents",
        "total_vms",
        "total_backups"
      ],
      "type": "object"
    },
    "s3": {
      "additionalProperties": false,
      "properties": {
        "bucket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "configured": {
          "type": "boolean"
        },
        "endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_check": {
          "anyOf": [
            {
              "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "configured",
        "status",
        "endpoint",
        "bucket",
        "error",
        "last_check"
      ],
      "type": "object"
    },
    "services": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "description",
          "status"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "status": {
      "type": "string"
    },
    "storage": {
      "additionalProperties": false,
      "properties": {
        "backup_count": {
          "type": "integer"
        },
        "note": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "used_space": {
          "type": "number"
        }
      },
      "required": [
        "status",
        "used_space",
        "backup_count",
        "note"
      ],
      "type": "object"
    },
    "timestamp": {
      "anyOf": [
        {
          "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "status",
    "timestamp",
    "database",
    "agents",
    "storage",
    "s3",
    "api",
    "metrics",
    "services"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/health/diagnosticsSupport Diagnostics

Admin-only, organization-scoped download; collection never repairs state.

Parameters

backup_id · query · Optional

{
  "anyOf": [
    {
      "format": "uuid",
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Backup Id"
}

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "backend_version": {
      "type": "string"
    },
    "collected_at": {
      "type": "string"
    },
    "guidance": {
      "additionalProperties": false,
      "properties": {
        "failed": {
          "type": "string"
        },
        "held": {
          "type": "string"
        },
        "unavailable": {
          "type": "string"
        }
      },
      "required": [
        "held",
        "failed",
        "unavailable"
      ],
      "type": "object"
    },
    "limits": {
      "additionalProperties": false,
      "properties": {
        "query_timeout_ms": {
          "type": "integer"
        },
        "rows_per_section": {
          "type": "integer"
        }
      },
      "required": [
        "rows_per_section",
        "query_timeout_ms"
      ],
      "type": "object"
    },
    "privacy": {
      "type": "string"
    },
    "report_id": {
      "type": "string"
    },
    "schema": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "sections": {
      "additionalProperties": false,
      "properties": {
        "agents": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "rows": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "cert_expires_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "last_heartbeat": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "mtls_enabled": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "version": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "status",
                      "last_heartbeat",
                      "cert_expires_at",
                      "mtls_enabled",
                      "version"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "status": {
                  "const": "observed",
                  "type": "string"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "status",
                "truncated",
                "rows"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "reason": {
                  "const": "collection_failed",
                  "type": "string"
                },
                "status": {
                  "const": "unavailable",
                  "type": "string"
                }
              },
              "required": [
                "status",
                "reason"
              ],
              "type": "object"
            }
          ]
        },
        "backups": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "rows": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "backup_type": {
                        "type": "string"
                      },
                      "capacity_state": {
                        "type": "string"
                      },
                      "chain_position": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "native_failure_evidence_present": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "native_intent_present": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "native_inventory_present": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "parent_backup_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "progress": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "vm_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "vm_id",
                      "parent_backup_id",
                      "status",
                      "capacity_state",
                      "backup_type",
                      "created_at",
                      "completed_at",
                      "native_intent_present",
                      "native_inventory_present",
                      "native_failure_evidence_present",
                      "progress",
                      "chain_position"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "status": {
                  "const": "observed",
                  "type": "string"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "status",
                "truncated",
                "rows"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "reason": {
                  "const": "collection_failed",
                  "type": "string"
                },
                "status": {
                  "const": "unavailable",
                  "type": "string"
                }
              },
              "required": [
                "status",
                "reason"
              ],
              "type": "object"
            }
          ]
        },
        "restores": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "rows": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "backup_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "error_recorded": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "progress": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "backup_id",
                      "status",
                      "created_at",
                      "completed_at",
                      "error_recorded",
                      "progress"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "status": {
                  "const": "observed",
                  "type": "string"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "status",
                "truncated",
                "rows"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "reason": {
                  "const": "collection_failed",
                  "type": "string"
                },
                "status": {
                  "const": "unavailable",
                  "type": "string"
                }
              },
              "required": [
                "status",
                "reason"
              ],
              "type": "object"
            }
          ]
        },
        "verifications": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "rows": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "backup_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "created_at": {
                        "anyOf": [
                          {
                            "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "verification_cancel_requested": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "verification_read_attempts": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "verification_read_limit": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "verification_worker_id": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "backup_id",
                      "verification_worker_id",
                      "status",
                      "created_at",
                      "completed_at",
                      "verification_cancel_requested",
                      "verification_read_attempts",
                      "verification_read_limit"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "status": {
                  "const": "observed",
                  "type": "string"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "status",
                "truncated",
                "rows"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "reason": {
                  "const": "collection_failed",
                  "type": "string"
                },
                "status": {
                  "const": "unavailable",
                  "type": "string"
                }
              },
              "required": [
                "status",
                "reason"
              ],
              "type": "object"
            }
          ]
        }
      },
      "required": [
        "agents",
        "backups",
        "restores",
        "verifications"
      ],
      "type": "object"
    },
    "status": {
      "enum": [
        "collected",
        "partial"
      ]
    }
  },
  "required": [
    "schema",
    "report_id",
    "collected_at",
    "backend_version",
    "scope",
    "privacy",
    "limits",
    "sections",
    "guidance",
    "status"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/health/systemGet System Health Deprecated

DEPRECATED: Use /api/v1/health instead. This endpoint will be removed in v4.0.

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "activity": {
      "additionalProperties": false,
      "properties": {
        "recent_actions_1h": {
          "type": "integer"
        }
      },
      "required": [
        "recent_actions_1h"
      ],
      "type": "object"
    },
    "metrics": {
      "additionalProperties": false,
      "properties": {
        "agents": {
          "additionalProperties": false,
          "properties": {
            "offline": {
              "type": "integer"
            },
            "online": {
              "type": "integer"
            },
            "total": {
              "type": "integer"
            }
          },
          "required": [
            "total",
            "online",
            "offline"
          ],
          "type": "object"
        },
        "backups": {
          "additionalProperties": false,
          "properties": {
            "running": {
              "type": "integer"
            },
            "total": {
              "type": "integer"
            }
          },
          "required": [
            "total",
            "running"
          ],
          "type": "object"
        },
        "schedules": {
          "additionalProperties": false,
          "properties": {
            "active": {
              "type": "integer"
            },
            "inactive": {
              "type": "integer"
            },
            "total": {
              "type": "integer"
            }
          },
          "required": [
            "total",
            "active",
            "inactive"
          ],
          "type": "object"
        },
        "storage": {
          "additionalProperties": false,
          "properties": {
            "total_bytes": {
              "type": "integer"
            },
            "total_gb": {
              "type": "number"
            }
          },
          "required": [
            "total_bytes",
            "total_gb"
          ],
          "type": "object"
        },
        "users": {
          "additionalProperties": false,
          "properties": {
            "total": {
              "type": "integer"
            }
          },
          "required": [
            "total"
          ],
          "type": "object"
        },
        "vms": {
          "additionalProperties": false,
          "properties": {
            "total": {
              "type": "integer"
            }
          },
          "required": [
            "total"
          ],
          "type": "object"
        }
      },
      "required": [
        "agents",
        "vms",
        "backups",
        "schedules",
        "users",
        "storage"
      ],
      "type": "object"
    },
    "status": {
      "type": "string"
    },
    "timestamp": {
      "anyOf": [
        {
          "description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "status",
    "timestamp",
    "metrics",
    "activity"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}