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
Cara memperoleh dan menggunakan Bearer token JWT.
Semua endpoint memerlukan header Authorization: Bearer <token>. Basis URL mengikuti variabel lingkungan VITE_API_URL yang dikonfigurasi pada instalasi Lenz. Jika Anda belum punya token, lihat halaman Otentikasi.
CRUD Plate Enrollment
Endpoint utama untuk membuat, membaca, memperbarui, dan menghapus data enrollment plat nomor kendaraan satu per satu.
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/enrolled-plates"{ "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" } ] } ] }}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/enrolled-plates" \ -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 }}Authorization
bearerAuth In: header
Path Parameters
ID numerik enrollment plat
Response Body
application/json
curl -X GET "https://lenz.example.com/api/enrolled-plates/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" } ] }}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/enrolled-plates/0" \ -F name="string" \ -F plate_number="string"{ "ok": true, "message": "successfully updated enrolled plate"}Authorization
bearerAuth In: header
Path Parameters
ID numerik enrollment plat
Response Body
application/json
curl -X DELETE "https://lenz.example.com/api/enrolled-plates/0"{ "ok": true, "message": "successfully deleted enrolled plate"}Statistik & Status
Endpoint ringan untuk widget dashboard dan filter status di toolbar tabel enrollment.
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 } ] }}Endpoint Legacy (/api/vehicles)
Beberapa komponen internal masih menggunakan path /api/vehicles yang merupakan alias lama untuk operasi CRUD yang sama. Gunakan /api/enrolled-plates untuk integrasi baru.
Endpoint /api/vehicles bersifat legacy. Fungsionalitasnya identik dengan /api/enrolled-plates — gunakan path baru untuk semua integrasi baru.
Authorization
bearerAuth In: header
Query Parameters
110Response Body
curl -X GET "https://lenz.example.com/api/vehicles"curl -X POST "https://lenz.example.com/api/vehicles"curl -X PUT "https://lenz.example.com/api/vehicles/0"curl -X DELETE "https://lenz.example.com/api/vehicles/0"curl -X GET "https://lenz.example.com/api/vehicles/statuses"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 setiap 2 detik.