Zapier
Zapier connects ZSky AI to 6,000+ apps — no code required. Set up triggers and actions in minutes.
Supported ZSky AI events in Zapier: generation_complete, signup, subscription
Make.com
Make.com (formerly Integromat) offers more advanced automation logic — branching, loops, data transforms — all visual.
Make.com supports conditional routing — send image generations one way and video completions another, all from a single ZSky AI webhook.
Example Workflows
Ready-to-use automation ideas for creators, marketers, and developers.
Webhook Events
Three event types cover the full user lifecycle. Register for any combination per endpoint.
- eventstring
- type"image" | "video"
- user_idstring
- credits_usedinteger
- generation_idstring
- output_urlstring
- timestampunix epoch
- eventstring
- emailstring
- referral_codestring | null
- plan"free" | "starter" | ...
- timestampunix epoch
- eventstring
- tier"starter" | "pro" | "ultra"
- emailstring
- amountfloat
- currencystring (ISO 4217)
- stripe_subscription_idstring
- timestampunix epoch
Webhook API for Developers
Prefer raw webhooks? Register any HTTPS endpoint and ZSky AI will POST events directly to your server.
Register your endpoint with a single API call:
# Register your endpoint for all events curl -X POST https://zsky.ai/api/webhooks/register \ -H "X-Api-Key: zsky_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-server.com/hooks/zsky", "events": ["generation_complete", "signup", "subscription"], "secret": "optional_signing_secret" }'
ZSky AI will POST payloads like this to your URL:
{
"event": "generation_complete",
"type": "image",
"user_id": "user_abc123",
"credits_used": 1,
"generation_id": "gen_9f3a2b",
"output_url": "https://zsky.ai/outputs/gen_9f3a2b.png",
"timestamp": 1710000000
}
Verify the signature in Python:
import hashlib, hmac def verify_signature(body: bytes, sig: str, secret: str) -> bool: expected = "sha256=" + hmac.new( secret.encode(), body, hashlib.sha256 ).hexdigest() return hmac.compare_digest(expected, sig) # In your Flask/FastAPI handler: sig = request.headers.get("X-ZSky-Signature", "") if not verify_signature(request.data, sig, YOUR_SECRET): return 401
Frequently Asked Questions
Common questions about ZSky AI integrations.
zsky_. Keep your key secret — it has full access to your account's webhooks.secret field. ZSky AI will then include an X-ZSky-Signature header (HMAC-SHA256) on every delivery, which you can verify to prevent spoofing.