> ## Documentation Index
> Fetch the complete documentation index at: https://docs.youka.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Xác thực

> Xác thực bằng khóa API Bearer và giới hạn retry bằng các khóa idempotency ổn định.

# Xác thực

API sử dụng xác thực Bearer với khóa API Youka. Tạo khóa tại [online.youka.io/account](https://online.youka.io/account) trong mục **API keys**.

## Gửi khóa API

```http theme={null}
Authorization: Bearer yk_...
```

## Thiết lập client được khuyến nghị

* Lưu khóa API bên ngoài cây mã nguồn của bạn.
* Inject khóa khi chạy thông qua biến môi trường hoặc trình quản lý secrets.
* Gửi header trong mọi request, bao gồm cả các request polling.

## Ví dụ

```bash theme={null}
curl https://api.youka.io/vi/api/v1/projects/proj_123 \
  -H "Authorization: Bearer yk_..."
```

## Tài liệu liên quan

* [Node.js SDK quickstart](/vi/sdk)
* [Raw HTTP quickstart](/vi/api/quickstart)
* [Idempotency](/vi/api/idempotency)
* [Errors and retries](/vi/api/errors)
