Skip to main content
GET
/
validate
/
{pluginId}
/
{key}
Validate a license key
curl --request GET \
  --url https://api.mclicense.org/validate/{pluginId}/{key}
import requests

url = "https://api.mclicense.org/validate/{pluginId}/{key}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.mclicense.org/validate/{pluginId}/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mclicense.org/validate/{pluginId}/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.mclicense.org/validate/{pluginId}/{key}"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.mclicense.org/validate/{pluginId}/{key}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.mclicense.org/validate/{pluginId}/{key}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "pluginId": "<string>",
  "message": "<string>",
  "key": "<string>",
  "nonce": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "signature": "<string>"
}

Path Parameters

pluginId
string
required

Plugin ID on dashboard

key
string
required

License key to validate (alphanumeric + hyphens, max 36 chars)

Query Parameters

sessionId
string<uuid>
required

Unique ID for heartbeat tracking (UUID format)

nonce
string
required

Unique ID for request to prevent replay attacks (UUID format)

Response

200 - application/json

License validation response

pluginId
string
required

The plugin ID that was validated

message
string
required

Human-readable message about the validation result

key
string
required

The license key that was validated (alphanumeric + hyphens, max 36 chars)

status
enum<string>
required

Status code of the validation result

Available options:
valid,
invalid_format,
not_found,
expired,
max_ips,
blacklisted,
disabled,
invalid_polymart,
server_error
nonce
string<uuid>
required

The nonce that was provided in the request

signature
string
required

Base64-encoded RSA signature of the response data