Chuyển đến nội dung chính
POST
/
v1
/
license
/
activate
Activate a license
curl --request POST \
  --url https://api.tablepro.app/v1/license/activate \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "license_key": "ABCDE-12345-FGHIJ-67890-KLMNO",
  "machine_id": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "machine_name": "John's MacBook Pro",
  "app_version": "0.2.0",
  "os_version": "macOS 15.3"
}
EOF
{
  "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"

machine_name
string
bắt buộc

Human-readable machine name.

Maximum string length: 255
Ví dụ:

"John's MacBook Pro"

app_version
string
bắt buộc

Application version.

Maximum string length: 50
Ví dụ:

"0.2.0"

os_version
string
bắt buộc

Operating system version.

Maximum string length: 100
Ví dụ:

"macOS 15.3"

Phản hồi

License activated successfully. 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"