API Development
Developer-Friendly

RESTful API &
Authentication

Comprehensive RESTful API with Bearer token authentication, advanced rate limiting, and extensive documentation. Integrate license validation in minutes.

Everything You Need in One API

Clean, intuitive API design with comprehensive endpoints for all license management operations

Bearer Token Authentication

Secure API access with lsv_ prefixed tokens. Generate, rotate, and revoke tokens via dashboard.

curl -X POST https://api.example.com/v1/validate \
  -H "Authorization: Bearer lsv_abc123..." \
  -H "Content-Type: application/json" \
  -d '{"license_key": "XXXX-XXXX-XXXX"}'

Advanced Rate Limiting

Sliding window algorithm with Redis. Prevents abuse while allowing legitimate high-volume usage.

  • 60 requests/minute default
  • Configurable per API key
  • X-RateLimit headers included

Core API Endpoints

POST /api/v1/validate

Validate license key and check activation status

POST /api/v1/activate

Activate license on device with hardware fingerprinting

POST /api/v1/deactivate

Deactivate license from device

GET /api/v1/status/{key}

Check current license status and expiration

POST /api/v1/usage/track

Track feature usage and analytics

Quick Integration

Start validating licenses in under 5 minutes

// PHP Integration Example
use GuzzleHttp\Client;

class LicenseValidator
{
    private $client;
    private $apiToken = 'lsv_your_token_here';

    public function validate(string $licenseKey): bool
    {
        $response = $this->client->post('https://api.example.com/v1/validate', [
            'headers' => [
                'Authorization' => "Bearer {$this->apiToken}",
                'Content-Type' => 'application/json',
            ],
            'json' => [
                'license_key' => $licenseKey,
                'hardware_id' => $this->getHardwareId(),
            ],
        ]);

        $data = json_decode($response->getBody(), true);
        return $data['valid'] ?? false;
    }
}

// Usage
$validator = new LicenseValidator();
if ($validator->validate('XXXX-XXXX-XXXX-XXXX')) {
    // License is valid - enable features
}

Ready to Integrate?

Start building with our comprehensive API today