What a token is for
A KSeF token is a long string your invoicing software uses to sign in to KSeF on your behalf. With it you don't sign in with Profil Zaufany every time — the software sends invoices and receives KSeF numbers by itself.
A token works for one NIP and only with the permissions you give it. You can revoke it at any time.
Before you start
- your business's NIP and access to Profil Zaufany, an e-ID card (e-dowód) or a qualified signature;
- your invoicing software open and ready for the token — you will see it only once.
Tokens generated in the old KSeF 1.0 (before February 2026) don't work in KSeF 2.0. If you have one, generate a new one.
How to generate a token — step by step
- Go to ksef.podatki.gov.pl and open the KSeF 2.0 Taxpayer Application (Aplikacja Podatnika) or the Certificates and Permissions Module (Moduł Certyfikatów i Uprawnień).
- Sign in with Profil Zaufany, an e-ID card or a qualified signature, and choose your business's context (NIP).
- Go to tokens and choose to generate a new one.
- Name the token, e.g. after the software you will use it in.
- Tick the permissions to issue invoices and to view invoices. Don't tick permission management.
- Generate the token and copy it straight away — KSeF shows it only once.
- Paste the token into your invoicing software.
How to keep a token safe
- Treat it like your bank password: whoever has it can issue invoices under your NIP.
- Don't send it by text or messenger. If you must store it, use a password manager.
- Generate a separate token for each program — when you stop using one, you revoke only its token.
- If you suspect someone has seen the token, revoke it in KSeF and generate a new one.
When the software doesn't accept the token
- copy the whole token, with no spaces at either end;
- check that the token can issue and view invoices;
- the NIP in the software must be the NIP the token was generated for;
- a KSeF 1.0 or revoked token won't work — generate a new one.
Tokens after 2026
Under the current regulation, tokens work until 31 December 2026, to be replaced by KSeF certificates. In August 2026 the Ministry of Finance announced in its KSeF 2.0 handbook that tokens will stay indefinitely and the regulation will be amended.
Until that change takes effect, the 31 December 2026 date stands. Follow the announcements at ksef.podatki.gov.pl — we will update this article when the rules change.
The token in Invocora
In Invocora you paste the token once, in “KSeF and invoice numbering”, and tap “Connect KSeF”. The app checks it with KSeF straight away and saves it only if KSeF accepts it. The token is stored encrypted and never shown again. Instructions in the help.
This article is for information and describes the rules as of the update date. For your own case, ask your accountant.