Error when extracting zipped files
LyTran API Keys
Manage API keys with plans, device limits, activation, and expiry time.
This plugin provides an API key licensing system similar to SaaS activation workflows.
Features
- Create single or bulk API keys
- Define plan durations: 1 Day, 1 Month, 3 Months, 6 Months, 9 Months, 1 Year
- Limit maximum devices per key
- Track activation date, last used date, remaining days
- Reset device list for any key
- Delete single key or delete all keys
- Export keys to CSV
- Multi-language support following Botble CMS standards
- Clean UI integrated with Botble Admin Theme
- Asset publishing & versioned plugin structure
Installation
-
Upload the plugin folder
lytran-api-keysinto:platform/plugins/ -
Go to Admin Panel → Extensions → Installed Plugins
-
Find LyTran API Keys
-
Click Activate
Plugin Structure
lytran-api-keys/
├── config/
├── database/
├── helpers/
├── resources/
│ ├── assets/
│ │ └── images/screenshot.png
│ ├── lang/
│ └── views/
├── routes/
├── src/
│ ├── Http/
│ │ ├── Controllers/
│ │ └── Requests/
│ ├── Models/
│ ├── Repositories/
│ └── Providers/ApiKeysServiceProvider.php
├── plugin.json
└── README.md
REST API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /lt-api/v1/activate |
Activate an API key with device ID |
| POST | /lt-api/v1/ping |
Heartbeat to keep session active |
| POST | /lt-api/v1/status |
Check key status |
Example request:
{
"api_key": "YOUR_KEY",
"device_id": "DEVICE_HASH"
}
Example response:
{
"ok": true,
"activated_at": "2025-01-01 00:00:00",
"expires_at": "2025-02-01 00:00:00",
"duration_days": 30,
"max_devices": 1,
"devices": [],
"ping_interval": 30
}
Admin Panel
Inside admin dashboard:
-
API Keys Table
View all keys with filters (plan, status, search) -
Bulk Create
Generate multiple keys at once -
Reset Devices
Clear stored devices for a specific API key -
Delete All Keys
Remove all keys in the system
Asset Publishing
The plugin publishes its assets automatically:
public/vendor/lytran-api-keys/
Multi-language Support
All text follows Botble’s translation structure:
resources/lang/en/
resources/lang/vi/
License
This plugin is licensed for private usage by Ly Tran.
Author
Ly Tran
Website: https://congnghe360.com
Support me ❤️
- Bank Information: TP.Bank - TRAN PHUOC LY - 939.6879.8888
Kindly log in to share your feedback on this plugin.