# Web API

Version: `1.0.0`

> Adapty Web API cho phép bạn tích hợp nền tảng quản lý gói đăng ký của Adapty
> vào các ứng dụng web của bạn. API này cung cấp các endpoint để lấy paywall,
> ghi lại lượt xem paywall và thêm dữ liệu attribution.

## Servers

- `https://api.adapty.io` — Máy chủ production

## Authentication

### apikeyAuth

type: `apiKey` · in: `header` · header: `Authorization`

Các yêu cầu API phải được xác thực bằng public API key của bạn trong header **Authorization**
với giá trị `Api-Key {your_public_api_key}`, ví dụ:
`Api-Key public_live_...`. Tìm key này trong Adapty Dashboard ->
**App Settings** -> tab **General** -> mục **API keys**.

## Operations

- **POST** `/api/v2/web-api/paywall/` — [Lấy paywall](https://adapty.io/docs/vi/api-web/operations/getPaywall.md)
- **POST** `/api/v2/web-api/paywall/visit/` — [Ghi lại lượt xem paywall](https://adapty.io/docs/vi/api-web/operations/recordPaywallView.md)
- **POST** `/api/v2/web-api/attribution/` — [Thêm attribution tùy chỉnh](https://adapty.io/docs/vi/api-web/operations/addAttribution.md)
