Guide: How to obtain and activate the BOK code for foreigners with a residence or permanent residence card in Slovakia
BOK (Personal Security Code) is a personal 6-digit code used to verify one’s identity when using Slovakia’s electronic government services. It is required to log in to the slovensko.sk portal, submit applications online, use an electronic signature, and access services such as extending residence or permanent residence permits.
⚠️ Important for Bratislava (update as of 25 May 2026)
As of 25 May 2026, the activation of the BOK code for foreigners in Bratislava is handled at only one location:
Klientske centrum Bratislava — Zlaté Piesky Studená 4/B, 821 04 Bratislava (OC STYLA shopping centre, entrance A, 2nd floor) Oddelenie dokladov (Document Department)
Office hours (úradné hodiny): Monday: 08:00 – 15:00 Tuesday: 08:00 – 15:00 Wednesday: 08:00 – 17:00 Thursday: 08:00 – 15:00 Friday: 08:00 – 14:00
No appointment via the reservation system is needed — you can simply walk in during office hours.
The Foreigners’ Police (Cudzinecká polícia) in Bratislava no longer provides this service. The other document departments in Bratislava, including the Klientske centrum on Tomášikova, have also stopped offering it.
This change applies only to Bratislava. In other Slovak cities, the BOK code can still be obtained at any document department (oddelenie dokladov) at OR PZ or at any district office client centre.
For what purpose a foreigner needs the BOK code:
- With this code, you can access the Slovensko.sk government portal. Why this is necessary and how to do it is explained in our detailed guide.
- Recently, foreigners need to confirm their identity on the migration police website using the BOK code to make an appointment for extending their residence or permanent residence permits.
- You can activate an electronic mailbox (eSchránka) to receive official correspondence.
- Generate certificates for an electronic signature to work more effectively with Slovak government online services.
Where and how to obtain:
- You can activate the BOK code at the migration police, in the document departments of the district police directorates, or at the client centers of district offices.
- If you need to select a service from a list at the chosen location,
choose Oddelenie dokladov — získanie BOK kódu cudzincom (Document Department — obtaining the BOK code for foreigners)
What is needed to obtain:
- You will need a valid residence permit card (temporary or permanent) with a chip and your passport.
- Prepare and remember a 6-digit code in advance.
- The code issuance only takes a few minutes; a specialist will ask you to enter the pre-chosen code, no forms need to be filled out.
What comes next:
- After receiving the code, we recommend registering on the Slovensko.sk portal for effective interaction with Slovak government authorities. Detailed instructions on how to do this and why it is necessary are provided in our guide.
- We also recommend reviewing the complete list of guides, where we have thoroughly answered the most relevant questions foreigners have in Slovakia, such as how to obtain an electronic signature or register on the Slovak Financial Administration portal.