# Scrip Docs > The operating system for rewards programs. Build and run card rewards, customer loyalty, referral programs, and marketplace incentives with Scrip's API, dashboard, and double-entry ledger. > ## Agent Instructions > Start with https://docs.scrip.dev/agents.md and https://docs.scrip.dev/which-endpoints-you-need.md. Your application only needs a few API calls as users earn and spend (`POST /v1/events`, balance/history reads, and redemptions); program setup happens in the dashboard or setup scripts. > Use `https://api-sandbox.scrip.dev` with `sk_test_` keys for testing, and `https://api.scrip.dev` with `sk_live_` keys for production. Keep API keys on your server. > Pass your own user ID as `external_id` on events and prefix it with `ext:` in participant URL paths (e.g., `GET /v1/participants/ext:user_123/balances`). By default (`on_unknown_participant: CREATE`), the first event for a new `external_id` creates and enrolls the participant automatically. > Events process asynchronously: `POST /v1/events` returns `202 Accepted` when queued, and rules evaluate in the background. Pass an `idempotency_key` (such as an order ID) on every event, and wait for the `event.completed` webhook or poll `GET /v1/events/{event_id}` before reading updated balances. > Connect the hosted MCP server at https://mcp.scrip.dev/mcp (OAuth, defaults to Sandbox) to inspect programs, validate and simulate rules, and trace events. Append `.md` to any docs URL for Markdown, or fetch https://docs.scrip.dev/openapi.json for full endpoint schemas. - [Introduction](https://docs.scrip.dev/introduction.md): The operating system for rewards programs. Build loyalty, cashback, referral, and incentive programs with Scrip. - [Quickstart](https://docs.scrip.dev/quickstart.md): Create a program, an asset, and a rule, send an event, and read the resulting balance - [Core concepts](https://docs.scrip.dev/guides/core-concepts.md): How programs, assets, participants, events, rules, redemptions, and the ledger work together. - [Authentication](https://docs.scrip.dev/authentication.md): API keys, base URLs, request headers, and authentication errors. - [Which endpoints you need](https://docs.scrip.dev/which-endpoints-you-need.md): The few endpoints your app calls as users earn and spend, and what the rest of the API is for. - [Test in the sandbox](https://docs.scrip.dev/guides/sandbox.md): Test events, balances, gift cards, and webhooks in an isolated environment before going live. - [Build with AI](https://docs.scrip.dev/ai-resources.md): Connect AI coding tools to Scrip using the hosted MCP server, llms.txt, Markdown docs, and OpenAPI spec. - [Programs](https://docs.scrip.dev/guides/programs.md): The top-level container for rule sets, rules, assets, and participants - [Folders](https://docs.scrip.dev/guides/folders.md): Organize programs within an organization into a hierarchy up to 8 levels deep - [Asset configuration](https://docs.scrip.dev/guides/asset-configuration.md): Inventory modes, issuance policies, precision settings, and value per unit - [Participants](https://docs.scrip.dev/guides/participants.md): Create and manage who earns and spends rewards in your programs - [Groups](https://docs.scrip.dev/guides/groups.md): Shared balances and state for teams, families, and organizational pools - [Event processing](https://docs.scrip.dev/guides/event-processing.md): Event ingestion, rule matching, and action execution - [Writing rules](https://docs.scrip.dev/guides/writing-rules.md): Define when and how participants earn and spend - [CEL expressions](https://docs.scrip.dev/guides/cel-expressions.md): Write rule conditions and action-field expressions with CEL - [Rule actions](https://docs.scrip.dev/guides/rule-actions.md): Configure what happens when a rule matches - [Rule sets](https://docs.scrip.dev/guides/rule-sets.md): Group, order, and manage the rules in a program - [State management](https://docs.scrip.dev/guides/state-management.md): Tags, counters, and attributes for tracking participant state - [Tiers](https://docs.scrip.dev/guides/tiers.md): Ranked progression tracks with qualification, retention, and downgrade policies - [Ledger](https://docs.scrip.dev/guides/ledger.md): Double-entry journal entries, postings, and system accounts - [Lots and expiration](https://docs.scrip.dev/guides/lots-and-expiration.md): Track individual credits with expiration and vesting dates - [Pending rewards](https://docs.scrip.dev/guides/pending-rewards.md): Show rewards as soon as they are earned, and make them spendable when a later event confirms them - [Balance operations](https://docs.scrip.dev/guides/balance-operations.md): Adjust, hold, release, forfeit, and mature balances directly - [Multi-program balances](https://docs.scrip.dev/guides/multi-program-balances.md): Pooled vs. partitioned balance modeling when one asset spans multiple programs - [Rewards catalog](https://docs.scrip.dev/guides/rewards-catalog.md): Define redeemable items with pricing, costs, inventory limits, and availability windows - [Redemptions](https://docs.scrip.dev/guides/redemptions.md): Debit balances through amount redemptions and catalog purchases - [Pending redemptions](https://docs.scrip.dev/guides/redemption-lifecycle.md): Hold points while you fulfill an order, record external orders, and complete, fail, or cancel pending redemptions - [Gift cards](https://docs.scrip.dev/guides/gift-cards.md): Configure gift-card sources, redeem cards, and deliver claim links - [Transfers](https://docs.scrip.dev/guides/transfers.md): Move funds between participants and groups within a program - [Pay with points at checkout with Stripe](https://docs.scrip.dev/guides/pay-with-points-at-checkout-with-stripe.md): Let a shopper pay part of a Stripe order with points. Scrip holds the points until your server reports the Stripe payment result. - [Checkout points widget](https://docs.scrip.dev/guides/checkout-points-widget.md): Add a points control to a Stripe checkout page with the Scrip checkout widget, or build the control yourself. - [Pay with points with Stripe Checkout Sessions](https://docs.scrip.dev/guides/pay-with-points-with-stripe-checkout-sessions.md): Hold points, create a one-time Stripe coupon for them, and start a Checkout Session that charges the rest. - [Automations](https://docs.scrip.dev/guides/automations.md): Stored event submissions that Scrip fires on a trigger - [Webhooks](https://docs.scrip.dev/guides/webhooks.md): Signed HTTP callbacks for balance changes, redemptions, and event results - [Testing](https://docs.scrip.dev/guides/testing.md): Validate, simulate, and verify rules, events, and webhooks before they go live - [Managing rule configuration](https://docs.scrip.dev/guides/managing-rule-configuration.md): Change, audit, and restore a program's rules without overwriting another writer's edits - [Reporting](https://docs.scrip.dev/guides/reporting.md): Liability, redemption attribution, statements, program activity, reward costs, and the journal audit trail - [Errors](https://docs.scrip.dev/errors.md): Every error code the Scrip API returns, with its status, cause, and fix - [Limits and durations](https://docs.scrip.dev/limits.md): Page sizes, request sizes, rate-limit guidance, and the duration format - [Environments](https://docs.scrip.dev/environments.md): Production and sandbox API addresses, key prefixes, headers, and errors - [Glossary](https://docs.scrip.dev/glossary.md): Definitions for the terms used across the Scrip docs and API - [Common patterns](https://docs.scrip.dev/examples/common-patterns.md): Copy-paste rule recipes for category multipliers, sign-up bonuses, streaks, referrals, tiers, and refunds. - [Refunds and clawbacks](https://docs.scrip.dev/examples/refunds.md): Claw back earned rewards on returns using return rules, event reversals, exact debits, or zero-floor caps. - [Cashback card with rule sets](https://docs.scrip.dev/examples/cashback-card.md): Separate tracking and earning rules across rule sets with automatic calendar-month spend thresholds - [Email referral program](https://docs.scrip.dev/examples/email-referrals.md): Track invites, signups, and qualifying purchases, and pay both sides from one rule set - [Campaigns](https://docs.scrip.dev/examples/campaigns.md): Run limited-time promotions that stack on or override your base earn rules - [Multi-set rule configuration](https://docs.scrip.dev/examples/rule-configuration-workflow.md): Placement, stop behavior, and event-start snapshots across three rule sets - [Introduction](https://docs.scrip.dev/api-reference/introduction.md): Base URL, request and response format, pagination, idempotency, and error conventions - [Data model](https://docs.scrip.dev/api-reference/data-model.md): Resource map, relationships, and lifecycle statuses across the Scrip API - [Programs](https://docs.scrip.dev/api-reference/programs/overview.md): Top-level containers for incentive logic - [List programs](https://docs.scrip.dev/api-reference/programs/list-programs.md): List all programs for your organization, optionally within a folder. - [Create a program](https://docs.scrip.dev/api-reference/programs/create-a-program.md): Create a new program. - [Get a program](https://docs.scrip.dev/api-reference/programs/get-a-program.md): Retrieve a program by ID. - [Update a program](https://docs.scrip.dev/api-reference/programs/update-a-program.md): Partially update a program. - [List program assets](https://docs.scrip.dev/api-reference/programs/list-program-assets.md): List assets linked to a program. - [Link asset to program](https://docs.scrip.dev/api-reference/programs/link-asset-to-program.md): Link an existing asset to a program. - [Get program balances](https://docs.scrip.dev/api-reference/programs/get-program-balance.md): List a program's wallet balances across linked assets. - [Fund a program](https://docs.scrip.dev/api-reference/programs/fund-a-program.md): Add funds to a program's wallet for a PREFUNDED asset. - [Burn program balance](https://docs.scrip.dev/api-reference/programs/burn-program-balance.md): Remove funds from a program's wallet for a PREFUNDED asset. - [Get program wallet transaction history](https://docs.scrip.dev/api-reference/programs/get-program-wallet-transaction-history.md): Retrieve transaction history for a program's wallet. - [Get program statement](https://docs.scrip.dev/api-reference/programs/get-program-statement.md): Return a running-balance statement of a program wallet's ledger activity for an asset. - [Folders](https://docs.scrip.dev/api-reference/folders/overview.md): Hierarchical containers for organizing programs within an organization - [List folders](https://docs.scrip.dev/api-reference/folders/list-folders.md): List folders in the organization, newest first. - [Create a folder](https://docs.scrip.dev/api-reference/folders/create-a-folder.md): Create a folder at the top level or under an active parent folder. - [Get a folder](https://docs.scrip.dev/api-reference/folders/get-a-folder.md): Retrieve a folder by ID with its ancestor chain. - [Update a folder](https://docs.scrip.dev/api-reference/folders/update-a-folder.md): Partially update, move, archive, or restore a folder. - [Assets](https://docs.scrip.dev/api-reference/assets/overview.md): Units of value that participants earn and spend - [List assets](https://docs.scrip.dev/api-reference/assets/list-assets.md): List assets in your organization. - [Create an asset](https://docs.scrip.dev/api-reference/assets/create-an-asset.md): Create an asset in your organization and link it to one or more programs. - [Get an asset](https://docs.scrip.dev/api-reference/assets/get-an-asset.md): Retrieve an asset by ID. - [Update an asset](https://docs.scrip.dev/api-reference/assets/update-an-asset.md): Update an asset's name, status, maximum transaction amount, or value per unit. - [Participants](https://docs.scrip.dev/api-reference/participants/overview.md): The people and accounts that earn and spend value - [List participants](https://docs.scrip.dev/api-reference/participants/list-or-get-participants.md): List participants in your organization. - [Create a participant](https://docs.scrip.dev/api-reference/participants/create-a-participant.md): Create or update a participant by `external_id`. - [Get a participant](https://docs.scrip.dev/api-reference/participants/get-a-participant-by-internal-id.md): Retrieve a participant with full details. - [Update a participant](https://docs.scrip.dev/api-reference/participants/update-a-participant.md): Update a participant's status, contact details, tags, attributes, and counters atomically. - [Get participant balances](https://docs.scrip.dev/api-reference/participants/get-participant-balances.md): Return a participant's balances by bucket, with their money value when the asset has a value_per_unit. - [Apply a balance operation](https://docs.scrip.dev/api-reference/participants/apply-a-balance-operation-to-a-participant.md): Adjust, hold, release, forfeit, void pending, or mature a participant's balance in one asset. - [List participant lots](https://docs.scrip.dev/api-reference/participants/list-participant-lots.md): List lots for a participant by asset. - [Get participant transaction history](https://docs.scrip.dev/api-reference/participants/get-participant-transaction-history.md): Retrieve transaction history for a participant. - [Get participant statement](https://docs.scrip.dev/api-reference/participants/get-participant-statement.md): Return a running-balance statement of a participant's ledger activity for an asset. - [List participant events](https://docs.scrip.dev/api-reference/participants/list-participant-events.md): Retrieve events for a participant. - [Get participant state history](https://docs.scrip.dev/api-reference/participants/get-participant-state-history.md): Retrieve a unified timeline of state changes across tags, counters, attributes, and tiers. - [Groups](https://docs.scrip.dev/api-reference/groups/overview.md): Collections of participants for team-based incentives - [List groups](https://docs.scrip.dev/api-reference/groups/list-groups.md): List all groups for your organization. - [Create a group](https://docs.scrip.dev/api-reference/groups/create-a-group.md): Create a participant group with initial members. - [Get a group](https://docs.scrip.dev/api-reference/groups/get-a-group.md): Retrieve a group by ID. - [Update a group](https://docs.scrip.dev/api-reference/groups/update-a-group.md): Update a group's name, status, tags, attributes, or counters atomically. - [List group members](https://docs.scrip.dev/api-reference/groups/list-group-members.md): List members in a group. - [Add a member to a group](https://docs.scrip.dev/api-reference/groups/add-a-member-to-a-group.md): Add one or more participants to a group. - [Remove a member from a group](https://docs.scrip.dev/api-reference/groups/remove-a-member-from-a-group.md): Remove a participant from a group. - [Update group member role](https://docs.scrip.dev/api-reference/groups/update-group-member-role.md): Update a member's role in a group. - [Get group balances](https://docs.scrip.dev/api-reference/groups/get-group-balances.md): Return the group's `available`, `held`, and `deferred` amounts for each asset. - [Apply a group balance operation](https://docs.scrip.dev/api-reference/groups/apply-a-balance-operation-to-a-group.md): Adjust, hold, release, or forfeit a group's balance in one asset. - [List group lots](https://docs.scrip.dev/api-reference/groups/list-group-lots.md): List lots for a group wallet by asset. - [Get group statement](https://docs.scrip.dev/api-reference/groups/get-group-statement.md): Return a running-balance statement of a group wallet's ledger activity for an asset. - [Get group state history](https://docs.scrip.dev/api-reference/groups/get-group-state-history.md): Retrieve a unified timeline of state changes across tags, counters, attributes, and tiers. - [State definitions](https://docs.scrip.dev/api-reference/state-definitions/overview.md): Organization-wide counter and tag metadata, badges, and rolling counter windows - [List counter and tag definitions](https://docs.scrip.dev/api-reference/rules/list-state-definitions.md): Returns the counter and tag definitions, with the label, description, icon and category of each key. - [Set a counter or tag's display fields](https://docs.scrip.dev/api-reference/rules/set-state-definition-display-fields.md): Replaces how a counter or tag is shown. No rule configuration change is needed. - [Rules](https://docs.scrip.dev/api-reference/rules/overview.md): Automated reward logic triggered by events - [List rules](https://docs.scrip.dev/api-reference/rules/list-rules.md): List rules for your organization, ordered by rule-set and rule execution order by default. - [Create a rule](https://docs.scrip.dev/api-reference/rules/create-a-rule.md): Create a rule that evaluates a CEL condition against incoming events and executes actions when matched. - [Get a rule](https://docs.scrip.dev/api-reference/rules/get-a-rule.md): Retrieve a rule by ID. - [Update a rule](https://docs.scrip.dev/api-reference/rules/update-a-rule.md): Partially update a rule. - [Move a rule](https://docs.scrip.dev/api-reference/rules/move-a-rule.md): Move a rule to a new position in the same or another rule set. - [Validate a CEL condition](https://docs.scrip.dev/api-reference/rules/validate-a-cel-condition.md): Check whether a CEL expression is syntactically valid without creating a rule. - [Simulate a rule](https://docs.scrip.dev/api-reference/rules/simulate-a-rule.md): Dry-run a saved rule against sample event data or a stored event without changing balances or state. - [Simulate a draft rule](https://docs.scrip.dev/api-reference/rules/simulate-a-draft-rule.md): Dry-run an unsaved rule against sample event data or a stored event without saving or modifying ledger state. - [Rule sets](https://docs.scrip.dev/api-reference/rule-sets/overview.md): Program-owned groups that define rule execution order - [List rule sets](https://docs.scrip.dev/api-reference/rule-sets/list-rule-sets.md): List a program's rule sets in execution order. - [Create a rule set](https://docs.scrip.dev/api-reference/rule-sets/create-a-rule-set.md): Create a rule set in a program. - [Get a rule set](https://docs.scrip.dev/api-reference/rule-sets/get-a-rule-set.md): Retrieve a rule set by ID. - [Update a rule set](https://docs.scrip.dev/api-reference/rule-sets/update-a-rule-set.md): Update a rule set's display name. - [Reorder all rule sets](https://docs.scrip.dev/api-reference/rules/reorder-rule-sets.md): Set the execution order of all rule sets in a program. - [Move a rule set](https://docs.scrip.dev/api-reference/rules/move-a-rule-set.md): Move a rule set to a new position in the program's execution order. - [Reorder rules in a rule set](https://docs.scrip.dev/api-reference/rules/reorder-rules-in-a-rule-set.md): Set the execution order of all `ACTIVE` and `SUSPENDED` rules in a rule set. - [Get rule configuration](https://docs.scrip.dev/api-reference/rules/get-rule-configuration.md): Retrieve a program's complete rule configuration. - [Analyze a rule configuration](https://docs.scrip.dev/api-reference/rules/analyze-rule-configuration.md): Analyze a program's current or proposed rule configuration for potential issues. - [Preview a rule-configuration change set](https://docs.scrip.dev/api-reference/rules/preview-rule-configuration.md): Preview a proposed rule configuration and return its planned changes, warnings, and preview token. - [Apply a rule-configuration change set](https://docs.scrip.dev/api-reference/rules/apply-rule-configuration.md): Apply a previewed rule configuration change set atomically. - [List rule-configuration revisions](https://docs.scrip.dev/api-reference/rules/list-rule-configuration-revisions.md): List a program's saved rule configuration revisions, newest first. - [Get a rule-configuration revision](https://docs.scrip.dev/api-reference/rules/get-rule-configuration-revision.md): Retrieve a saved rule configuration revision by version. - [Preview a rule-configuration rollback](https://docs.scrip.dev/api-reference/rules/preview-rule-configuration-rollback.md): Preview a change that restores the rule configuration of an earlier revision. - [Events](https://docs.scrip.dev/api-reference/events/overview.md): Signals from your app that trigger rule evaluation - [List events](https://docs.scrip.dev/api-reference/events/list-events.md): List events in your organization. - [Ingest an event](https://docs.scrip.dev/api-reference/events/ingest-an-event.md): Submit an event for asynchronous rule evaluation. - [Ingest events in batch](https://docs.scrip.dev/api-reference/events/ingest-events-in-batch.md): Submit up to 100 events in a single request for asynchronous rule evaluation. - [Get an event](https://docs.scrip.dev/api-reference/events/get-an-event.md): Retrieve a single event by ID, including processing status and rule evaluation results. - [Get event impact](https://docs.scrip.dev/api-reference/events/get-event-impact.md): Retrieve the rule evaluations, ledger entries, state changes, and balance impact for an event. - [Retry failed events](https://docs.scrip.dev/api-reference/events/retry-failed-events.md): Retry up to 250 failed events. - [Reverse an event's awards](https://docs.scrip.dev/api-reference/events/reverse-an-event.md): Reverse rewards credited by a completed event's rules. - [Tiers](https://docs.scrip.dev/api-reference/tiers/overview.md): Ranked progression tracks with qualification, retention, and downgrade policies - [List tiers](https://docs.scrip.dev/api-reference/tiers/list-tiers.md): List all tiers and their levels for a program. - [Create a tier](https://docs.scrip.dev/api-reference/tiers/create-a-tier.md): Create a tier with levels in a program. - [Get a tier](https://docs.scrip.dev/api-reference/tiers/get-a-tier.md): Retrieve a tier and its levels by key. - [Update a tier](https://docs.scrip.dev/api-reference/tiers/update-a-tier.md): Partially update a tier. - [List participant tiers](https://docs.scrip.dev/api-reference/tiers/list-participant-tiers.md): List a participant's tier levels in a program. - [Get participant tier](https://docs.scrip.dev/api-reference/tiers/get-participant-tier.md): Retrieve a participant's current level in a tier and their progress toward the next level. - [Set participant tier](https://docs.scrip.dev/api-reference/tiers/set-participant-tier.md): Directly set a participant's tier to a specific level, optionally with an expiration. - [Remove participant tier](https://docs.scrip.dev/api-reference/tiers/remove-participant-tier.md): Remove a participant's current tier level, downgrading them to base (rank 0). - [Rewards](https://docs.scrip.dev/api-reference/rewards/overview.md): Catalog items available for redemption - [List rewards](https://docs.scrip.dev/api-reference/rewards/list-rewards.md): List rewards for a program. - [Create a reward](https://docs.scrip.dev/api-reference/rewards/create-a-reward.md): Create a new reward in the program's catalog. - [Get a reward](https://docs.scrip.dev/api-reference/rewards/get-reward.md): Retrieve a specific reward by ID. - [Update a reward](https://docs.scrip.dev/api-reference/rewards/update-a-reward.md): Partially update a reward. - [List reward redemptions](https://docs.scrip.dev/api-reference/rewards/list-reward-redemptions.md): List redemptions of one reward, newest first, including the redeeming participant. - [Redemptions](https://docs.scrip.dev/api-reference/redemptions/overview.md): Spending participant balances for rewards or value - [Redeem an amount](https://docs.scrip.dev/api-reference/redemptions/redeem-points-assets.md): Redeem points, or a face value in money, from a participant's available balance. - [Redeem a catalog item](https://docs.scrip.dev/api-reference/redemptions/redeem-a-catalog-item.md): Redeem a catalog reward for a participant. - [List participant redemptions](https://docs.scrip.dev/api-reference/redemptions/list-participant-redemptions.md): List redemptions for a participant. - [Get a redemption](https://docs.scrip.dev/api-reference/redemptions/get-redemption.md): Retrieve a redemption by ID. - [Create a claim link](https://docs.scrip.dev/api-reference/redemptions/create-a-claim-link.md): Create a claim link for a successfully fulfilled redemption. - [Complete a pending redemption](https://docs.scrip.dev/api-reference/redemptions/complete-a-pending-redemption.md): Complete a pending redemption before it expires, and optionally record the provider order you booked. - [Fail a pending redemption](https://docs.scrip.dev/api-reference/redemptions/fail-a-pending-redemption.md): Release the points held for a pending redemption and mark it `FAILED`. - [Cancel a pending redemption](https://docs.scrip.dev/api-reference/redemptions/cancel-a-redemption.md): Cancel a pending redemption and release its held balance. - [Reverse a redemption](https://docs.scrip.dev/api-reference/redemptions/reverse-a-redemption.md): Reverse all or part of a redemption, returning points to the participant. - [Gift cards](https://docs.scrip.dev/api-reference/gift-cards/overview.md): Fulfillment accounts, reward sources, and product settings - [List fulfillment accounts](https://docs.scrip.dev/api-reference/gift-cards/list-fulfillment-accounts.md): List the organization's fulfillment accounts. - [Get a fulfillment account](https://docs.scrip.dev/api-reference/gift-cards/get-a-fulfillment-account.md): Fetch a fulfillment account by ID. - [List fulfillment products](https://docs.scrip.dev/api-reference/gift-cards/list-products.md): List the fulfillment account's products. - [List reward sources](https://docs.scrip.dev/api-reference/gift-cards/list-reward-sources.md): List a program's reward sources. - [Create a reward source](https://docs.scrip.dev/api-reference/gift-cards/create-a-reward-source.md): Add a fulfillment account's products to a program's rewards catalog. - [Get a reward source](https://docs.scrip.dev/api-reference/gift-cards/get-a-reward-source.md): Get a program's reward source. - [Update a reward source](https://docs.scrip.dev/api-reference/gift-cards/update-a-reward-source.md): Update a reward source's selection and pricing settings. - [List product settings](https://docs.scrip.dev/api-reference/gift-cards/list-product-settings.md): List the explicit product settings on a reward source. - [Set product settings](https://docs.scrip.dev/api-reference/gift-cards/set-product-settings.md): Replace a reward source's settings for one product. - [Clear product settings](https://docs.scrip.dev/api-reference/gift-cards/clear-product-settings.md): Clear a product override and restore the source's policy and filters. - [Transfers](https://docs.scrip.dev/api-reference/transfers/overview.md): Moving value between participants - [Create a transfer](https://docs.scrip.dev/api-reference/transfers/create-a-transfer.md): Transfer an asset from a participant or group to one or more recipients. - [Automations](https://docs.scrip.dev/api-reference/automations/overview.md): Stored event submissions fired on a trigger - [List automations](https://docs.scrip.dev/api-reference/automations/list-automations.md): List automations for a program. - [Create an automation](https://docs.scrip.dev/api-reference/automations/create-an-automation.md): Create an automation in a program. - [Get an automation](https://docs.scrip.dev/api-reference/automations/get-an-automation.md): Retrieve an automation by ID. - [Update an automation](https://docs.scrip.dev/api-reference/automations/update-an-automation.md): Partially update an automation. - [Cancel an automation](https://docs.scrip.dev/api-reference/automations/cancel-an-automation.md): Cancel a running automation execution. - [List automation subscriptions](https://docs.scrip.dev/api-reference/automations/list-automation-subscriptions.md): List the per-participant subscriptions of a PARTICIPANT_STATE automation. - [Reporting](https://docs.scrip.dev/api-reference/reporting/overview.md): Liability, redemption attribution, ledger summaries, failure causes, and the journal audit trail - [Get liability report](https://docs.scrip.dev/api-reference/reporting/get-liability-report.md): Return outstanding liability as of a point in time by asset and program. - [Get liability rollforward](https://docs.scrip.dev/api-reference/reporting/get-liability-rollforward.md): Return the period liability rollforward by asset and program, broken down by ledger action type. - [Get redemption attribution](https://docs.scrip.dev/api-reference/reporting/get-redemption-attribution.md): Return gross lot-mode redemption value by asset, redemption channel, and issuing program. - [Get expiration schedule](https://docs.scrip.dev/api-reference/reporting/get-expiration-schedule.md): Return when outstanding lot-mode liability expires across calendar buckets. - [Get ledger summary](https://docs.scrip.dev/api-reference/reporting/get-ledger-summary.md): Return aggregated balances and flows per asset. - [Get program activity](https://docs.scrip.dev/api-reference/reporting/get-program-activity.md): List rewards programs with their activity, per-asset totals and current balances. - [Get fulfillment cost report](https://docs.scrip.dev/api-reference/reporting/get-fulfillment-cost-report.md): Summarize fulfillment costs and redemption spend by program, status, currency, and reward kind. - [List failure causes](https://docs.scrip.dev/api-reference/reporting/list-failure-causes.md): List event failures by their first error code and current state, grouped by rewards program or across programs. - [List journal entries](https://docs.scrip.dev/api-reference/reporting/list-journal-entries.md): List journal entries with their double-entry postings. - [Get a journal entry](https://docs.scrip.dev/api-reference/reporting/get-a-journal-entry.md): Retrieve a journal entry by ID, including its double-entry postings. - [Webhooks](https://docs.scrip.dev/api-reference/webhooks/overview.md): Real-time HTTP notifications for domain events - [Event payloads](https://docs.scrip.dev/api-reference/webhooks/event-payloads.md): The data object each webhook event type delivers - [List webhook event types](https://docs.scrip.dev/api-reference/webhooks/list-webhook-event-types.md): List every webhook event type with its category and a sample `data` object. - [List webhook endpoints](https://docs.scrip.dev/api-reference/webhooks/list-webhook-endpoints.md): List all webhook endpoints for your organization. - [Create a webhook endpoint](https://docs.scrip.dev/api-reference/webhooks/create-a-webhook-endpoint.md): Register a URL to receive webhook notifications for selected event types. - [Get a webhook endpoint](https://docs.scrip.dev/api-reference/webhooks/get-a-webhook-endpoint.md): Retrieve a webhook endpoint by ID. - [Update a webhook endpoint](https://docs.scrip.dev/api-reference/webhooks/update-a-webhook-endpoint.md): Partially update a webhook endpoint. - [Rotate endpoint secret](https://docs.scrip.dev/api-reference/webhooks/rotate-webhook-endpoint-secret.md): Generate a new signing secret for a webhook endpoint. - [Send a test webhook](https://docs.scrip.dev/api-reference/webhooks/send-a-test-webhook.md): Send a signed test delivery of a sample webhook payload to an endpoint. - [List deliveries](https://docs.scrip.dev/api-reference/webhooks/list-webhook-deliveries.md): List delivery attempts for a specific webhook endpoint. - [Get a delivery](https://docs.scrip.dev/api-reference/webhooks/get-a-webhook-delivery.md): Retrieve a single delivery attempt including response body and error details. - [Resend a delivery](https://docs.scrip.dev/api-reference/webhooks/resend-a-webhook-delivery.md): Resend a terminal webhook delivery to its endpoint. - [MCP server](https://docs.scrip.dev/mcp/overview.md): Connect AI coding tools and assistants to your Scrip programs through a hosted MCP server. - [Connect a client](https://docs.scrip.dev/mcp/connect.md): Add Scrip MCP to Claude Code, Cursor, Claude, Zed, and other MCP clients. - [Tools](https://docs.scrip.dev/mcp/tools.md): Every tool exposed by the Scrip MCP server. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.