Setup
uv pip install "nullspace-sdk[cli]==0.1.9"
export NULLSPACE_API_KEY=ns_live_...
export NULLSPACE_API_URL=https://api.your-nullspace-domain
Python
from nullspace import Lifecycle
lifecycle = Lifecycle()
webhook = lifecycle.create_webhook(
"https://example.com/nullspace/lifecycle",
operations=["create", "destroy"],
signing_secret="whsec_replace_me",
)
print(webhook.id, webhook.enabled)
for delivery in lifecycle.list_webhook_deliveries(webhook.id, limit=10):
print(delivery.id, delivery.status)
lifecycle.delete_webhook(webhook.id)
lifecycle.close()
CLI
nullspace lifecycle webhooks create \
--url https://example.com/nullspace/lifecycle \
--operation create \
--operation destroy \
--signing-secret whsec_replace_me
nullspace lifecycle webhooks deliveries wh_123