Chiave Integration Guide
Validate license keys, manage activations, and create licenses programmatically from your application server.
Overview
Chiave provides a REST API that your application uses to enforce software licensing. There are two categories of endpoints:
- End-user endpoints — Your desktop app or SaaS backend calls these to validate a license key, activate a machine, or deactivate a machine. These require only the tenant slug and a license key.
- Management endpoints — Your server calls these to create, revoke, or query licenses programmatically. These require an API key for authentication.
All endpoints use JSON request and response bodies. The base URL is https://chiave.wigleystudios.com/api/v1/{your-slug}.
Quick Start
Create a Product
Add your software product in the onboarding wizard or dashboard.
Generate an API Key
Go to Settings → API Keys and generate a key for your server.
Integrate
Use the API to create licenses and validate them in your app.
Authentication
Management endpoints (create, revoke, info) require an API key. Generate one from your Chiave dashboard under Settings → API Keys.
Send the key in the Authorization header:
API keys grant full license management access. Keep them on your server — never embed them in client-side code or mobile apps. You can generate up to 5 keys per account and revoke any key instantly from the dashboard.
End-user endpoints (validate, activate, deactivate) do not require an API key. They use your tenant slug in the URL and the license key in the request body.
License Validation
Check whether a license key is valid. Call this from your application at startup or periodically.
Request
Response
Code Examples
License Activation
Register a machine against a license. Enforces the activation limit.
Request
Response
If the same machine_id is already active, the endpoint returns reactivated: true and updates the last-seen timestamp without consuming an additional activation slot.
License Deactivation
Remove a machine activation, freeing the slot for another device.
Request
Response
License Creation
This endpoint requires authentication via an API key in the
Authorization header.
Create a new license key programmatically. Subject to your tier’s license and customer limits.
Request
Response
Code Examples
License Revocation
Permanently revoke a license key. The key will fail all subsequent validation checks.
Request
Response
License Info
Retrieve full details for a license, including active machine activations.
Response
Stripe Webhook Automation
Automatic license creation from Stripe checkout events is available on the Unlimited plan ($99.99/mo).
If you use Stripe for payments, Chiave can automatically create licenses when your customers complete checkout. Setup:
- In your Stripe Dashboard, create a webhook endpoint pointing to:
https://chiave.wigleystudios.com/stripe/webhook/{your-slug} - Subscribe to these events:
checkout.session.completed,customer.subscription.deleted,invoice.payment_failed - Copy the webhook signing secret from Stripe
- In Chiave, go to Settings → Stripe and paste the webhook secret
When a customer completes a Stripe Checkout session, Chiave automatically:
- Creates a customer record (or finds the existing one by email)
- Generates a license key with ACTIVE status
- Suspends licenses when a subscription is cancelled or payment fails repeatedly
Error Reference
| Status | Meaning | Common Cause |
|---|---|---|
400 | Bad Request | Missing required field, invalid product slug |
401 | Unauthorized | Missing or invalid API key (management endpoints) |
403 | Forbidden | License inactive, activation limit reached, tier limit exceeded, email not verified, trial expired |
404 | Not Found | Invalid tenant slug, license key not found |
422 | Validation Error | Request body failed schema validation |
429 | Rate Limited | Too many requests — retry after the indicated interval |
All error responses include a detail field with a human-readable message:
Ready to Integrate?
Start a 30-day free trial — no credit card required. Full API access with Starter-tier limits.
Start Free Trial