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

# Introduction

> Dokumentasi publik LeuwongRR User API khusus member/user.

# LeuwongRR User API

LeuwongRR User API adalah REST API publik khusus member untuk menghubungkan data akun sendiri ke website pribadi, bot Discord, bot Telegram, dashboard monitoring, atau sistem cek invoice otomatis.

<Note>
  Dokumentasi ini hanya menampilkan endpoint yang aman untuk user/member. Endpoint operasional, privileged, credential provider, callback sistem, debug, dan maintenance tidak dimasukkan ke dokumentasi publik.
</Note>

## Base URL

```txt theme={null}
https://leuwongrr.online
```

## Prinsip user-only

User API Token hanya berlaku untuk akun pemilik token. Semua endpoint `/me` otomatis mengambil user dari token, bukan dari parameter `user_id`, email, role, harga, atau status yang dikirim client.

## Endpoint yang tersedia

### Public safe endpoints

Endpoint berikut aman dibuka tanpa token karena hanya menampilkan informasi publik ringan:

```txt theme={null}
GET  /api/v1/health
GET  /api/v1/catalog/robux-packages
GET  /api/v1/catalog/payment-methods
GET  /api/v1/articles
GET  /api/v1/articles/{slug}
```

### Token utility

```txt theme={null}
POST /api/v1/auth/token/validate
```

### User endpoints

Endpoint berikut wajib menggunakan User API Token:

```txt theme={null}
GET  /api/v1/me
GET  /api/v1/me/dashboard-summary
GET  /api/v1/me/balance
GET  /api/v1/me/balance/transactions
GET  /api/v1/me/deposits
GET  /api/v1/me/deposits/{invoice}
POST /api/v1/me/orders
GET  /api/v1/me/orders
GET  /api/v1/me/orders/{invoice}
GET  /api/v1/me/invoices/{invoice}
GET  /api/v1/me/invoices/{invoice}/status
```

## Cocok untuk

| Kebutuhan       | Contoh penggunaan                                                 |
| --------------- | ----------------------------------------------------------------- |
| Website pribadi | Menampilkan saldo, status invoice, dan riwayat order akun sendiri |
| Bot Discord     | Command `/saldo`, `/cek_invoice`, atau `/order_robux`             |
| Bot Telegram    | Cek status pembayaran dan order otomatis                          |
| Dashboard       | Monitoring transaksi milik akun sendiri                           |
| Sistem reseller | Tracking order tanpa membuka dashboard manual                     |

## Batas akses

Token user tidak dapat digunakan untuk:

* Membaca data user lain
* Mengubah konfigurasi sistem
* Mengakses area privileged/operasional
* Mengirim harga, status, atau total transaksi sendiri
* Melewati validasi kepemilikan invoice/order

## Alur aman integrasi

```txt theme={null}
Website / Bot User
        ↓
Backend / Server User
        ↓ Authorization: Bearer USER_API_TOKEN
LeuwongRR User API
```

Jangan memanggil API langsung dari frontend browser jika token akan terlihat publik.

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Mulai test API dalam beberapa menit.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Pelajari cara memakai User API Token.
  </Card>

  <Card title="Available Features" icon="sparkles" href="/available-features">
    Lihat fitur publik aman dan fitur user-only.
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Lihat daftar endpoint REST API v1.
  </Card>
</CardGroup>
