# Integracja

## Komunikacja

W **SIGNIUS Sealing Client** dostępne są dwa sposoby komunikacji:

* SYSTEM PLIKÓW
* REST API

Oba zależą od konfiguracji **SIGNIUS Sealing Server**, w szczególności od konfiguracji „procesu”.

### SYSTEM PLIKÓW

Każdy „proces” jest zaprogramowany dla jednego typu pieczętowania/podpisywania (PAdES/XAdES/CAdES/itp.). Po skonfigurowaniu „procesu” po stronie serwera i ponownym uruchomieniu **SIGNIUS Sealing Client**, tworzony jest katalog z trzema zakodowanymi na stałe podfolderami: „in”, „out” i „err”.

Gdy wymagane jest opieczętowanie/podpisanie dokumentu, wystarczy umieścić (skopiować lub przenieść) plik w podfolderze „in”, a po chwili plik zniknie i pojawi się ponownie jako podpisany w podfolderze „out”. Jeśli jednak wystąpi nieoczekiwane zdarzenie, które uniemożliwi opieczętowanie/podpisanie dokumentu, pojawi się on w folderze „err” jako niepodpisany.

Obsługuje zarówno katalogi lokalne, jak i sieciowe (format ścieżki UNC).

### REST API

Szczegóły dotyczące komunikacji REST API są dostępne pod adresem (linki poniżej):

{% embed url="<https://docs.signius.eu/api/seal-api>" %}

{% embed url="<https://docs.signius.eu/api/seal-api/client-methods/document-methods>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.signius.eu/manuals/seal_pl/signius-sealing-server-i-client/signius-sealing-client/integracja.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
