Foreigners usually got into international school, they can help and guide about documents needed. Or you may visit this link www.e-layanan.dikdasmen.kemdikbud.go.id/ and fill in the form, but you need to be in indonesia to proceed with this website. Through this government official website you can apply both for school and university. Hope it helps!