Activate a license key
This endpoint activates a given license key and creates an instance of the license key. Activation registers a unique identifier (instance name) against the license key. If the activation is successful, it returns the details of the newly created LicenseKeyInstance, including its unique id which should be stored by the client/application for future validation.
This endpoint activates a given license key and creates an instance of the license key. Activation registers a unique identifier (instance name) against the license key. If the activation is successful, it returns the details of the newly created LicenseKeyInstance, including its unique id which should be stored by the client/application for future validation.
Activation can fail if:
- The license key does not exist.
- The license key is inactive (
activeis false). - The license key has expired (
expires_atis in the past). - The activation limit (
limit) has been reached.
Authorization
bearerAuth Provide your SellApp API key as a bearer token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://sell.app/api/v2/licenses/activate" \ -H "Content-Type: application/json" \ -d '{ "license_key": "01965f1d-f038-7116-b57f-9e7ecb4e7b8f", "instance_name": "zezima@osrs.com" }'{
"data": {
"id": "9ebd37af-2077-42f9-9f88-d96cfc6ef1a8",
"license_key_id": 1,
"name": "zezima@osrs.com",
"store_id": 1,
"created_at": "2025-04-22T20:53:22.000000Z",
"updated_at": "2025-04-22T20:53:22.000000Z"
}
}Overview
On this page, we’ll dive into the different license key endpoints you can use to activate and manage license keys programmatically.
Validate a license key POST
Checks if a given license key and instance ID pair represents a valid, active license activation. This is the primary endpoint to use within your application to verify a user's license status periodically.