Appearance
Revoke License
Revoke a license. Sets the status to revoked, busts the edge validation cache so the change takes effect immediately, and fires the license.revoked webhook.
POST /v1/licenses/:id/revokePath Parameters
| Parameter | Description |
|---|---|
id | License ID |
Response
json
{
"data": {
"message": "License revoked"
}
}Example
bash
curl -X POST "https://api.packedge.dev/v1/licenses/lic_xxx/revoke" \
-H "Authorization: Bearer pk_your_api_key"Notes
- Prefer this over
PATCH /v1/licenses/:idwithstatus: "revoked"— only the revoke endpoint clears the edge cache and dispatches the webhook - Revoking is reversible: update the license back to
activeif needed - For permanent removal, use Delete License
