KSeF Faktury
EN
Join the start list

KSeF token: how to generate it and will it work after 2026

In short: the Polish Ministry of Finance (MF) has announced that logging in with a KSeF token will remain possible after 31 December 2026 (MF FAQ, category "Uprawnienia i autoryzacja", question 39). However, the regulation on using KSeF still says 31 December 2026 and, as of 19 October 2026, had not been amended, and in its consultations MF proposes that tokens should in future be valid for 1 to 365 days. A token generated today works until you revoke it.

Will KSeF tokens expire at the end of 2026?

Short answer: MF says tokens will stay, but until the regulation is amended this is not law, and the details will still change. Here is what the official sources say:

Source What it says Date
MF FAQ, category "Uprawnienia i autoryzacja", question 39 Asked whether tokens will expire at the end of 2026, MF answers "No" and announces an amendment of the regulation checked 19.10.2026
Podręcznik KSeF 2.0 (KSeF manual), part I, chapters 2 and 2.4 Tokens are to stay in the system; a token is valid until the user revokes it 06.08.2026
Regulation on using KSeF (Dz.U. 2025 poz. 1815), § 13(1)(1) A token can be used for authentication until 31 December 2026. The only amendment so far (Dz.U. 2026 poz. 169) concerns other deadlines status as of 19.10.2026
MF consultations of 9 June 2026 Proposal: tokens available after 31.12.2026, token validity from 1 to 365 days and a new permission for automatic token renewal with the owner's consent 11.06.2026

Our assessment: MF's statement is clear, but formally the regulation needs to be amended, and as of 19 October 2026 no amendment had been published. Until it is, the law still says 31 December 2026. On top of that, the consultation proposal means that a token generated in future may have an expiry date and will need renewing. Watch for MF announcements in December 2026.

Why you find conflicting information online

Originally tokens were to work only until the end of 2026 and then be replaced by KSeF certificates. That is what the December 2025 regulation said, and what many guides wrote. The decision to keep tokens came later, after requests from businesses and software vendors. Even the Aplikacja Podatnika KSeF 2.0 page on ksef.podatki.gov.pl still describes the feature as "generowanie i obsługę tokenów (do 31 grudnia 2026 r.)" (generating and managing tokens, until 31 December 2026). If an article does not quote question 39 or the 2026 manual, it is probably out of date.

Also watch out for tokens from the old KSeF 1.0. They do not work in KSeF 2.0, and you need to generate new ones (MF FAQ, category "Uprawnienia i autoryzacja", question 35).

What a KSeF token is

A token is a string of letters and digits that you generate in KSeF after logging in. It has permissions assigned to it, which you choose when generating it, and it lets software connect to KSeF through the API without signing again (MF FAQ, category "Uprawnienia i autoryzacja", question 22). Its key features according to Podręcznik KSeF 2.0, part I, chapter 2.4:

How to generate a token in Aplikacja Podatnika

The app is in Polish, so we quote the labels in Polish with a translation.

  1. Log in at ap.ksef.mf.gov.pl through login.gov.pl (Profil Zaufany, mObywatel, online banking, e-ID card) or with a qualified certificate, in the context of your company NIP.
  2. In the menu choose "Generuj token" (generate token).
  3. In "Nazwa tokena" (token name), enter a name you will recognise, for example the name of the program or the store.
  4. In "Wybierz uprawnienia powiązane z tokenem" (choose permissions linked to the token), tick only what the program needs.
  5. Click "Generuj token" and wait for the process to finish.
  6. Click "Kopiuj" (copy) and paste the token straight into the program or a password manager.

The token is shown only once. If you do not copy it, revoke it and generate a new one.

Which permissions to tick

The options are: issuing invoices, viewing invoices, viewing permissions, managing permissions, managing subordinate units, and viewing session history (generating UPO, the official receipt).

What the token is for What to tick
A program or app that issues invoices issuing invoices, viewing invoices
Accounting software that only downloads invoices viewing invoices
A program that downloads UPO from session history also viewing session history

Do not give managing permissions to any program unless it has to grant access to other people. Whoever holds such a token can grant and remove permissions in your name.

How to revoke a token

  1. In the menu choose "Lista tokenów" (list of tokens).
  2. Select the token on the list (filters by name and creator help).
  3. Click "Unieważnij" (revoke) and confirm.

A revoked token disappears from the list. The list also shows the activation date and the date of last use of each token, so it is easy to find tokens nobody uses any more.

Important: removing permissions does not revoke a token. If you remove a person's permissions, their token stops working, but when the permissions come back, the token works again. To cut off access for sure, revoke the token itself.

A token in a store app: pros and risks

Pros: you generate it in a minute, there are no files and no key password, and under the current rules it works until revoked, not for 2 years like a certificate. Risks: anyone who knows the string can act in KSeF within the permissions stored in it, so keep it like a password. Also, the rules on token validity may change after the regulation is amended.

That is why KSeF Faktury accepts both ways of connecting, but we recommend a certificate. How we store tokens and certificates is described on the Security page.

Token or certificate

Feature Token KSeF certificate
Validity Today until revoked (MF is considering 1-365 days) Up to 2 years
Carries permissions Yes No, the person's permissions count
Works in different contexts No Yes
Limit on number None Yes
Offline invoices (second QR code) No Yes, type 2 certificate

Based on table 3 in Podręcznik KSeF 2.0, part I. If you issue invoices for several companies or need offline mode, choose a certificate. Instructions are in the article how to generate a KSeF certificate. What else changes at the start of the year is covered in KSeF 2027.

Questions and answers

Can I log in to Aplikacja Podatnika with a token?

No. Aplikacja Podatnika offers login through login.gov.pl or with a qualified certificate. A token is for programs that connect to KSeF through the API.

Can my accountant use my token?

They should not. MF considers passing tokens to other people unacceptable. Grant your accountant permissions in KSeF, and they will generate their own token in your context.

Does a token stop working when I change permissions?

No. A token works within the permissions the person has at that moment. Only an explicit "Unieważnij" revokes it.

What should I do on 1 January 2027 if my software uses a token?

According to MF's announcement, nothing. But check at the end of December whether the amendment to the regulation has been published and whether it introduces an expiry date for tokens. If it is not published, the safest option is to switch the software to a KSeF certificate.

Sources

This article is general information and is not tax advice.

KSeF Faktury

Join the launch list

We will write once, on launch day in the Shopify App Store (December 2026), and help you set up.