API Reference

Programmatically verify, manage, and revoke licenses for Code Weaver Studio plugins using our REST API.

Introduction

The Code Weaver Studio License API allows your WordPress installations to communicate with our central SaaS server to verify domain bindings and expiry dates.

Base URL: https://www.codeweaverstudio.com/license-api.php

Validate License

Validates a license key against a specific domain name.

POST /license-api.php

Request Body (Form Data)

action: "validate"
license_key: "CWS-PRO-A1B2-C3D4"
domain: "clientwebsite.com"

Success Response (200 OK)

{
  "status": "active",
  "expiry_date": "2027-12-31",
  "plan": "Pro"
}

Error Response

{
  "status": "invalid",
  "message": "License registered to another domain"
}