Skip to content

Commit

Permalink
fix license keys docs
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Jan 6, 2025
1 parent 677f2c1 commit f3f5cdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit f3f5cdf

Please sign in to comment.