Add a Domain to a License (POST /add_domain)

Add a domain to an existing license without full activation.

Authentication: Valid license_key

Parameters:

NameTypeRequiredDescription
license_keystringYesThe license key
domainstringYesDomain to add
versionstringNoSoftware version
statusstringNoDomain status
date_timestringNoTimestamp
environmentstringNolive or staging

Example Request:

curl -X POST https://your-site.com/wp-json/slswc/v1/add_domain \
  -d license_key=ABCD-1234-EFGH-5678 \
  -d domain=https://new-site.com \
  -d environment=live

Success Response (200):

{
    "status": "added",
    "message": "The domain has been added to the license",
    "domains": {
        "https://new-site.com": {
            "domain": "https://new-site.com",
            "status": "active",
            "environment": "live",
            "date_time": "2026-04-09 14:00:00"
        }
    }
}

Already Active Response (200):

{
    "status": "already_active",
    "domains": {
        "https://new-site.com": {
            "domain": "https://new-site.com",
            "status": "active",
            "environment": "live",
            "date_time": "2026-03-01 10:00:00"
        }
    },
    "message": "License already active for this domain"
}

Back to License Endpoints.

Was this article helpful?