API Documentation

Complete guide to LXND API endpoints

API Version
v1.0
REST API

Authentication

API Key

Rate Limit

1000/hour

Format

JSON

Security

HTTPS Only

Authentication

All API requests require authentication using an API key. Include your API key in the request headers.

Request Headers

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Getting Your API Key

You can generate your API key from your dashboard under Account Settings.

License Validation

Validate license keys for your projects.

POST /api/validate-license
Request Body:
{
  "license_key": "your-license-key",
  "project_id": "your-project-id"
}
Response:
{
  "valid": true,
  "license_key": "your-license-key",
  "project_id": "your-project-id",
  "expires_at": "2024-12-31T23:59:59Z",
  "used_by": "username"
}

License Management

Create, manage, and revoke license keys.

POST /api/create-license
Request Body:
{
  "project_id": "your-project-id",
  "duration_days": 365,
  "max_uses": 1
}
GET /api/licenses/{project_id}

Get all licenses for a specific project.

Error Codes

400 Bad Request
Invalid request parameters
401 Unauthorized
Invalid or missing API key
404 Not Found
Resource not found
429 Too Many Requests
Rate limit exceeded