Skip to content

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/revoke

Path Parameters

ParameterDescription
idLicense 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/:id with status: "revoked" — only the revoke endpoint clears the edge cache and dispatches the webhook
  • Revoking is reversible: update the license back to active if needed
  • For permanent removal, use Delete License