KSeF tokens: how long do they work?
The regulation in force lets you log in to KSeF (Krajowy System e-Faktur, Poland's national e-invoicing system) with a token until 31 December 2026. On 27 October 2026 the Ministry of Finance (MF) put out for consultation a draft amendment that would extend tokens generated before 2027 until 30 November 2027. The draft is not law yet.
Status as of 23 November 2026. On that day the only amendment to the regulation in the list of amendments was Dz.U. 2026 item 169, which does not concern tokens, and the amending draft on the RCL site had not moved past interministerial agreement, public consultation and review.
list of amendments, ELIdraft on the RCL siteWhat exactly expires on 31 December
§ 13 ust. 1 pkt 1 of the regulation on using KSeF allows authentication with an "alphanumeric string" (a token) until the end of 2026. The permanent methods are listed in § 6 ust. 1: the national node of electronic identification, a qualified signature, a qualified seal and a KSeF certificate. Tokens are not on that list. Dz.U. 2025 item 1815
Tokens from the old KSeF 1.0 are not compatible with KSeF 2.0, so the deadline concerns tokens generated for KSeF 2.0, in the Taxpayer Application (Aplikacja Podatnika) or through the API. MF FAQ, question 35 The provision points to a definition in the 2021 regulation and never says "KSeF 2.0 token". The KSeF 2.0 Handbook, however, treats these same tokens as covered by the 31 December 2026 date.
What has been announced, and what does not exist yet
At the consultations on 9 June 2026 MF proposed keeping tokens after 31 December, with a validity period of 1 to 365 days and a new permission to renew a token automatically with the owner's consent. consultation summary
In the August edition of the KSeF 2.0 Handbook, part I (p. 26), MF went further: it "decided to keep this method of authentication for an indefinite period" and wrote that the regulation "will be amended accordingly". KSeF 2.0 Handbook, part I
On 10 September 2026 the team responsible for the KSeF API specification wrote in the official API repository that it is technically preparing to issue tokens under new rules from 1 January 2027. Tokens issued up to 31 December 2026 will keep working, but their validity will be limited to 30 November 2027. The current token-creation endpoint is to run in "compatibility mode" and issue tokens with limited validity. A new version of it will appear alongside, and the token format stays the same. CIRFMF/ksef-api, issue 834 The same author added that the decision to retire tokens is written into the regulation, so changing it requires a change of the rules, and that formal communication belongs to MF. comment of 17 July
On 23 September 2026 the same author closed another issue in the repository with: "tokens stay, but under new rules. We are refining the proposal." He did not say what those rules are. CIRFMF/ksef-api, issue 565
The API team published the details of the new rules on 6 November 2026 as a proposal for discussion, which it planned to close on 20 November. From 1 January 2027 new endpoint versions (rev2) are to go live, and in them a token will be valid for 90 days by default and 365 days at most. A single context can hold at most 100 active or pending tokens (revoked and expired ones do not count). A token that a program requests after logging in with a token will have to be approved within 24 hours by logging in with the national node or an electronic signature (XAdES). Tokens generated before 1 January 2027 are to work until the end of 30 November 2027. CIRFMF/ksef-api, issue 885
On 16 November 2026 the API team deployed API version 2.10.0 to the test environment. It includes the rev2 endpoints and a new endpoint for approving tokens. The existing endpoints for generating a token, listing tokens and checking a token's status are marked as deprecated and are to be removed on 30 September 2027. The changelog does not yet give a date for the demo environment or production. API changelog, version 2.10.0
As of 23 November the API team had not announced a change to any of the proposal's values, and the specification deployed in the test environment has the same limits on validity, number of tokens and approval time. It does not mention the 30 November 2027 date. One difference: according to the specification, a token generated with the old endpoint from 7 November 2026 is valid for 90 days, while the proposal spoke of tokens from 1 January 2027. The API team has not said whether this applies only to the test environment. OpenAPI specification Users in the discussion asked for more than 24 hours to approve a token, but got no visible reply. CIRFMF/ksef-api, issue 885
What does the draft amendment to the regulation say?
On 27 October 2026 MF published a draft amendment to the KSeF regulation (no. 138/2026 in its list of legislative work) on the portal of the Government Legislation Centre (Rządowe Centrum Legislacji) and set 14 days for comments. draft on the RCL portal The draft:
- extends the validity of tokens generated before 1 January 2027 to 30 November 2027 (the change to § 13 is to take effect on 31 December 2026, the other changes on 1 January 2027),
- adds the KSeF token to the permanent methods in § 6 ust. 1, but only a token generated after logging in with one of the other four methods. Such a token will be valid for at most 365 days from generation or from a start date the taxpayer chooses (§ 6 ust. 2d),
- allows a KSeF certificate that works only within a single NIP (Polish tax ID) or branch identifier (§ 6 ust. 2c),
- adds a permission to handle collective identifiers, which mark one payment covering several invoices (§ 3 ust. 1 pkt 5). Everyone authorised to issue or access invoices has it automatically, but it can also be granted on its own.
The 30 November 2027 date matches the API team's posts from September and November, and the 365-day limit matches the 6 November proposal and MF's June consultations.
The draft is not law yet. Until the amendment is published in the Dziennik Ustaw (Journal of Laws) and takes effect, § 13 ust. 1 pkt 1 applies as it stands, which means tokens only until 31 December 2026. We do not know:
- whether the signed regulation will keep the draft's dates, and when it will be published,
- when API version 2.10.0 will reach production, since for now it runs only in the test environment,
- whether the rules will adopt the rest of the API team's proposal (90 days by default, approval within 24 hours). The draft is silent on this and leaves the token's technical details to the API specification (§ 6 ust. 3),
- what the system will do on 1 January 2027 if the amendment is late. With § 13 as it stands, tokens are not permitted by the regulation from that date.
What to do now
There is no reason to panic: under the current rules a token works until 31 December 2026. Only a regulation signed and published in the Dziennik Ustaw will settle the question. If your software logs in to KSeF with a token, set up a KSeF certificate as a fallback login method before 31 December and plan for token renewal, because neither the API team's proposal nor the draft provides for tokens without an expiry date any more.
Accounting offices. Pani Krystyna should check which of her clients' programs log in to KSeF with a token, and when those tokens were generated. The Taxpayer Application lists generated tokens under "Lista tokenów". Taxpayer Application manual, ch. 5.6 She should also ask the software vendor whether it supports KSeF certificates and what it plans after 31 December. A token generated by a natural person (for example a sole trader) may be used only by that person, so an office cannot use a token generated by a client. KSeF 2.0 Handbook, part I, p. 38
For integrators
Marek, whose integration authenticates with a token, should not wait for the amendment. We suggest adding authentication with a type 1 KSeF certificate next to the token and hiding both behind one interface. Then the 1 January date does not force a rewrite. The API team's stated goal is to get through 2026/2027 "without touching the integrator's code". CIRFMF/ksef-api, issue 834 Under the 6 November proposal, though, a token generated through the old endpoint from 1 January 2027 will be valid for only 90 days. So prepare token renewal, the move to rev2 and handling of the new statuses (NotYetActive, AwaitingApproval, ApprovalExpired, Expired). CIRFMF/ksef-api, issue 885 You can already try the rev2 endpoints, token approval and the new statuses in the test environment.
| Feature | Token | KSeF certificate (type 1) |
|---|---|---|
| Permissions | stored in the token | none, taken from the account |
| Context | the one it was issued in | several |
| Validity | until revoked (in rev2, in test since 16.11.2026: 90 days by default, 365 at most) | up to 2 years |
| Interactive and batch session | yes | yes |
Renew a certificate before it expires, and note that the number of active certificates per PESEL or NIP is limited. You request it in the API or the Taxpayer Application after logging in with the national node, a qualified signature or a qualified seal. A token login cannot generate a certificate (§ 13 ust. 2), so you need one of those three.
A type 2 certificate marks invoices issued OFFLINE with a QR code and is not used for logging in. For authentication you need type 1, issued separately.
For a comparison of all login methods see KSeF certificates vs tokens, and for what else to prepare before 2027 see the KSeF preparation checklist. We will update this post when an amendment to § 13 appears in the Dziennik Ustaw.
Was this article helpful?
Sources
- MF regulation on using KSeF, Dz.U. 2025 item 1815, § 6 and § 13
- List of amendments to the regulation (ELI, api.sejm.gov.pl)
- KSeF 2.0 Handbook, part I: Getting started with KSeF (August 2026, Polish)
- MF: first consultations after the partial KSeF roll-out, summary (Polish)
- Taxpayer Application KSeF 2.0 user manual (August 2026, Polish)
- KSeF API team on tokens after 2026 (CIRFMF/ksef-api, issue 834, Polish)
- KSeF API team: tokens stay under new rules (CIRFMF/ksef-api, issue 565, Polish)
- KSeF API team: proposed changes to token management, 6 Nov 2026 (CIRFMF/ksef-api, issue 885, Polish)
- KSeF API 2.0 changelog, version 2.10.0 (CIRFMF/ksef-api, Polish)
- KSeF 2.0 OpenAPI specification, version deployed in the test environment (CIRFMF/ksef-api)
- MF FAQ: KSeF 2.0
- Draft regulation amending the regulation on using KSeF, no. 138/2026 (RCL, draft of 26.10.2026, Polish)
Don’t miss KSeF changes
We’ll send a short email when KSeF rules or deadlines change. We only write then, so you won’t hear from us often.
You can unsubscribe at any time. Powered by Buttondown
Read next
- Access6 min read
KSeF login context: which NIP to enter
The context is the business you act for after logging in. A sole trader enters their own NIP; an accountant enters the NIP of the client who granted access.
- Access10 min read
KSeF and your accountant: agree who does what
With invoice access, your accounting office pulls your invoices from KSeF itself. You send only documents outside KSeF; the seller corrects a wrong invoice.
- AccessGuide8 min read
KSeF login with Profil Zaufany or e-signature
KSeF login goes through login.gov.pl (Profil Zaufany, mObywatel, bank, e-dowód) or a qualified signature. KSeF tokens are for software, not for you.