
A bed serves two purposes. Finishing the lie-down animation sets your respawn point. To recover health and mana faster, you then need to choose “Sleep until recovered.”
Wait until the character is lying down
Approach the bed, choose “Lie down” and give the character about two and a half seconds to settle. You can get up now if you only wanted to change your respawn point. To heal, check that you have fullness left and use the recovery button.
Source: Open World: getting started
If recovery stops before your bars fill
Bed recovery supplies up to 8 HP and 4 mana per second, drawing on fullness as it goes. If fullness runs out while a bar is still short, get up, eat something your character can use and start another rest. Recovery also switches off automatically once both bars are full.
Source: Open World: getting started
Sources
Interfaces and rules can change. Check the official pages above for current requirements.