v1

latestOpenAPI 3.0.0Apache 2.02026-07-267057121.5 KB

Upload the KSeF certificate, private key, and password for a registered party. This endpoint provides an alternative to the web-based certificate upload wizard for programmatic integration.

post/apps/gov-pl/v1/entry/{silo_entry_id}/certificate

Path parameters

silo_entry_idstring required

ID of the party silo entry to upload the certificate for.

Example:5b45453c-cdd0-11ed-afa1-0242ac120002

ID of the party silo entry to upload the certificate for.

Request body

passwordstring required

The password set during certificate generation in the KSeF portal.

private_keystring byte required

Base64 encoded private key file downloaded from the KSeF portal. The private key must match the certificate and be properly formatted.

certificatestring byte required

Base64 encoded certificate file downloaded from the KSeF portal. The certificate must be valid, with a start date that is not in the future, and must be configured for "Authentication in the KSeF system".

Example request

{
  "password": "MySecurePassword123!"
}

Response

Certificate uploaded successfully and validated.