Traducción automática. Parte de esta página está traducida automáticamente. El texto sin traducir aparece en inglés. La página en inglés es la versión autorizada. Informar de un problema de traducción.
Para desarrolladores
One account. One contract.
For product teams connecting a Maslow Ventura app to Mazzy: identities, entitlements, tokens and signed events.
01 / The model
A product key, an account id, one entitlement.
A registered product authenticates with a product key prefixed mazzy_. The key is shown once at issue or rotation and stored as a hash. The product sends the key in the Authorization header; Mazzy resolves the account server-side.
The browser never supplies an authoritative account id. A product reads an entitlement for an account and keeps its own usage; Mazzy does not receive it.
02 / Entitlements
One read tells you what the account has.
The product reads the canonical entitlement for an account. Access is granted for trialing, active and past_due; it is denied for canceled, expired and suspended.
GET /v1/entitlements/prod_example/acct_example
Authorization: Bearer mazzy_example_only
Example placeholders only. A real product key is issued in the account and shown once.
{
"data": {
"account_id": "acct_example",
"product_id": "prod_example",
"status": "active",
"source": "subscription",
"plan_id": "plan_example",
"starts_at": "2026-11-01T00:00:00Z",
"ends_at": "2026-12-01T00:00:00Z",
"updated_at": "2026-11-01T00:00:00Z",
"token_allowance": 6000
},
"error": null
}
Optional plan, features and token allowance may be present. The response carries no personal data.
Changes are delivered by webhook. Phase 1 emits entitlement.updated; the other event names are reserved, not live.
03 / Tokens
Reserve, commit, refund.
AI spend is a ledger operation. Reserve the spend, make the gateway call, then commit on success or refund on a provider failure. A retry uses the same idempotency key and replays the original result.
Balances are non-negative and per app; there is no transfer or cash-out path. The ledger is append-only and the balance is derived from it.
04 / Webhooks
Signed, deduped, retried.
Each webhook carries a timestamped HMAC signature over the raw body. Verify the signature before reading the payload, and dedupe on event_id.
X-Mazzy-Signature: t=<timestamp>,v1=<hex HMAC-SHA256 over "<timestamp>:<raw body>">
Verify with the webhook secret issued for the product. Compare in constant time.
{
"event_id": "evt_example",
"event_type": "entitlement.updated",
"occurred_at": "2026-11-14T00:00:00.000Z",
"data": {
"account_id": "acct_example",
"product_id": "prod_example",
"status": "active",
"source": "subscription"
}
}
No personal data. The product dedupes by event_id; a 2xx response acknowledges delivery.
Failed deliveries retry automatically with exponential backoff. A manual retry preserves the delivery history. Do not treat a timeout as a failed signature; verify from the raw body.
05 / Checkout and catalogue
The plan lives with the app.
Each app owns its plans and prices. The catalogue entry points at the app's offer, and checkout returns to the product. The entitlement follows payment; the product reads it rather than writing its own subscription state.
A product does not integrate Paddle directly. The providers sit behind Mazzy, and each app keeps its own invoices in the account.
06 / Compatibility
Additive by default.
/v1 changes are additive. New fields never break a shipped integration. A breaking change gets a new version and a 90-day deprecation notice; there is no silent removal from /v1.
07 / Errors
An error you can act on.
Responses use one envelope: { data, error }. A quota exhaustion returns 429 quota_exceeded with details.resets_at; the reservation is not taken, and the model is never substituted.
Authentication failures, validation errors and conflicts carry a stable code and a reference. A reference is what support needs; never log the product key.
{
"data": null,
"error": {
"code": "quota_exceeded",
"message": "The request quota is exhausted.",
"reference": "req_example",
"details": { "resets_at": "2026-11-14T00:01:00Z" }
}
}
Example only. The code and reference are the fields to log and quote to support.
A better draft starts here.
Try LoL Draft Edge Pro's public simulator, then use one Mazzy account for access, billing and every app that comes next.