If you want to work and obtain income in Indonesia, you must get a Work KITAS that allows foreign citizens to work officially in the country. Currently, you can get a Work KITAS for 6 months or 12 months.
A work permit is the sole legal document that allows foreigners to work and obtain income in the territory of Indonesia.