← KSeF Guide
Setup & Tokens12 min read

How to generate a KSeF token: a step-by-step guide

Learn what a KSeF token is, how to generate it in the correct company context, choose permissions and add it safely to an app.

Contents

A KSeF token is a credential for connecting compatible software to KSeF. Generate it in the correct company context, select only the permissions needed and store it securely. A token restricted to invoice viewing will not allow invoice issuance.

What is a KSeF token?

A token allows supported software to authenticate to KSeF. Its permissions are selected during generation and cannot be expanded later inside an invoicing app. Current Ministry guidance says tokens remain valid until revoked; always check the latest official information.

What do you need before generating one?

  • A way to authenticate to KSeF.
  • Authority to act in the chosen company NIP context.
  • A clear purpose for the token and the actions it needs to allow.
  • A secure place to enter and store it in the intended application.

Generate the token

  1. Sign in to the appropriate KSeF environment.
  2. Select the correct taxpayer or company context.
  3. Open the token management area.
  4. Give the token a clear name that identifies its purpose.
  5. Select the minimum permissions required. Include invoice issuance only if needed.
  6. Generate and copy the token, then add it directly to the trusted app.

Token or certificate?

A token carries a selected permission scope. A type 1 certificate authenticates; the actions available after authentication depend on KSeF permissions. One certificate may be used across different taxpayer contexts if the person has the required access.

Keep the token secure

Do not send it to an accountant, coworker or support agent through email or chat. Grant other people their own KSeF permissions. If the token is lost or exposed, revoke it and review access before generating a replacement.

Frequently asked questions

Why use a token instead of signing in with a trusted profile each time?

A token can let compatible software authenticate to KSeF for repeated API operations without an interactive portal login for every check.

Does it cost money to generate a token?

Credential management is part of KSeF. Check the current Ministry instructions for the generation process.

Can the app developer see my token?

Storage depends on the application. Faktino stores its credential locally and does not send it to Faktino servers.

What permissions should I choose for invoice viewing?

Select the minimum viewing permissions needed. Add issuing rights only if you intend to issue invoices.

Key takeaways

  • Generate a token in the correct company context.
  • Name it clearly and select only necessary permissions.
  • A read-only token cannot issue invoices.
  • Current MF guidance says tokens remain valid until revoked.
  • Protect the token and revoke it if exposed.

For more practical guidance, visit the KSeF Guide or read the Polish version of this article.

Want to keep KSeF invoices under control?

Faktino helps you review purchase and sales invoices, follow payment status and issue sales invoices on your phone. Data stays on your device.

Get Faktino

Related guides