Yes, temporary residence permit is issued only in Ukraine. You'll need to apply for it personally. They take pictures of you, take your fingerprints, you sign the application form - all personally. But if you are not in Ukraine yet, do not rush on that. You may need a type D visa. Better contact us in advance and we will explain you everything.