diff --git a/hcloud/servers/client.py b/hcloud/servers/client.py
index ea72851..b6da0d3 100644
--- a/hcloud/servers/client.py
+++ b/hcloud/servers/client.py
@@ -1,5 +1,6 @@
 from __future__ import annotations
 
+import warnings
 from typing import TYPE_CHECKING, Any, NamedTuple
 
 from ..actions import ActionsPageResult, BoundAction, ResourceActionsClient
@@ -21,6 +22,7 @@ from .domain import (
     PrivateNet,
     PublicNetwork,
     PublicNetworkFirewall,
+    RebuildResponse,
     RequestConsoleResponse,
     ResetPasswordResponse,
     Server,
@@ -299,13 +301,18 @@ class BoundServer(BoundModelBase, Server):
         """
         return self._client.create_image(self, description, type, labels)
 
-    def rebuild(self, image: Image | BoundImage) -> BoundAction:
+    def rebuild(
+        self,
+        image: Image | BoundImage,
+        *,
+        return_response: bool = False,
+    ) -> RebuildResponse | BoundAction:
         """Rebuilds a server overwriting its disk with the content of an image, thereby destroying all data on the target server.
 
-        :param image: :class:`BoundImage <hcloud.images.client.BoundImage>` or :class:`Image <hcloud.servers.domain.Image>`
-        :return:  :class:`BoundAction <hcloud.actions.client.BoundAction>`
+        :param image: Image to use for the rebuilt server
+        :param return_response: Whether to return the full response or only the action.
         """
-        return self._client.rebuild(self, image)
+        return self._client.rebuild(self, image, return_response=return_response)
 
     def change_type(
         self,
@@ -930,12 +937,14 @@ class ServersClient(ClientEntityBase):
         self,
         server: Server | BoundServer,
         image: Image | BoundImage,
-    ) -> BoundAction:
+        *,
+        return_response: bool = False,
+    ) -> RebuildResponse | BoundAction:
         """Rebuilds a server overwriting its disk with the content of an image, thereby destroying all data on the target server.
 
-        :param server: :class:`BoundServer <hcloud.servers.client.BoundServer>` or :class:`Server <hcloud.servers.domain.Server>`
-        :param image: :class:`BoundImage <hcloud.images.client.BoundImage>` or :class:`Image <hcloud.servers.domain.Image>`
-        :return:  :class:`BoundAction <hcloud.actions.client.BoundAction>`
+        :param server: Server to rebuild
+        :param image: Image to use for the rebuilt server
+        :param return_response: Whether to return the full response or only the action.
         """
         data: dict[str, Any] = {"image": image.id_or_name}
         response = self._client.request(
@@ -943,7 +952,22 @@ class ServersClient(ClientEntityBase):
             method="POST",
             json=data,
         )
-        return BoundAction(self._client.actions, response["action"])
+
+        rebuild_response = RebuildResponse(
+            action=BoundAction(self._client.actions, response["action"]),
+            root_password=response.get("root_password"),
+        )
+
+        if not return_response:
+            warnings.warn(
+                "Returning only the 'action' is deprecated, please set the "
+                "'return_response' keyword argument to 'True' to return the full "
+                "rebuild response and update your code accordingly.",
+                DeprecationWarning,
+                stacklevel=2,
+            )
+            return rebuild_response.action
+        return rebuild_response
 
     def enable_backup(self, server: Server | BoundServer) -> BoundAction:
         """Enables and configures the automatic daily backup option for the server. Enabling automatic backups will increase the price of the server by 20%.
diff --git a/hcloud/servers/domain.py b/hcloud/servers/domain.py
index 2d55fd3..3802020 100644
--- a/hcloud/servers/domain.py
+++ b/hcloud/servers/domain.py
@@ -244,6 +244,24 @@ class RequestConsoleResponse(BaseDomain):
         self.password = password
 
 
+class RebuildResponse(BaseDomain):
+    """Rebuild Response Domain
+
+    :param action: Shows the progress of the server rebuild action
+    :param root_password: The root password of the server when not using SSH keys
+    """
+
+    __slots__ = ("action", "root_password")
+
+    def __init__(
+        self,
+        action: BoundAction,
+        root_password: str | None,
+    ):
+        self.action = action
+        self.root_password = root_password
+
+
 class PublicNetwork(BaseDomain):
     """Public Network Domain
 

diff --git a/tests/unit/servers/test_client.py b/tests/unit/servers/test_client.py
index 2490ecf..a8ba355 100644
--- a/tests/unit/servers/test_client.py
+++ b/tests/unit/servers/test_client.py
@@ -307,15 +307,19 @@ class TestBoundServer:
 
     def test_rebuild(self, hetzner_client, bound_server, generic_action):
         hetzner_client.request.return_value = generic_action
-        action = bound_server.rebuild(Image(name="ubuntu-20.04"))
+        response = bound_server.rebuild(
+            Image(name="ubuntu-20.04"),
+            return_response=True,
+        )
         hetzner_client.request.assert_called_with(
             url="/servers/14/actions/rebuild",
             method="POST",
             json={"image": "ubuntu-20.04"},
         )
 
-        assert action.id == 1
-        assert action.progress == 0
+        assert response.action.id == 1
+        assert response.action.progress == 0
+        assert response.root_password is None or isinstance(response.root_password, str)
 
     def test_enable_backup(self, hetzner_client, bound_server, generic_action):
         hetzner_client.request.return_value = generic_action
@@ -1040,15 +1044,25 @@ class TestServersClient:
     )
     def test_rebuild(self, servers_client, server, generic_action):
         servers_client._client.request.return_value = generic_action
-        action = servers_client.rebuild(server, Image(name="ubuntu-20.04"))
+        response = servers_client.rebuild(
+            server,
+            Image(name="ubuntu-20.04"),
+            return_response=True,
+        )
         servers_client._client.request.assert_called_with(
             url="/servers/1/actions/rebuild",
             method="POST",
             json={"image": "ubuntu-20.04"},
         )
 
-        assert action.id == 1
-        assert action.progress == 0
+        assert response.action.id == 1
+        assert response.action.progress == 0
+        assert response.root_password is None or isinstance(response.root_password, str)
+
+    def test_rebuild_return_response_deprecation(self, servers_client, generic_action):
+        servers_client._client.request.return_value = generic_action
+        with pytest.deprecated_call():
+            servers_client.rebuild(Server(id=1), Image(name="ubuntu-20.04"))
 
     @pytest.mark.parametrize(
         "server", [Server(id=1), BoundServer(mock.MagicMock(), dict(id=1))]

Rebuild does not return root_password
## Bug Report

**Current Behavior**
'Rebuild' returns the BoundAction but does not return the "root_password" 

**Input Code**

```
server = self.client.servers.get_by_name(name='server')
res = server.rebuild(Image(id='image_id'))
print(res)
```

**Expected behavior/code**
The 'rebuild' should return  the root_password along with the BoundAction.
The response from the Hetzner API is below ( See possible solution) 


**Environment**
- Python Version: 3.11.2
- Hcloud-Python Version: 1.18.2

**Possible Solution**
```
{
  "action": {
    "command": "rebuild_server",
    "error": {
      "code": "action_failed",
      "message": "Action failed"
    },
    "finished": null,
    "id": 13,
    "progress": 0,
    "resources": [
      {
        "id": 42,
        "type": "server"
      }
    ],
    "started": "2016-01-30T23:50:00+00:00",
    "status": "running"
  },
  "root_password": null
}
```
**Additional context/Screenshots**
Add any other context about the problem here. If applicable, add screenshots to help explain.
tests/unit/servers/test_client.py::TestBoundServer::test_rebuild tests/unit/servers/test_client.py::TestServersClient::test_rebuild[server0] tests/unit/servers/test_client.py::TestServersClient::test_rebuild[server1] tests/unit/servers/test_client.py::TestServersClient::test_rebuild_return_response_deprecation
tests/unit/servers/test_client.py::TestBoundServer::test_bound_server_init tests/unit/servers/test_client.py::TestBoundServer::test_get_actions_list[params0] tests/unit/servers/test_client.py::TestBoundServer::test_get_actions_list[params1] tests/unit/servers/test_client.py::TestBoundServer::test_get_actions[params0] tests/unit/servers/test_client.py::TestBoundServer::test_get_actions[params1] tests/unit/servers/test_client.py::TestBoundServer::test_update tests/unit/servers/test_client.py::TestBoundServer::test_delete tests/unit/servers/test_client.py::TestBoundServer::test_power_off tests/unit/servers/test_client.py::TestBoundServer::test_power_on tests/unit/servers/test_client.py::TestBoundServer::test_reboot tests/unit/servers/test_client.py::TestBoundServer::test_reset tests/unit/servers/test_client.py::TestBoundServer::test_shutdown tests/unit/servers/test_client.py::TestBoundServer::test_reset_password tests/unit/servers/test_client.py::TestBoundServer::test_change_type tests/unit/servers/test_client.py::TestBoundServer::test_enable_rescue tests/unit/servers/test_client.py::TestBoundServer::test_disable_rescue tests/unit/servers/test_client.py::TestBoundServer::test_create_image tests/unit/servers/test_client.py::TestBoundServer::test_enable_backup tests/unit/servers/test_client.py::TestBoundServer::test_disable_backup tests/unit/servers/test_client.py::TestBoundServer::test_attach_iso tests/unit/servers/test_client.py::TestBoundServer::test_detach_iso tests/unit/servers/test_client.py::TestBoundServer::test_change_dns_ptr tests/unit/servers/test_client.py::TestBoundServer::test_change_protection tests/unit/servers/test_client.py::TestBoundServer::test_request_console tests/unit/servers/test_client.py::TestBoundServer::test_attach_to_network[network0] tests/unit/servers/test_client.py::TestBoundServer::test_attach_to_network[network1] tests/unit/servers/test_client.py::TestBoundServer::test_detach_from_network[network0] tests/unit/servers/test_client.py::TestBoundServer::test_detach_from_network[network1] tests/unit/servers/test_client.py::TestBoundServer::test_change_alias_ips[network0] tests/unit/servers/test_client.py::TestBoundServer::test_change_alias_ips[network1] tests/unit/servers/test_client.py::TestBoundServer::test_add_to_placement_group[placement_group0] tests/unit/servers/test_client.py::TestBoundServer::test_add_to_placement_group[placement_group1] tests/unit/servers/test_client.py::TestBoundServer::test_remove_from_placement_group tests/unit/servers/test_client.py::TestServersClient::test_get_by_id tests/unit/servers/test_client.py::TestServersClient::test_get_list[params0] tests/unit/servers/test_client.py::TestServersClient::test_get_list[params1] tests/unit/servers/test_client.py::TestServersClient::test_get_list[params2] tests/unit/servers/test_client.py::TestServersClient::test_get_all[params0] tests/unit/servers/test_client.py::TestServersClient::test_get_all[params1] tests/unit/servers/test_client.py::TestServersClient::test_get_by_name tests/unit/servers/test_client.py::TestServersClient::test_create_with_datacenter tests/unit/servers/test_client.py::TestServersClient::test_create_with_location tests/unit/servers/test_client.py::TestServersClient::test_create_with_volumes tests/unit/servers/test_client.py::TestServersClient::test_create_with_networks tests/unit/servers/test_client.py::TestServersClient::test_create_with_firewalls tests/unit/servers/test_client.py::TestServersClient::test_create_with_placement_group tests/unit/servers/test_client.py::TestServersClient::test_get_actions_list[server0] tests/unit/servers/test_client.py::TestServersClient::test_get_actions_list[server1] tests/unit/servers/test_client.py::TestServersClient::test_update[server0] tests/unit/servers/test_client.py::TestServersClient::test_update[server1] tests/unit/servers/test_client.py::TestServersClient::test_delete[server0] tests/unit/servers/test_client.py::TestServersClient::test_delete[server1] tests/unit/servers/test_client.py::TestServersClient::test_power_off[server0] tests/unit/servers/test_client.py::TestServersClient::test_power_off[server1] tests/unit/servers/test_client.py::TestServersClient::test_power_on[server0] tests/unit/servers/test_client.py::TestServersClient::test_power_on[server1] tests/unit/servers/test_client.py::TestServersClient::test_reboot[server0] tests/unit/servers/test_client.py::TestServersClient::test_reboot[server1] tests/unit/servers/test_client.py::TestServersClient::test_reset[server0] tests/unit/servers/test_client.py::TestServersClient::test_reset[server1] tests/unit/servers/test_client.py::TestServersClient::test_shutdown[server0] tests/unit/servers/test_client.py::TestServersClient::test_shutdown[server1] tests/unit/servers/test_client.py::TestServersClient::test_reset_password[server0] tests/unit/servers/test_client.py::TestServersClient::test_reset_password[server1] tests/unit/servers/test_client.py::TestServersClient::test_change_type_with_server_type_name[server0] tests/unit/servers/test_client.py::TestServersClient::test_change_type_with_server_type_name[server1] tests/unit/servers/test_client.py::TestServersClient::test_change_type_with_server_type_id[server0] tests/unit/servers/test_client.py::TestServersClient::test_change_type_with_server_type_id[server1] tests/unit/servers/test_client.py::TestServersClient::test_change_type_with_blank_server_type[server0] tests/unit/servers/test_client.py::TestServersClient::test_change_type_with_blank_server_type[server1] tests/unit/servers/test_client.py::TestServersClient::test_enable_rescue[server0] tests/unit/servers/test_client.py::TestServersClient::test_enable_rescue[server1] tests/unit/servers/test_client.py::TestServersClient::test_disable_rescue[server0] tests/unit/servers/test_client.py::TestServersClient::test_disable_rescue[server1] tests/unit/servers/test_client.py::TestServersClient::test_create_image[server0] tests/unit/servers/test_client.py::TestServersClient::test_create_image[server1] tests/unit/servers/test_client.py::TestServersClient::test_enable_backup[server0] tests/unit/servers/test_client.py::TestServersClient::test_enable_backup[server1] tests/unit/servers/test_client.py::TestServersClient::test_disable_backup[server0] tests/unit/servers/test_client.py::TestServersClient::test_disable_backup[server1] tests/unit/servers/test_client.py::TestServersClient::test_attach_iso[server0] tests/unit/servers/test_client.py::TestServersClient::test_attach_iso[server1] tests/unit/servers/test_client.py::TestServersClient::test_detach_iso[server0] tests/unit/servers/test_client.py::TestServersClient::test_detach_iso[server1] tests/unit/servers/test_client.py::TestServersClient::test_change_dns_ptr[server0] tests/unit/servers/test_client.py::TestServersClient::test_change_dns_ptr[server1] tests/unit/servers/test_client.py::TestServersClient::test_change_protection[server0] tests/unit/servers/test_client.py::TestServersClient::test_change_protection[server1] tests/unit/servers/test_client.py::TestServersClient::test_request_console[server0] tests/unit/servers/test_client.py::TestServersClient::test_request_console[server1] tests/unit/servers/test_client.py::TestServersClient::test_attach_to_network[network0-server0] tests/unit/servers/test_client.py::TestServersClient::test_attach_to_network[network0-server1] tests/unit/servers/test_client.py::TestServersClient::test_attach_to_network[network1-server0] tests/unit/servers/test_client.py::TestServersClient::test_attach_to_network[network1-server1] tests/unit/servers/test_client.py::TestServersClient::test_detach_from_network[network0-server0] tests/unit/servers/test_client.py::TestServersClient::test_detach_from_network[network0-server1] tests/unit/servers/test_client.py::TestServersClient::test_detach_from_network[network1-server0] tests/unit/servers/test_client.py::TestServersClient::test_detach_from_network[network1-server1] tests/unit/servers/test_client.py::TestServersClient::test_change_alias_ips[network0-server0] tests/unit/servers/test_client.py::TestServersClient::test_change_alias_ips[network0-server1] tests/unit/servers/test_client.py::TestServersClient::test_change_alias_ips[network1-server0] tests/unit/servers/test_client.py::TestServersClient::test_change_alias_ips[network1-server1] tests/unit/servers/test_client.py::TestServersClient::test_actions_get_by_id tests/unit/servers/test_client.py::TestServersClient::test_actions_get_list tests/unit/servers/test_client.py::TestServersClient::test_actions_get_all