License Keys
Validate a license key sold with your software, registering the calling device.
Ship a "License validation only" token inside the program you distribute: it cannot read anything else from the store.
Validate a key
POST
/api/v1/license-keys/validateAbilitylicense-keys.validateChecks the key and, when hwid is sent, registers the device against the key's HWID limit.
Request body (JSON)
keystringrequired- The license key to validate.
hwidstring- The calling device's hardware identifier. When sent, it is registered against the key's HWID limit.
product_idinteger- Optional. The id of the product your software is. When sent, a key for another of the store's products is rejected with product_mismatch, without revealing its status or registering the device. Recommended when the store sells more than one program.
This endpoint always responds 200 OK, even on rejection — check the success field in the response body, not the HTTP status.
Response fields
validboolean- Whether the key is valid and, when a hwid was sent, whether it was accepted.
reasonstring|null- Why the key was rejected: not_found, banned, revoked, expired, hwid_limit_reached or product_mismatch. null when valid.
hwid_slots_usedinteger|null- How many devices are registered on the key. null when the key has no limit.
hwid_slots_remaininginteger|null- How many device slots are left. null when the key has no limit.
expires_atstring|null- When the key expires — tied to the duration of the variant sold. null when it never expires.
product_idinteger|null- The id of the product the key unlocks. null when rejected.
curl -X POST "https://sellitex.com/api/v1/license-keys/validate" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"key":"AAAA-BBBB-CCCC-DDDD","hwid":"device-123","product_id":42}'Response200
{
"valid": true,
"reason": null,
"hwid_slots_used": 1,
"hwid_slots_remaining": 4,
"expires_at": "2027-08-28T00:00:00+00:00",
"product_id": 42
}