Chuyển đến nội dung chính
POST
/
v1
/
license
/
validate
Validate a license
curl --request POST \
  --url https://api.tablepro.app/v1/license/validate \
  --header 'Content-Type: application/json' \
  --data '
{
  "license_key": "ABCDE-12345-FGHIJ-67890-KLMNO",
  "machine_id": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
'
{
  "data": {
    "email": "[email protected]",
    "expires_at": "2027-02-11T00:00:00+00:00",
    "issued_at": "2026-02-12T10:30:00+00:00",
    "license_key": "ABCDE-12345-FGHIJ-67890-KLMNO",
    "status": "active"
  },
  "signature": "base64-encoded-signature"
}

Nội dung

application/json
license_key
string
bắt buộc

License key in format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

Ví dụ:

"ABCDE-12345-FGHIJ-67890-KLMNO"

machine_id
string
bắt buộc

SHA-256 hash of machine identifier (64 hex characters).

Ví dụ:

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

Phản hồi

License is valid. Returns signed license data.

Signed license response containing license data and a cryptographic signature.

data
object
bắt buộc

Core license information.

signature
string
bắt buộc

Cryptographic signature of the license data for client-side verification.

Ví dụ:

"base64-encoded-signature"