---
title: License keys
description: Redeem a license key to grant a plan’s entitlements without checkout.
---

# License keys

License keys grant a plan’s entitlements to the authenticated user.

```ts
await platform.activateLicenseKey({
  key: "RB-XXXXXXXX-…",
  installation_id: "optional-stable-id",
});
```

```dart
await platform.activateLicenseKey(
  key: 'RB-XXXXXXXX-…',
  installationId: installationId,
);
```

## Notes

- Requires end-user JWT
- On success, refresh entitlements and update offline cache
- Key format and redemption limits are enforced server-side
- Prefer keys for offline-sold / gift / retail channels; use payments for online checkout
