<h1>License Validation Endpoint</h1>

<p>Validate licenses using the API endpoint:</p>

<h2>Endpoint</h2>
<pre><code>POST /api/validate</code></pre>

<h2>Request Body</h2>
<pre><code>{
    "license_key": "YOUR_LICENSE_KEY",
    "domain": "example.com",
    "product_id": 1
}</code></pre>

<h2>Response</h2>
<pre><code>{
    "valid": true,
    "license": {
        "id": 123,
        "product_name": "Ultimate License Management System",
        "expires_at": "2026-12-31T23:59:59Z",
        "max_domains": 5,
        "domains_used": 2
    }
}</code></pre>

<h2>Error Responses</h2>
<pre><code>{
    "valid": false,
    "error": "License not found",
    "code": "LICENSE_NOT_FOUND"
}</code></pre>