Unlock a purchased capability
unlock_capabilityExchange the license key from the checkout (a purchase requires operator approval) for a signed entitlement and a download link that lasts at most 15 minutes. How the key is handled: the privacy page at /legal/privacy/. Repeating it with the same key is safe and never charges. Use when: your operator completed the hosted checkout and gave you the license key. Not for: a price or a checkout link (get_quote); a free capability downloads from its page. Input: the capability id and the license key, plus quote_id and evaluation_id when you have them. Output: a signed entitlement, a purchase_ref for report_outcome and the download link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | No | The quote_id of the quote the purchase followed, if any (links the records; never changes the price). | |
| capability | Yes | Capability id (ak:publisher:name or ak:publisher:name:x.y.z), ak:// URI or slug. | |
| license_key | Yes | License key from the checkout. | |
| evaluation_id | No | The evaluation_id from evaluate_capability, if you evaluated first. |