As-salamu Alaykum,
If you have sinned without the intention to sin, are you still held accountable? does it depend on the sin?
Jazak Allah Khair
You do not earn sin for unintentionally committing a sinful act. The evidence for this includes:
ربنا لا تؤاخذنا إن نسينا أو أخطأنا
Our Lord, do not impose blame upon us if we have forgotten or erred.
— Quran 2:286 ; see hadith
وليس عليكم جناح فيما أخطأتم به ولكن ما تعمدت قلوبكم
And there is no blame upon you for that in which you have erred but [only for] what your hearts intended.
إن الله وضع عن أمتي الخطأ والنسيان وما استكرهوا عليه
Allah has forgiven my nation for mistakes and forgetfulness, and what they are forced to do.
Note however that you may still be liable to some expiation e.g. you need to make corrections for mistakes in acts of worship like prayer and hajj and you need to compensate other people for injuries and damages.