> For the complete documentation index, see [llms.txt](https://usermanual.ergonode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://usermanual.ergonode.com/ergonode-user-manual-pl/system/ustawienia/klucze-api.md).

# Klucze API

Instrukcja tworzenia klucza API do połączenia z API GraphQL Ergonode.

{% hint style="info" %}
Możesz przeczytać więcej o tym, jak korzystać z naszego API GraphQL oraz zobaczyć kilka przykładów [tutaj](https://docs.ergonode.com/v/graphql-api/).
{% endhint %}

{% hint style="info" %}
Po utworzeniu klucza nie można go modyfikować, więc jeśli musisz go edytować, usuń stary i utwórz nowy.
{% endhint %}

{% hint style="info" %}
Możliwe jest utworzenie klucza API bez segmentu, aby objąć wszystkie produkty.
{% endhint %}

Na stronie API Keys zobaczysz opcję utworzenia nowego klucza API. Kliknij ją. Zostaniesz poproszony o podanie kilku informacji dla nowego klucza API.&#x20;

<figure><img src="https://2967841381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FL85o2OejZsbY6FHYuLPu%2Fimage.png?alt=media&amp;token=f8626ae8-3a76-46cf-a6b1-6bfb6830d2fb" alt=""><figcaption><p>System > Settings > API Keys - okno</p></figcaption></figure>

Wpisz nazwę klucza — może być dowolna. Istnieje opcja ograniczenia produktów dostępnych dla tego klucza do jednego z [segments](/ergonode-user-manual-pl/produkty/segmenty.md). Domyślnie, ze względów bezpieczeństwa, wszystkie klucze mają dostęp tylko do odczytu; jeśli potrzebujesz klucza z dostępem do zapisu, zaznacz pole wyboru "Allow to write".&#x20;

<figure><img src="https://2967841381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FiiANqSznne4MW6BeyLSg%2Fimage.png?alt=media&amp;token=86889b3b-c49b-4153-b80c-24b2c8921aeb" alt=""><figcaption><p>Okno dodawania klucza API</p></figcaption></figure>

Aby usunąć utworzony klucz, kliknij ikonę kosza \[1], a aby zobaczyć aktualny klucz, kliknij ikonę oka \[2].

<figure><img src="https://2967841381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2Fo632YdPFIuCmJtrGPHct%2Fimage.png?alt=media&amp;token=2bb02e8d-86db-4d37-9692-d2bd3ccc4b3f" alt=""><figcaption><p>Lista kluczy API</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://usermanual.ergonode.com/ergonode-user-manual-pl/system/ustawienia/klucze-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
