API Reference — Plate Enrollment
Endpoint untuk mengelola pendaftaran plat nomor kendaraan, status, dan referensi internal LPR.
← Kembali ke Plate Enrollment
Panduan operator: tambah, edit, hapus, filter, dan troubleshooting plat nomor.
Face Enrollment
API pendaftaran wajah — konsep serupa untuk sistem Face Recognition.
Otentikasi
API key untuk integrasi, Bearer token untuk sesi pengguna, dan otentikasi WebSocket.
Semua endpoint memerlukan otentikasi. Untuk integrasi, kirim header X-Api-Key: <key> di setiap request tanpa header Authorization. Bearer token (Authorization: Bearer <access_token>, berlaku 30 menit) hanya untuk aplikasi yang menampilkan login Lenz ke penggunanya sendiri dan wajib menyertakan X-Integration-Signature. Basis URL mengikuti variabel lingkungan VITE_API_URL yang dikonfigurasi pada instalasi Lenz. Lihat Otentikasi untuk memilih jalur yang tepat.
CRUD Plate Enrollment
Endpoint utama untuk membuat, membaca, memperbarui, dan menghapus data enrollment plat nomor kendaraan satu per satu.
Daftar Plate Enrollment
Authorization
bearerAuth In: header
Query Parameters
Nomor halaman, dimulai dari 1
1Jumlah data per halaman
10Pencarian berdasarkan nama pemilik atau nomor plat
Filter berdasarkan status kendaraan (contoh: whitelist, blacklist)
Kolom untuk pengurutan
"id"Urutan menurun jika true
trueResponse Body
application/json
curl -X GET "https://lenz.example.com/api/vehicles"{ "ok": true, "message": "successfully get enrolled plates", "result": { "limit": 10, "current_page": 1, "total_data": 2, "total_page": 1, "offset": 0, "vehicles": [ { "id": 1, "unique_id": "VH-001", "name": "Budi Santoso", "plate_number": "B 1234 ABC", "type": "car", "brand": "Toyota", "color": "Putih", "status": "whitelist", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "deleted_at": null, "vehicles": [ { "id": 1, "enrolled_plate_id": 1, "variation": 1, "created_at": "2024-01-01T00:00:00Z" } ] } ] }}Tambah Plate Enrollment
Authorization
bearerAuth In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://lenz.example.com/api/vehicles" \ -F name="string" \ -F plate_number="string" \ -F images="[ \"string\" ]"{ "ok": true, "message": "successfully enrolled plate", "result": { "id": 42, "unique_id": "VH-042", "name": "Budi Santoso", "plate_number": "B 1234 ABC", "type": "car", "brand": "Toyota", "color": "Putih", "status": "whitelist", "created_at": "2024-06-01T08:00:00Z", "updated_at": "2024-06-01T08:00:00Z", "deleted_at": null }}Detail Plate Enrollment
Authorization
bearerAuth In: header
Path Parameters
ID numerik enrollment plat
Response Body
application/json
curl -X GET "https://lenz.example.com/api/vehicles/0"{ "ok": true, "message": "successfully get detail enrolled plate", "vehicle": { "id": 42, "unique_id": "VH-042", "name": "Budi Santoso", "plate_number": "B 1234 ABC", "type": "car", "brand": "Toyota", "color": "Putih", "status": "whitelist", "created_at": "2024-06-01T08:00:00Z", "updated_at": "2024-06-01T08:00:00Z", "deleted_at": null, "vehicles": [ { "id": 10, "enrolled_plate_id": 42, "variation": 1, "created_at": "2024-06-01T08:00:00Z" } ] }}Update Plate Enrollment
Authorization
bearerAuth In: header
Path Parameters
ID numerik enrollment plat
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://lenz.example.com/api/vehicles/0" \ -F name="string" \ -F plate_number="string"{ "ok": true, "message": "successfully updated enrolled plate"}Hapus Plate Enrollment
Authorization
bearerAuth In: header
Path Parameters
ID numerik enrollment plat
Response Body
application/json
curl -X DELETE "https://lenz.example.com/api/vehicles/0"{ "ok": true, "message": "successfully deleted enrolled plate"}Statistik & Status
Endpoint ringan untuk widget dashboard dan filter status di toolbar tabel enrollment.
Status Enrollment Plat
curl -X GET "https://lenz.example.com/api/enrolled-plates/statuses"{ "ok": true, "message": "success", "results": { "total": 150, "statuses": [ { "status": "whitelist", "total": 100 }, { "status": "blacklist", "total": 30 }, { "status": "normal", "total": 20 } ] }}Plate Enrollment
Daftarkan plat nomor kendaraan ke sistem untuk dipakai dalam License Plate Recognition matching, lengkap dengan data kendaraan, foto, dan pengelolaan CRUD.
Resource Monitoring
Pemantauan real-time CPU, GPU, RAM, disk, dan database untuk seluruh komponen sistem Visionaire — diperbarui otomatis setiap 2–5 detik.