Example platform journeys
Public integration patterns for common Valqio product scenarios.
These journeys show how the hosted Console, data plane, SDK, evidence, and billing sync fit together. They are product patterns, not setup scripts.
AI generation credits
Use this path when every generation spends credits or counts toward a quota.
- Model a
generation-runsproduct action. - Attach the action to credits, quota, or a plan allowance.
- Publish the environment.
- Install the Node SDK from npm.
- Call Valqio before starting generation.
- Run generation only when the decision allows it.
- Store request ID, idempotency key, reason code, and reservation ID when present.
- Inspect decision evidence and runtime activity in Console.
Use reservations when the generation is expensive, asynchronous, or likely to fail after it starts. Commit after the output is successfully created. Release when the job fails before completion.
API marketplace calls
Use this path when a customer action triggers a third-party API call that has cost, rate, or resale impact.
- Model one product action for the external call.
- Set the unit to match the commercial event, such as request, lookup, enrichment, or report.
- Enforce before calling the external provider.
- Use a stable idempotency key for provider retries.
- If the provider call succeeds, commit or record usage.
- If the provider call fails before value is delivered, release the reservation.
- Use evidence to answer support and finance questions later.
Valqio should decide before your product creates provider cost. The billing provider can invoice later from the recorded usage outcome.
Team seat or workspace limits
Use this path when a workspace can invite seats, run exports, or access plan-gated actions.
- Model the product action or usage control.
- Attach it to a plan or customer policy.
- Publish the environment.
- Use Workbench to preview allowed and denied outcomes.
- Call Valqio from the server route that performs the action.
- Return a product-specific response when denied, such as upgrade, quota reached, or contact sales.
- Inspect evidence when a customer asks why an action was blocked.
This keeps pricing enforcement out of scattered product code while preserving a clear customer experience.
What all journeys have in common
Every public integration should prove:
- Valqio was called before the product action ran.
- The subject, action, quantity, request ID, and idempotency key were stable.
- The app handled allow and deny outcomes deliberately.
- Evidence exists for support, finance, analytics, and audits.
- Billing sync, when enabled, starts from runtime evidence rather than app guesses.