# Public API

## Cấu hình

Sử dụng add-on Pulic API.

Liên hệ với đội ngũ MiniApp để được cấp quyền sử dụng.

## Cài đặt

Sau khi được kích hoạt add-on, khách hàng có thể sử dụng thông tin để kết nối

<figure><img src="/files/CHzXu7ck4Q3LbHLFu5bp" alt=""><figcaption></figcaption></figure>

Production Url: <https://api.miniapp.vn/public-api/v1>

Sử dụng Client và Client Secret trong header của request

* X-Company
* X-Company-Secret

```
curl --request GET \
  --url http://api.miniapp.local/public-api/v1/products \
  --header 'Accept: */*' \
  --header 'Accept-Encoding: gzip, deflate, br' \
  --header 'Connection: keep-alive' \
  --header 'X-Company-Code: 1236481661' \
  --header 'X-Company-Secret: 0lXbPvaWWUrwm***********'
```


---

# 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.miniapp.vn/group-1/public-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.
