# Activate key When a user activates a key, Xsolla sends a notification to your webhook URL. Endpoint: POST activate-key Version: 1.0 ## Request fields (application/json): - `notification_type` (string) Notification type. - `settings` (object) Custom project settings (object). - `settings.project_id` (integer) Project ID. You can find this parameter in your [Publisher Account](https://publisher.xsolla.com/) next to the name of the project. - `settings.merchant_id` (integer) Merchant ID. - `key` (string) Activation key. - `sku` (string) Unique key package ID. - `user_id` (string) User ID. - `activation_date` (string) Key activation date in the YYYYMMDDHHMMSS format per [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). - `user_country` (string) User’s country. Two-letter uppercase [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. - `restriction` (object) Object with regional restriction cluster settings. The cluster includes a restriction type and a list of countries, servers and locales for which the game is available. - `restriction.sku` (string) Unique cluster ID. - `restriction.name` (string) Cluster name. - `restriction.types` (array) Array of restriction types. - `restriction.countries` (array) Array of countries in the cluster. - `restriction.servers` (array) Array of game servers. - `restriction.locales` (array) Array of locales. ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields