Tax and invoicingNewsPoland

How to Authenticate in KSeF Poland: Tokens and Certificates

Also in: Polski

3D isometric security shield and digital keys representing KSeF authentication

As KSeF 2.0 launched on 1 February 2026 for the largest companies, with mandatory e-invoicing extending to all other businesses on 1 April 2026, your business must use specific methods to access the National e-Invoicing System according to your rollout date. While tokens were originally intended to be phased out by the end of 2026, a new draft regulation proposes that they will remain available throughout 2027 and beyond. For your company, understanding how to authenticate in KSeF Poland via both tokens and certificates is now required to maintain continuous invoicing operations and keep tax compliance.

What are the current authentication methods in KSeF?

Businesses can currently use two primary methods to access the system: tokens and certificates. Note that there is a limit of 6 certificates that can be generated per month; if you exceed this limit, you will face a 30-day block on generation.

3D visual metaphor comparing tokens and certificates for KSeF access
Understanding the differences between tokens and certificates is key to choosing the right access method.

Tokens are alphanumeric strings, 64 characters in length, that contain a user's permissions within the string itself. They provide a fast and simple way to log in and are often used by businesses with integrated software. However, tokens must be treated as highly sensitive data. They are only displayed once during generation; if you lose a token, you cannot retrieve it.

Certificates offer a different approach using asymmetric cryptography, which provides higher security. Unlike tokens, certificates are used solely for authentication to prove identity. Once a certificate is used to log in, permissions must be assigned separately within the KSeF system.

Feature KSeF Token KSeF Certificate
Security level Standard High (Asymmetric cryptography)
Validity Proposed 365 days (from 2027) 2 years upon issuance
Complexity Simple alphanumeric string Requires .crt and .key files
Main use case Integrated software/fast login API use and offline modes

Which certificate types should your company use?

There are two distinct types of certificates available to businesses. Choosing the correct one depends on your operational needs and how you handle system downtime.

Vector illustration showing Type 1 and Type 2 certificate workflows
Type 2 certificates ensure business continuity even during system downtime.

Type 1 certificates are used for standard system authentication. These support both interactive sessions and batch sessions.

Type 2 certificates are specifically designed for offline modes. They are required so invoicing can continue during periods of system unavailability. They support special modes such as offline24, offline, and emergency modes. If your business requires high continuity, Type 2 certificates are necessary.

To obtain a certificate, you must first verify your identity. This is done via a Profil Zaufany (Trusted Profile), a qualified electronic signature, or a qualified electronic seal. Once verified, you can apply for a certificate through the Moduł Certyfikatów i Uprawnień (MCU) or via a commercial programme integrated with the KSeF API.

How to authenticate in KSeF Poland using tokens

If your company prefers using tokens for integrated software, the process is straightforward but requires caution. To generate a token, you must log in to the Aplikacja Podatnika KSeF, go to the "Tokens" section, and select "Generate token". You will then enter a name, select the required permissions, and confirm.

Important security notes for token users: * The token is displayed only once. You must save it immediately in a secure location. * Unauthorized disclosure of tokens can lead to criminal-fiscal liability (odpowiedzialność karno-skarbowa).

What are the upcoming changes for 2027?

While KSeF 2.0 is already in force, several proposed changes could impact your accounting workflows starting 1 January 2027.

Modern office setting symbolizing preparation for 2027 KSeF changes
Businesses should prepare for upcoming regulatory changes arriving in 2027.

According to a draft amendment currently in public consultation, tokens will not be removed as previously planned. Instead, they are expected to remain a permanent access tool. For tokens generated before this new amendment, the proposed expiry date is 30 November 2027. New tokens generated from 1 January 2027 may have a maximum validity of 365 days.

A draft regulation also proposes a new payment marking requirement. From 1 January 2027, all bank transfers must include the KSeF invoice number or a collective identifier. Your company should plan its transition to this automated tax process to avoid payment errors.

This article is general information, not legal advice; for your own situation, check with the competent authority or a qualified adviser.

FAQ: KSeF Authentication

How do I authenticate in KSeF using the new certificates? You must first verify your identity using a Profil Zaufany, a qualified electronic signature, or a qualified electronic seal. After obtaining the certificate (.crt file) and the private key (.key file) from the MCU, you use these files to configure your accounting or ERP system to communicate with the KSeF API.

Are KSeF tokens still valid under the KSeF 2.0 rules? Yes. Although they were originally intended to expire at the end of 2026, a new draft regulation proposes that tokens will remain available as a permanent access tool in 2027 and beyond.

What are the differences between KSeF tokens and certificates? Tokens are alphanumeric strings that include user permissions within the string itself. Certificates are used only for authentication to prove identity, and permissions must be assigned separately within the KSeF system.

Which certificate types are accepted for KSeF 2.0? There are two types: Type 1 for standard authentication (interactive or batch sessions) and Type 2 for offline and emergency modes.

Sources