Documentation

Developers

Featured Endpoints

Checkouts

Discounts

License Keys

Oauth2

Organizations

Products

Users

Issue Funding Endpoints

External Organizations

Repositories

Other Endpoints

Advertisements

Articles

Benefits

Checkout-Links

Checkouts

Custom-Fields

Files

Metrics

Oauth2

Orders

Subscriptions

Users

users

Activate License Key

post
/v1/users/license-keys/activate
Activate a license key instance.
curl -X POST \
    'https://api.polar.sh/v1/users/license-keys/activate' \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{
  "key": "string",
  "organization_id": "00000000-0000-0000-0000-000000000000",
  "label": "string"
}'
Responses
{
  "id": "00000000-0000-0000-0000-000000000000",
  "license_key_id": "00000000-0000-0000-0000-000000000000",
  "label": "string",
  "meta": {},
  "created_at": "2024-12-03T00:00:00.000Z",
  "modified_at": "2024-12-03T00:00:00.000Z",
  "license_key": {
    "id": "00000000-0000-0000-0000-000000000000",
    "organization_id": "00000000-0000-0000-0000-000000000000",
    "user_id": "00000000-0000-0000-0000-000000000000",
    "user": {
      "id": "00000000-0000-0000-0000-000000000000",
      "public_name": "string",
      "email": "string",
      "avatar_url": "string"
    },
    "benefit_id": "00000000-0000-0000-0000-000000000000",
    "key": "string",
    "display_key": "string",
    "status": "granted",
    "limit_activations": 0,
    "usage": 0,
    "limit_usage": 0,
    "validations": 0,
    "last_validated_at": "2024-12-03T00:00:00.000Z",
    "expires_at": "2024-12-03T00:00:00.000Z"
  }
}