Context files
- Scrip overview: Start here if the tool only knows the product website.
- Docs index: Use this to choose relevant docs pages.
- Full docs: Load this when the tool supports large context files.
- OpenAPI spec: Use this for endpoint paths, request schemas, response schemas, and error codes.
Recommended context
Events are the input that drives rule evaluation, balance changes, ledger entries, webhooks, and downstream reporting. Load event context before asking an AI tool to design rules, balances, or automations. For most integration work, load these pages in order:Workflow context
For programs and assets, load Core concepts, Programs, and Asset configuration. For participants and groups, load Core concepts, Participants, State management, and Groups. For rules and events, load Event processing, Writing rules, CEL expressions, and Rule actions. For balances and ledger behavior, load Ledger, Balance operations, and Lots and expiration. For redemptions and rewards catalog work, load Ledger, Balance operations, Redemptions, and Rewards catalog. For transfers, load Ledger, Balance operations, and Transfers. For reporting, load Ledger, Event processing, and Reporting. For automations, load Event processing, Writing rules, and Automations. For webhooks, load Event processing and Webhooks. For testing, load Quickstart, Event processing, and Testing.Integration path
When an AI tool is helping build a first REST API integration, use this sequence:- Set up server-side authentication.
- Create a program.
- Create and link an asset.
- Define a rule with a CEL condition and one or more actions.
- Ingest an event with an
idempotency_key. - Verify the participant balance and ledger entries.
Security constraints
Keep production credentials server-side. Do not expose them in browser code, mobile apps, public repositories, or AI prompts. Use deterministicidempotency_key values for event retries. Reusing the same key returns the same event identity without reprocessing, even if the payload differs. To correct or replace an event, send a new event with a new idempotency key.