Skip to Content
API ReferenceLicenses

Activate a license key

Activate a license for a device or installation and save its instance ID.

Activate a license for a named device or installation. Success returns a license instance: the record of that activation. Save its id so you can validate the same activation later.

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

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
license_key*string
instance_name*string

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/licenses/activate' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "license_key": "01965f1d-f038-7116-b57f-9e7ecb4e7b8f",  "instance_name": "Grace Wilson"}'
{  "data": {    "id": "9ebd37af-2077-42f9-9f88-d96cfc6ef1a8",    "license_key_id": 1,    "name": "Grace Wilson",    "store_id": 1,    "created_at": "2025-04-22T20:53:22.000000Z",    "updated_at": "2025-04-22T20:53:22.000000Z"  }}