API Integration Examples #
Common integration patterns.
WordPress Plugin Integration #
Validate License on Activation #
Activate Using Key-Based Endpoint (Recommended, v1.2.0) #
license_type, activation_limit, license_duration in response to show correct UIPeriodic Check-In #
Activation Workflow #
Activate Site (Key-Based, v1.2.0 – Recommended) #
{ license_key, site_url }license_type and activation_limit from response for UIActivate Site (ID-Based, Legacy) #
Deactivate Site (Key-Based, v1.2.0 – Recommended) #
{ license_key, site_url }Deactivate Site (ID-Based, Legacy) #
Best Practices #
| Practice | Reason |
|---|---|
| Use key-based endpoints | Simpler – no ID lookup step needed |
| Cache validation | Reduce API calls |
| Store activation confirmation | Needed if using legacy deactivation |
| Handle errors gracefully | Better UX |
| Use check-in | Keeps activation fresh |
| Read variation metadata | Show correct tier info in UI |
Related Topics #
- [Validate License Endpoint](#)
- [Activation Endpoints](#)
- [Key-Based Activate and Deactivate](#)
- [Error Handling](#)
