How can we help?

Generate KSeF tokens (alternative)

Complete these steps to generate Krajowy System e-Faktur (KSeF) tokens for authentication and offline invoice issuance.

Tokens are alphanumeric authentication strings for online invoice submission. Generate tokens through the KSeF portal using your e-PUAP credentials.
Note:

KSeF 2.0 Tokens are required. KSeF 1.0 tokens are incompatible with KSeF 2.0. You must generate new KSeF 2.0 tokens; old tokens cannot be migrated or reused.

Tokens were previously scheduled for deprecation on January 1, 2027. Poland's Ministry of Finance has reversed this decision and confirmed that tokens have no planned end date. Migration to certificates is optional; if you choose to migrate, see Migrate from tokens to certificates.

  1. Log in to https://ksef.podatki.gov.pl/ and go to token management section.
  2. Select Create new token and configure token settings.

    Settings include:

    • Name: Descriptive identifier

    • Permissions: Select operations

    • Validity: Choose expiration period (maximum ~2 years). Tokens can be renewed after expiration.

  3. Select the option to generate the token.
    Important:

    Token displays only once, copy it immediately.

  4. Store tokens securely using encrypted storage or a key management system.
    CAUTION: Never commit certificates to source control or store them unencrypted.
Outbound configuration or Inbound configuration