From f3f5cdf09bc6360778d9e602cf129e35fe7af3f8 Mon Sep 17 00:00:00 2001 From: Emil Widlund Date: Mon, 6 Jan 2025 19:02:13 +0100 Subject: [PATCH] fix license keys docs --- .../(mdx)/blog/(header)/introducing-license-keys/page.mdx | 2 +- .../app/(main)/docs/(mdx)/benefits/license-keys/page.mdx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clients/apps/web/src/app/(main)/(landing)/(mdx)/blog/(header)/introducing-license-keys/page.mdx b/clients/apps/web/src/app/(main)/(landing)/(mdx)/blog/(header)/introducing-license-keys/page.mdx index 62b48d2c82..9cbde5c0ac 100644 --- a/clients/apps/web/src/app/(main)/(landing)/(mdx)/blog/(header)/introducing-license-keys/page.mdx +++ b/clients/apps/web/src/app/(main)/(landing)/(mdx)/blog/(header)/introducing-license-keys/page.mdx @@ -28,7 +28,7 @@ Making it seamless to sell access to premium software without the headache of ma Paired with an easy API to integrate license key validation within your app, product or services. ```sh -curl -X POST https://api.polar.app/v1/users/license-keys/validate +curl -X POST https://api.polar.app/v1/customer-portal/license-keys/validate -H "Content-Type: application/json" -d '{ "key": "1C285B2D-6CE6-4BC7-B8BE-ADB6A7E304DA", diff --git a/clients/apps/web/src/app/(main)/docs/(mdx)/benefits/license-keys/page.mdx b/clients/apps/web/src/app/(main)/docs/(mdx)/benefits/license-keys/page.mdx index c513d62056..b5136cf5af 100644 --- a/clients/apps/web/src/app/(main)/docs/(mdx)/benefits/license-keys/page.mdx +++ b/clients/apps/web/src/app/(main)/docs/(mdx)/benefits/license-keys/page.mdx @@ -97,7 +97,7 @@ Below are the two main endpoints to activate & validate license keys. Want to review the full API docs? - [License Key Management](/docs/api/v1/license-keys/get) -- [User/Customer License Keys](/docs/api/v1/users/license-keys/get) +- [User/Customer License Keys](/docs/api/v1/customer-portal/license-keys/get) ### Activate License Keys (Optional) @@ -108,7 +108,7 @@ instance prior to validating license keys / activation. **No activation limit?** You can skip this step. ```sh -curl -X POST https://api.polar.app/v1/users/license-keys/activate +curl -X POST https://api.polar.app/v1/customer-portal/license-keys/activate -H "Content-Type: application/json" -d '{ "key": "1C285B2D-6CE6-4BC7-B8BE-ADB6A7E304DA", @@ -159,10 +159,10 @@ curl -X POST https://api.polar.app/v1/users/license-keys/activate ### Validate License Keys For each session of your premium app, library or API, we recommend you validate -the users license key via the `/users/license-keys/validate` endpoint. +the users license key via the `/customer-portal/license-keys/validate` endpoint. ```sh -curl -X POST https://api.polar.app/v1/users/license-keys/validate +curl -X POST https://api.polar.app/v1/customer-portal/license-keys/validate -H "Content-Type: application/json" -d '{ "key": "1C285B2D-6CE6-4BC7-B8BE-ADB6A7E304DA",