ResourcesLicenses

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 (active is false).
  • The license key has expired (expires_at is in the past).
  • The activation limit (limit) has been reached.
POST
/v2/licenses/activate

Authorization

bearerAuth
AuthorizationBearer <token>

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"
  }
}