LetOn API

Complete API reference for LetOn token management

Authentication

All API requests require an API key. Get your key from the dashboard → API Keys tab.

Include the key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Rate Limits

100

Requests per minute

1000

Requests per hour

10000

Requests per day

Endpoints

GET/api/v1/tokens Requires API Key

Get all tokens for the authenticated user

Response:

{
  "tokens": [
    {
      "id": "token_id",
      "username": "user_name",
      "status": "online",
      "activity_name": "Minecraft",
      "created_at": "2024-01-01T00:00:00Z"
    }
  ]
}
POST/api/v1/tokens Requires API Key

Add a new token

Parameters:

token(string)requiredDiscord token
username(string)Username override

Response:

{
  "token": {
    "id": "token_id",
    "username": "user_name",
    "status": "offline",
    "created_at": "2024-01-01T00:00:00Z"
  }
}
POST/api/v1/tokens/:id/connect Requires API Key

Connect a token (make it online)

Response:

{
  "success": true,
  "message": "Token connected"
}
POST/api/v1/tokens/:id/disconnect Requires API Key

Disconnect a token

Response:

{
  "success": true,
  "message": "Token disconnected"
}
DELETE/api/v1/tokens/:id Requires API Key

Delete a token

Response:

{
  "success": true
}
GET/api/v1/user Requires API Key

Get current user info

Response:

{
  "user": {
    "id": "user_id",
    "username": "user_name",
    "discord_id": "discord_id"
  }
}
GET/api/v1/settings Requires API Key

Get user settings

Response:

{
  "settings": {
    "auto_rotate": true,
    "rotate_interval": 30
  }
}
PUT/api/v1/settings Requires API Key

Update user settings

Parameters:

auto_rotate(boolean)Enable auto rotation
rotate_interval(number)Rotation interval in seconds

Response:

{
  "settings": {
    "auto_rotate": true,
    "rotate_interval": 60
  }
}

Error Codes

400

Bad Request - Invalid parameters

401

Unauthorized - Invalid or missing API key

403

Forbidden - No permission

404

Not Found - Resource not found

429

Too Many Requests - Rate limit exceeded

500

Internal Server Error

Example Usage

cURL

# Get all tokens
curl -H "Authorization: Bearer YOUR_API_KEY" \
  http://api.zeapxonliner.bond/api/v1/tokens

# Add a token
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token": "your_discord_token"}' \
  http://api.zeapxonliner.bond/api/v1/tokens

# Connect a token
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  http://api.zeapxonliner.bond/api/v1/tokens/TOKEN_ID/connect

JavaScript

const API_KEY = 'your_api_key';
const BASE_URL = 'http://api.zeapxonliner.bond/api/v1';

// Get tokens
const tokens = await fetch(`${BASE_URL}/tokens`, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
}).then(res => res.json());

// Add token
const newToken = await fetch(`${BASE_URL}/tokens`, {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ token: 'your_discord_token' })
}).then(res => res.json());

Python

import requests

API_KEY = 'your_api_key'
BASE_URL = 'http://api.zeapxonliner.bond/api/v1'
HEADERS = {'Authorization': f'Bearer {API_KEY}'}

# Get tokens
response = requests.get(f'{BASE_URL}/tokens', headers=HEADERS)
tokens = response.json()

# Add token
response = requests.post(
    f'{BASE_URL}/tokens',
    headers={**HEADERS, 'Content-Type': 'application/json'},
    json={'token': 'your_discord_token'}
)
new_token = response.json()