# Wapro API

API umożliwia wymianę informacji między systemem zewnętrznym a Wapro Mag.\
Komunikacja wykorzystuje dane w formacie JSON. Aby wysłać żądanie do API, wyślij odpowiednie żądanie POST na adres:

```
https://waproapi.rovens.pl/connect.php
```

Aby wysłać żądanie dla każdej metody wymagany jest token. Token jest przypisany bezpośrednio do konta użytkownika [Rovens](https://rovens.pl) - Wapro Linker. Użytkownik może wygenerować token API w panelu w sekcji Wapro API.\
Zalecana jest autoryzacja z nagłówkiem http (X-Rovens).

Przykład użycia:

```
 curl 'https://waproapi.rovens.pl/connect.php' -H 'X-Rovens: ABC-ABC-XXX' --data-raw 'method=getProductsList&pages=1' 
```

**Limit żądań**\
Limit żądań API wynosi **100 żądań na minutę**.

{% embed url="<https://pomoc.rovens.pl/wapro-api-linker/lista-metod>" %}


---

# 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://pomoc.rovens.pl/baza-wiedzy-dokumentacja/wapro-api.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.
