This is an easy-to-read page.
Here you can read about how to apply for a building permit.
You can read about
New building, rebuilding or extension
Building without a building permit
Permit-free building – "Attefallshus"
Boverket's rules for how you can build
CE marking of building products