---
title: "POST /apps/gov-pl/v1/entry/{silo_entry_id}/certificate"
method: POST
path: "/apps/gov-pl/v1/entry/{silo_entry_id}/certificate"
---

# POST /apps/gov-pl/v1/entry/{silo_entry_id}/certificate

`POST /apps/gov-pl/v1/entry/{silo_entry_id}/certificate`

## Request

- Base URL: `https://api.invopop.com`
- URL: `https://api.invopop.com/apps/gov-pl/v1/entry/{silo_entry_id}/certificate`
- Auth: none required
- TypeScript: <https://skmtc.dev/invopop/apis/access-service-api/docs/apps/gov-pl/v1/entry/:silo_entry_id/certificate/post.ts> (a function with typed inputs; its response is checked against the schema)

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.

## Path parameters

- `silo_entry_id` string, required: ID of the party silo entry to upload the certificate for.

## Request body

- object
  - `password` string, required: The password set during certificate generation in the KSeF portal.
  - `private_key` string, byte, required: Base64 encoded private key file downloaded from the KSeF portal. The private key must match the certificate and be properly formatted.
  - `certificate` string, 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".

## Response `204`

Certificate uploaded successfully and validated.

## Other responses

- `400`: Bad Request - Invalid certificate data or mismatched private key.
- `404`: Not Found - Entry ID not found or not in a state waiting for certificate upload.
- `422`: Unprocessable Entity - Certificate validation failed.
- `500`: Internal Server Error - Failed to process certificate upload.

---

[API](https://skmtc.dev/invopop/apis/access-service-api.md) - [All operations](https://skmtc.dev/invopop/apis/access-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/invopop/apis/access-service-api/revisions/fc954f96ea62?raw)
