Endpoint
This endpoint requires authentication with the
edit_products scope.Authentication
This endpoint requires an OAuth access token with theedit_products scope. Include your access token in the request:
Request Parameters
string
required
Your OAuth access token with
edit_products scopestring
required
The current license key to rotate
string
The unique identifier for your product (recommended)
string
The product’s permalink (either unique or custom). Can be used instead of
product_id.Response Fields
boolean
Whether the operation was successful
integer
The current usage count for this license (preserved from the old key)
object
Complete purchase information with the new license keyOther fields follow the same structure as the verify endpoint
string
The newly generated license key (this replaces the old one)
Examples
Rotate a license key
Success Response
Error Responses
Unauthorized (401)
Forbidden (403)
Returned when the access token doesn’t have theedit_products scope.
Not Found (404)
Returned when the license doesn’t exist or doesn’t belong to your product.Common Use Cases
Respond to Compromised Keys
If a customer’s license key is shared publicly (e.g., on social media or piracy sites), you can rotate it to invalidate the old key and provide them with a new one.Customer Support
When a customer reports unauthorized use of their license, you can rotate the key as part of your resolution process. This ensures the unauthorized user loses access while the legitimate customer gets a working key.Security Best Practices
Some organizations require periodic key rotation as a security measure. This endpoint makes it easy to implement such policies.Implementation Example
The new license key is automatically generated using a secure random algorithm. You cannot specify a custom key format.
License Key Format
Generated license keys follow the format:XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX
- 32 hexadecimal characters (0-9, A-F)
- Divided into 4 groups of 8 characters
- Separated by hyphens
- Always uppercase