LumenOne Documentation

API Reference

Integrate LumenOne with your own tools using our public API. Perfect for Discord bots, custom automation, and third-party integrations.

Authentication

All API requests must include an API key in the request headers. You can generate your key in the settings page.

# Example Header
x-api-key: your_api_key_here

GET

/api/v1/test

Verify your API key and connection stability.

{ "success": true, "message": "Valid API key, route works." }

Users Management

GET

/api/v1/users

Fetch a list of all users registered in the system.

{ "success": true, "users": [ { "id": 1, "username": "admin", "rank": "admin", ... } ] }
POST

/api/v1/users

Create a new user. Required fields: username, password, rank.

Body Parameters
rank: Must be "admin" or "default".
{ "success": true, "message": "User created", "userId": 42 }
PUT

/api/v1/users/:username

Update an existing user's password or rank.

{ "success": true, "message": "User updated" }
DELETE

/api/v1/users/:username

Remove a user from the system permanently.

Websites Management

GET

/api/v1/websites

Get all websites hosted on the panel.

GET

/api/v1/websites/:userId

Fetch all websites belonging to a specific user ID.

{ "success": true, "websites": [ { "id": 1, "user_id": 1, "name": "My Project", "url": "https://example.com" } ] }
POST

/api/v1/websites

Deploy a new website entry. Required: userId, name, url.

{ "success": true, "message": "Website created", "websiteID": 12 }