# Create claimable sandboxes for your app-building platform's users

Use the Claimable Sandboxes API to set up Stripe for users of your app-building platform.

This guide is for app-building and coding platforms that use the Claimable Sandboxes API to create sandboxes for their users. To get a claimable sandbox for your own integration, run `stripe sandboxes create` in the [Stripe CLI](https://docs.stripe.com/cli/sandbox) instead.

A claimable sandbox is a [sandbox](https://docs.stripe.com/sandboxes.md) that doesn’t initially belong to a Stripe account. Use the [Claimable Sandboxes API](https://docs.stripe.com/api/v2/core/claimable-sandboxes.md) to create one, build a payment integration and give your user a Stripe-hosted onboarding link. Your user can then claim the sandbox into a new or existing Stripe account without losing the work you completed in it.

This guide uses a fictional agent-assisted coding platform and these entities:

- **Bizbot**: An agent-assisted coding platform.
- **`bizbot`**: Bizbot’s Stripe App.
- **Jenny Rosen**: A Bizbot user who builds a Stripe integration before they create or select a Stripe account.

## Before you begin

For this integration, you need:

- An activated, non-Connect live mode Stripe account that can publish a public *Stripe App* (An app that you can build on top of Stripe to customize the functionality of the Stripe Dashboard UI, leverage Stripe user data, store data on Stripe, and more).
- The Stripe CLI v1.52.0 or later with the [Stripe Apps CLI plugin](https://docs.stripe.com/stripe-apps/create-app.md#install-stripe-apps-cli) installed.
- A server-side back end and secure secrets storage, such as encrypted environment variables or a secrets manager.

## Understand why you need a Stripe App

The Claimable Sandboxes API uses Stripe Apps. When you create a claimable sandbox, Stripe installs your app in it. Your platform can then use its managed app sandbox to call Stripe APIs and receive events for your user’s sandbox. Your app can access only the resources covered by the permissions in its manifest.

After your user claims the sandbox, it belongs to their Stripe account. To give your platform access to their live account when they go live, your user installs the same app on that account. This separate live mode installation authorises your platform to access the live account and receive its events.

Your platform needs these app installations to maintain authorised connections to the sandbox and the live account. See [application permissions](https://docs.stripe.com/stripe-apps/how-stripe-apps-work.md#application-permissions)

## Create a Stripe App

Create a Stripe App before you use the Claimable Sandboxes API. The app authorises your platform to act in your user’s sandbox and access its data.

Stripe Apps doesn’t support public distribution on Connect platforms. Use a non-Connect live mode account for this integration.

[Install the Stripe CLI](https://docs.stripe.com/stripe-cli.md) v1.52.0 or later first. Then install the [Stripe Apps CLI plugin](https://docs.stripe.com/stripe-apps/create-app.md#install-stripe-apps-cli). The [Generate CLI plugin](https://docs.stripe.com/stripe-apps/create-app.md#install-generate-cli) creates your app’s initial project and configuration. Use `--shape claimable-sandboxes` to configure it for a claimable-sandbox integration. This guide uses `bizbot` as the example app ID. Choose a unique ID for your app.

```bash
# Install the Stripe Apps CLI plugin (v1.19.0 or later)
stripe plugin install apps

# Create your app
stripe generate app bizbot --shape claimable-sandboxes
```

The command creates a new app directory with a `stripe-app.yaml` [app manifest](https://docs.stripe.com/stripe-apps/reference/app-manifest.md). The generated manifest includes settings similar to this example:

```yaml
shapes:
  - claimable-sandboxes
declarations:
  distribution_type: public
  stripe_api_access:
    permissions:
      - permission: event_read
        purpose: Read lifecycle and authorization events for Bizbot users.
  stripe_api_access_type: platform
  sandbox_install_compatible: true
```

The `event_read` permission lets your platform retrieve lifecycle and authorisation event data for your users. Your app can request the additional [permissions](https://docs.stripe.com/stripe-apps/reference/permissions.md) that it needs to operate on the sandbox. Request only the permissions required for the functionality that your app provides. For example, showing a list of subscriptions requires the `subscription_read` permission.

After you configure the manifest, authenticate the Stripe CLI to your live mode account and [upload the app](https://docs.stripe.com/stripe-apps/upload-install-app.md) from your project root directory. When `stripe login` opens the browser, select your live account, not a sandbox:

```bash
stripe login
stripe apps upload
```

Live account uploads let users install your app on their live accounts later.

After you upload the app, Stripe automatically enables access to claimable sandboxes and emails you when setup is complete. Stripe also creates a [managed app sandbox](https://docs.stripe.com/stripe-apps/enable-sandbox-support.md#managed-sandbox) named after your app ID.

### Get your managed app sandbox API key

Use the managed app sandbox’s secret API key, not your live account’s key, to call the Claimable Sandboxes API:

1. In the Dashboard account picker, select **Switch to sandbox** > **Manage sandboxes** and open the sandbox named after your app ID.
2. In that sandbox, [open the API keys page](https://docs.stripe.com/sandboxes/dashboard/manage-access.md#manage-api-keys) and reveal the secret key.
3. Store the key in a server-side environment variable or secrets manager. Use it as `STRIPE_APP_SANDBOX_KEY` in the create request in this guide. Don’t embed secret keys in code. See [best practices for managing secret keys](https://docs.stripe.com/keys-best-practices.md).

Bizbot's live platform account owns the Stripe App and its managed app sandbox. The managed app sandbox authenticates Claimable Sandboxes API requests. (See full diagram at https://docs.stripe.com/sandboxes/claimable-sandboxes)

```text
[acct_bizbot_livemodePlatform live account] --> [acct_bizbot_sandboxManaged app sandbox]
```

### Use an existing Stripe App

We recommend creating a separate Stripe App for claimable sandboxes. Give the app a name and listing that clearly explain why users need to install it. Reusing an app for unrelated functions can make its role unclear and require more permissions and events than users expect.

To use an existing public app, merge these settings into its v2 [app manifest](https://docs.stripe.com/stripe-apps/reference/app-manifest.md), preserving existing permissions. If the app uses a v1 manifest, run `stripe apps migrate` first:

```yaml
shapes:
  - claimable-sandboxes
declarations:
  distribution_type: public
  stripe_api_access:
    permissions:
      - permission: event_read
        purpose: Read lifecycle and authorization events for Bizbot users.
  stripe_api_access_type: platform
  sandbox_install_compatible: true
```

Upload the updated app from your live account, then [submit it for review](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#review-and-publish), even if Stripe previously approved it. Your previous approval doesn’t cover claimable sandboxes.

## Set up the testing channel

Before you start development, set up an [external testing channel](https://docs.stripe.com/stripe-apps/test-app.md#set-up-test). You can then test the API without publishing your app.

Use the testing channel only for prototypes and end-to-end testing. It has **lower creation rate limits and allows at most 25 live mode installations**. Before you launch to users, [submit your app for review and publish it](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#review-and-publish). After Stripe approves the app and you publish the approved version, set [channel](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-channel) to `public` in your create requests.

## Create a claimable sandbox

Use the secret API key from your [managed app sandbox](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#get-your-managed-app-sandbox-api-key) to call the Claimable Sandboxes API. Don’t use your live account’s key.

```curl
curl -X POST https://api.stripe.com/v2/core/claimable_sandboxes \
  -H "Authorization: Bearer {{STRIPE_APP_SANDBOX_KEY}}" \
  -H "Stripe-Version: 2026-11-18.endive" \
  --json '{
    "channel": "testing",
    "enable_mcp_access": true,
    "onboarding_link_details": {
        "refresh_url": "https://bizbot.example/stripe/onboarding/refresh",
        "return_url": "https://bizbot.example/projects/project_123"
    },
    "prefill": {
        "email": "jenny.rosen@example.com",
        "name": "Jenny Plant Shop",
        "country": "US"
    }
  }'
```

Set these parameters when you create a claimable sandbox:

| Parameter | Description |
| --- | --- |
| [channel](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-channel) | Selects the Stripe App channel used to install your app in the sandbox. Use `testing` during development, as this guide does. Before you launch to users, [submit your app for review and publish it](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#review-and-publish), then use `public`. |
| [enable_mcp_access](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-enable_mcp_access) | Set to `true` to receive an optional restricted agent key for [Stripe MCP](https://docs.stripe.com/mcp.md). Set it to `false` if your integration doesn’t use MCP. |
| [onboarding_link_details.refresh_url](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-onboarding_link_details-refresh_url) | A required public URL that your user is redirected to when the onboarding link is expired or invalid. Your server must [renew the onboarding link](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#onboarding-links), then redirect your user to the new URL. |
| [onboarding_link_details.return_url](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-onboarding_link_details-return_url) | An optional public URL that your user is redirected to after successfully claiming the sandbox. |
| [prefill.email](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-prefill-email) | The user’s email address. When you create the sandbox, Stripe sends an onboarding link to this address and prepopulates it during the claim flow. If the sandbox remains unclaimed, Stripe also sends an expiration reminder seven days before it expires. |
| [prefill.country](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-prefill-country) | The two-letter country code for the sandbox. See [supported countries](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#check-country-availability). |
| [prefill.name](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-prefill-name) | An optional sandbox or business name of up to 100 characters. |

The create response looks like this:

```json
{
  "id": "clmsbx_test_123",
  "object": "v2.core.claimable_sandbox",
  "channel": "testing",
  "claimed_at": null,
  "created": "2026-09-30T18:00:00.000Z",
  "expires_at": "2026-11-29T18:00:00.000Z",
  "onboarding_link_details": {
    "expires_at": "2026-10-07T18:00:00.000Z",
    "refresh_url": "https://bizbot.example/stripe/onboarding/refresh",
    "return_url": "https://bizbot.example/projects/project_123",
    "url": "https://dashboard.stripe.com/onboard_sandbox/example_signature"
  },
  "owner_details": null,
  "prefill": {
    "email": "jenny.rosen@example.com",
    "name": "Jenny Plant Shop",
    "country": "US"
  },
  "sandbox_details": {
    "account": "acct_jenny_sandbox",
    "api_keys": {
      "secret": {
        "id": "mk_secret_123",
        "created": "2026-09-30T18:00:00.000Z",
        "status": "active",
        "type": "secret_key",
        "secret_key": {
          "token": "sk_test_example"
        }
      },
      "publishable": {
        "id": "mk_publishable_123",
        "created": "2026-09-30T18:00:00.000Z",
        "status": "active",
        "type": "publishable_key",
        "publishable_key": {
          "token": "pk_test_example"
        }
      },
      "mcp": {
        "id": "mk_mcp_123",
        "created": "2026-09-30T18:00:00.000Z",
        "status": "active",
        "type": "secret_key",
        "secret_key": {
          "token": "rk_test_example"
        }
      }
    }
  },
  "status": "unclaimed"
}
```

### Access the sandbox through your app

When you create a claimable sandbox, Stripe installs your app in it. This installation connects your platform to the sandbox so you can act in it on behalf of your user.

Bizbot's managed app sandbox connects to Jenny's unclaimed sandbox through the preinstalled sandbox version of the Stripe App. (See full diagram at https://docs.stripe.com/sandboxes/claimable-sandboxes)

```text
[acct_bizbot_livemodePlatform live account] --> [acct_bizbot_sandboxManaged app sandbox]
[acct_bizbot_sandboxManaged app sandbox] -- Sandbox app installed --> [acct_jenny_sandboxUnclaimed sandbox]
```

In this example, Stripe installs Bizbot’s app in `acct_jenny_sandbox`. Bizbot can then use its managed app sandbox, `acct_bizbot_sandbox`, to call APIs for `acct_jenny_sandbox` and receive its events.

For all request and response fields, see [Create a Claimable Sandbox](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md).

### Check country availability

Set [prefill.country](https://docs.stripe.com/api/v2/core/claimable-sandboxes/create.md#v2_create_claimable_sandboxes-prefill-country) to the country where you want Stripe to create the sandbox. The API supports these countries:

- AE
- AR
- AT
- AU
- BE
- BG
- BR
- CA
- CH
- CI
- CR
- CY
- CZ
- DE
- DK
- DO
- EE
- ES
- FI
- FR
- GB
- GI
- GR
- GT
- HK
- HR
- HU
- ID
- IE
- IN
- IT
- JP
- KR
- LI
- LT
- LU
- LV
- MT
- MX
- MY
- NL
- NO
- NZ
- PE
- PH
- PL
- PT
- RO
- RS
- SE
- SG
- SI
- SK
- SN
- TH
- TT
- US
- UY

### Use API keys and authentication

The [sandbox_details.api_keys](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-sandbox_details-api_keys) property contains [secret](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-sandbox_details-api_keys-secret), [publishable](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-sandbox_details-api_keys-publishable) and optional [mcp](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-sandbox_details-api_keys-mcp) keys. Stripe returns plaintext tokens only in the create response, not in subsequent retrieve requests. Save them immediately in secure server-side storage.

The keys and authentication method that you use depend on the entity performing the action:

- LLM agents that act on behalf of the user must use [MCP tools](https://docs.stripe.com/mcp.md#tools) with the MCP key.
- Deterministic code in your platform, for example code that retrieves payment data to build a dashboard that lists payments, must [call APIs](https://docs.stripe.com/stripe-apps/build-backend.md#using-stripe-apis) on the sandbox using [Stripe Apps authentication](https://docs.stripe.com/stripe-apps/build-backend.md#authenticate-requests). Stripe limits access to the permissions that you originally requested in your manifest.
- The API response returns the `publishable` and `secret` keys for your platform to populate the end user’s application, for example through an `.env` file. When an end user of a generated application creates a payment, those API calls use the `secret` and `publishable` keys.

> This MCP key expires seven days after a user claims the sandbox. Follow the [MCP authorisation specification](https://modelcontextprotocol.io/specification/draft/basic/authorization) to make sure your platform can handle expired keys.

### Handle sandbox expiry

A claimable sandbox expires after 60 days. Check its top-level [expires_at](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-expires_at) property for the exact time. Seven days before expiry, Stripe emails your user a reminder to claim it. If your user doesn’t claim it within 60 days, Stripe permanently deletes it.

### Handle creation limits

Stripe applies channel-specific rate limits and rolling 30-day quotas to sandbox creation to protect service availability and prevent abuse. See [Handle limits](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#limits) for error handling guidance.

## Use onboarding links

The [onboarding_link_details.url](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-onboarding_link_details-url) property contains the claimable sandbox onboarding link. It directs your user to their next required step in the Dashboard:

- **Claim the sandbox**: If the sandbox is unclaimed, the link opens the claim flow.
- **Onboard the account**: If your user claimed the sandbox into a new account but hasn’t completed onboarding, the link opens the account application.
- **Install your app**: If your app isn’t installed on the owner account, the link opens the live mode installation flow.

The link expires after seven days. Check [onboarding_link_details.expires_at](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-onboarding_link_details-expires_at) for its exact expiry time. If your user opens an expired link, Stripe redirects them to [onboarding_link_details.refresh_url](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-onboarding_link_details-refresh_url).

At that URL, your server must call the [renew onboarding link API](https://docs.stripe.com/api/v2/core/claimable-sandboxes/renew-onboarding-link.md). When your server receives the new URL, redirect your user to it. The renewed link expires after another seven days.

You can renew the link only while the claimable sandbox’s [status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-status) is `unclaimed` or `claimed`.

## Have your user claim the sandbox

When your user is ready, send them to the onboarding URL. In the Dashboard, they can claim the sandbox into an existing live account or create a new account. Stripe then transfers the sandbox to that account.

After your user claims the sandbox, Stripe sends your platform a [v2.core.claimable_sandbox.claimed](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.claimed) event and changes the sandbox’s [status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-status) to `claimed`. To receive this event and later lifecycle updates, [set up event destinations](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#event-destinations).

Stripe also populates [owner_details](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-owner_details) immediately after the claim. The value of [owner_details.app_install_status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-owner_details-app_install_status) depends on the live account:

- **`pending_onboarding`:** Your user created a new account and hasn’t completed account onboarding.
- **`pending_install`:** Your user claimed the sandbox into an existing live account that doesn’t have your app installed.
- **`installed`:** Your user claimed the sandbox into an existing live account that already has your app installed. Stripe also changes the claimable sandbox’s [status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-status) to `live`.

If your user claims the sandbox into a new account, the resource looks like this:

```json
{
   "id": "clmsbx_test_123",
   "object": "v2.core.claimable_sandbox",
   "channel": "testing",
   "claimed_at": "2026-09-30T21:00:00.000Z",
   "created": "2026-09-30T18:00:00.000Z",
   "expires_at": null,
   "onboarding_link_details": {
      "expires_at": "2026-10-07T18:00:00.000Z",
      "refresh_url": "https://bizbot.example/stripe/onboarding/refresh",
      "return_url": "https://bizbot.example/projects/project_123",
      "url": "https://dashboard.stripe.com/onboard_sandbox/example_signature"
   },
   "owner_details": {
      "account": null,
      "app_install_status": "pending_onboarding"
   },
   "prefill": {
      "email": "jenny.rosen@example.com",
      "name": "Jenny Plant Shop",
      "country": "US"
   },
   "sandbox_details": {
      "account": "acct_jenny_sandbox",
      "api_keys": null
   },
   "status": "claimed"
}
```

The new account owns the sandbox, but your user still needs to onboard the account:

This diagram shows that the managed app sandbox of Bizbot has a connection to the claimed sandbox for Jenny Rosen (See full diagram at https://docs.stripe.com/sandboxes/claimable-sandboxes)

```text
[acct_bizbot_livemodeLive account] --> [acct_bizbot_sandboxManaged app sandbox]
[acct_bizbot_sandboxManaged app sandbox] -- Sandbox app installed --> [acct_jenny_sandboxClaimed sandbox]
[acct_jenny_livemodeOwner account (not yet onboarded)] --> [acct_jenny_sandboxClaimed sandbox]
```

## Have your user onboard the account

If your user claims the sandbox into a new account, they must submit the account application before they go live.

After they claim the sandbox, the onboarding link directs them to the account application in the Dashboard. When your user submits the application, Stripe sends your platform a [v2.core.claimable_sandbox.updated](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.updated) event. The event shows that [owner_details.app_install_status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-owner_details-app_install_status) has changed to `pending_install`.

Immediately after the user submits the account application, Stripe prompts them to copy resources from the sandbox to the live mode account. These resources include the installation of your Stripe App and objects created in the sandbox, such as Payment Links and Products.

The account now owns the sandbox and has completed onboarding:

This diagram shows that the managed app sandbox of Bizbot has a connection to the claimed sandbox for Jenny Rosen, and the live account is onboarded (See full diagram at https://docs.stripe.com/sandboxes/claimable-sandboxes)

```text
[acct_bizbot_livemodeLive account] --> [acct_bizbot_sandboxManaged app sandbox]
[acct_bizbot_sandboxManaged app sandbox] -- Sandbox app installed --> [acct_jenny_sandboxClaimed sandbox]
[acct_jenny_livemodeOwner account (onboarded)] --> [acct_jenny_sandboxClaimed sandbox]
```

## Have your user install the app on the live account

After your user submits the account application, Stripe prompts them to install your Stripe App on their live account. When they install it, Stripe sends your platform another [v2.core.claimable_sandbox.updated](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.updated) event. The resource changes in three ways:

- [status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-status) changes to `live`. The claimable sandbox has completed its lifecycle. Stripe doesn’t change this status again.
- [owner_details.app_install_status](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-owner_details-app_install_status) changes to `installed`.
- [owner_details.account](https://docs.stripe.com/api/v2/core/claimable-sandboxes/object.md#v2_claimable_sandbox_object-owner_details-account) contains the owner account ID.

At this point, your claimable sandbox integration has completed its lifecycle for this user. The resource looks like this:

```json
{
   "id": "clmsbx_test_123",
   "object": "v2.core.claimable_sandbox",
   "channel": "testing",
   "claimed_at": "2026-09-30T21:00:00.000Z",
   "created": "2026-09-30T18:00:00.000Z",
   "expires_at": null,
   "onboarding_link_details": null,
   "owner_details": {
      "account": "acct_jenny_livemode",
      "app_install_status": "installed"
   },
   "prefill": {
      "email": "jenny.rosen@example.com",
      "name": "Jenny Plant Shop",
      "country": "US"
   },
   "sandbox_details": {
      "account": "acct_jenny_sandbox",
      "api_keys": null
   },
   "status": "live"
}
```

The following diagram shows the final account structure.

This shows the relationship between the 4 different Stripe accounts. The live mode Bizbot account can access Jenny's live mode account. The sandbox app can access Jenny's sandbox. (See full diagram at https://docs.stripe.com/sandboxes/claimable-sandboxes)

```text
[acct_bizbot_livemodeLive account] --> [acct_bizbot_sandboxManaged app sandbox]
[acct_bizbot_sandboxManaged app sandbox] -- Sandbox app installed --> [acct_jenny_sandboxClaimed sandbox]
[acct_bizbot_livemodeLive account] -- Live mode app installed --> [acct_jenny_livemodeOwner account (onboarded)]
[acct_jenny_livemodeOwner account (onboarded)] --> [acct_jenny_sandboxClaimed sandbox]
```

Your platform can now act in both accounts on your user’s behalf, subject to your app’s permissions. In this example, Bizbot’s live account, `acct_bizbot_livemode`, can call APIs for Jenny’s live account, `acct_jenny_livemode` and receive its events. Bizbot’s managed app sandbox, `acct_bizbot_sandbox`, can similarly access Jenny’s sandbox, `acct_jenny_sandbox`. See [application permissions](https://docs.stripe.com/stripe-apps/how-stripe-apps-work.md#application-permissions)

## Submit your app for review and publish

Complete this checklist before submitting your app for review:

- [ ] Provide accurate product details, support information, privacy disclosures and review instructions. See [app listing requirements](https://docs.stripe.com/stripe-apps/publish-app.md#write-your-listing).

- [ ] For **Marketplace install option**, select **Redirect to your website**.

- [ ] Set **Marketplace install URL** to a page on your platform’s external website that explains or starts the claimable sandbox flow, and set **Call to action** to **Go to partner site**.

- [ ] In **Testing credentials**, provide credentials for a dedicated platform test account that reviewers can access. Enable claimable sandboxes for the account and preload enough credits or tokens to complete the test.

- [ ] In **Testing guidance**, provide a precise prompt that triggers the claimable sandbox flow. For example: “Create a full-stack web app for my plant shop and add Stripe Checkout to accept payments.”

- [ ] If you repurposed an existing public app, submit the version that includes claimable sandboxes for review. A previous approval doesn’t include approval to use this feature.

[Submit your app](https://docs.stripe.com/stripe-apps/publish-app.md) and address any review feedback. After Stripe approves the version, publish it. Then change your create request from `channel: testing` to `channel: public`.

> Don’t launch with `channel: testing`. It has lower creation rate limits and allows at most 25 live mode installations.

For future updates to the app, you can [test the new app version](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#testing-new-app-versions) before you submit and publish it.

## Optional: Handle limits

Stripe applies creation rate limits for each app channel. If you exceed the rate limit, the API returns a `429` response. Follow the [guidance for handling rate limits](https://docs.stripe.com/rate-limits.md#handling-limiting-gracefully) to handle `429` responses. The default limits are:

| App channel | Per-minute limit | Per-hour limit |
| --- | --- | --- |
| `testing` | 2 | 5 |
| `public` | 4 | 50 |

Stripe also limits each app platform to 5,000 claimable sandboxes in a rolling 30-day period.

| Error code | Status | Meaning | Action |
| --- | --- | --- | --- |
| `claimable_sandbox_creation_rate_limit_exceeded` | `429` | Your platform exceeded the creation rate limit for the public channel. | Retry later. |
| `claimable_sandbox_testing_creation_rate_limit_exceeded` | `429` | Your platform exceeded the lower creation rate limit for the testing channel. | Retry later. Before you launch, complete app review, publish the app and use `channel: public`. |
| `claimable_sandbox_monthly_quota_exceeded` | `400` | Your platform reached its rolling 30-day claimable sandbox creation quota. | Stop creating sandboxes until the quota has capacity. |
| `claimable_sandbox_app_testing_channel_install_limit_exceeded` | `400` | Your app’s testing version reached its live mode installation limit. You can’t create more claimable sandboxes in the testing channel. | If you’re still testing, remove unused testing installations to free capacity. For production, publish the approved app and use `channel: public`. |

If you need higher limits, contact Stripe Support with your expected request volume and business justification. Stripe reviews each request individually.

## Optional: Set up event destinations

Configure event destinations to track claimable sandbox lifecycle changes and receive events from your users’ sandbox and live accounts. [Verify webhook signatures](https://docs.stripe.com/events/manage-webhook-endpoints.md#verify-events) before processing events. If you restrict incoming traffic by IP address, use [Stripe’s public IP addresses](https://docs.stripe.com/ips.md) for your allowlist.

If creating event destinations in the Dashboard, select **Your account** to receive claimable sandbox lifecycle and app installation events. Select **Connected accounts** to receive resource events from accounts where your app is installed. This option includes accounts connected through Stripe Apps. It doesn’t require a Connect integration.

Most integrations need the following event destinations:

| Configure on | Listen to events on | Receives | Event format |
| --- | --- | --- | --- |
| Managed app sandbox | Your account | Claimable sandbox lifecycle events, such as [v2.core.claimable_sandbox.claimed](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.claimed), and [app installation events](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#track-app-installations) for users’ claimable sandboxes. | Thin and snapshot events |
| Platform live account | Your account | [App installation events](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#track-app-installations) for users’ live accounts. | Snapshot events in most cases |
| Managed app sandbox | Connected accounts | Resource events from users’ claimable sandboxes, such as [product.created](https://docs.stripe.com/api/events/types.md#event_types-product.created). | Snapshot events in most cases |
| Platform live account | Connected accounts | Resource events from users’ live accounts after they install your app. | Snapshot events in most cases |

Choose the destinations and event types your integration needs for the resources it uses.

### Listen for claimable sandbox lifecycle events

Stripe sends claimable sandbox lifecycle events as account events to the managed app sandbox that created the resource. Configure an account event destination on that managed app sandbox and subscribe to these thin events:

- [v2.core.claimable_sandbox.created](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.created)
- [v2.core.claimable_sandbox.claimed](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.claimed)
- [v2.core.claimable_sandbox.updated](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.updated)
- [v2.core.claimable_sandbox.expiring](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.expiring)
- [v2.core.claimable_sandbox.expired](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md#v2_claimable_sandboxes_event_types-v2.core.claimable_sandbox.expired)

Thin events contain limited information about a change. When your event handler needs the current lifecycle state, use the event’s related object ID to [retrieve the claimable sandbox](https://docs.stripe.com/api/v2/core/claimable-sandboxes/retrieve.md).

See [claimable sandbox event types](https://docs.stripe.com/api/v2/core/claimable-sandboxes/event-types.md) for the complete event reference.

### Listen for events from users’ accounts

Configure separate event destinations for resource activity in your users’ live accounts and sandboxes:

1. In your managed app sandbox, create an event destination that listens to events on **Connected accounts**. This destination receives events from users’ claimable sandbox accounts.
2. In your platform live account, create another event destination that listens to events on **Connected accounts**. This destination receives events from users’ live accounts after they install your app.
3. Subscribe each destination to the event types your integration needs.

For example, subscribe both destinations to `product.created` if you need to know when someone creates a product. The managed app sandbox destination receives events from claimable sandboxes. The live destination receives events from your users’ live accounts.

Most resource events from your users’ accounts use the snapshot format. When you create a destination, select the [event format](https://docs.stripe.com/events/how-events-work.md#event-formats) required by its event types.

Your Stripe App must have permission to read each event and its related resources. Add `event_read` and the applicable resource-specific [permissions](https://docs.stripe.com/stripe-apps/reference/permissions.md) to your app manifest.

### Track app installations

Subscribe to app installation events to track whether your app remains installed on each sandbox and live account. These events describe changes to an [App Install object](https://docs.stripe.com/api/apps/installs.md):

- [apps.install.created](https://docs.stripe.com/api/events/types.md#event_types-apps.install.created)
- [apps.install.updated](https://docs.stripe.com/api/events/types.md#event_types-apps.install.updated)
- [apps.install.deleted](https://docs.stripe.com/api/events/types.md#event_types-apps.install.deleted)

Your platform can access an account only while its Stripe App installation remains active. Subscribe to [apps.install.deleted](https://docs.stripe.com/api/events/types.md#event_types-apps.install.deleted) to detect when your user removes that connection.

Configure account event destinations in both environments:

- On the managed app sandbox, listen for app installation events related to users’ claimable sandboxes.
- On the platform live account, listen for app installation events related to users’ live accounts.

When you receive `apps.install.deleted`, use the stored app installation ID to identify the affected account. Mark its app connection as inactive, stop making API calls through that connection and stop expecting resource events from it. Before you try another action, prompt your user to reinstall or reauthorise your app.

> #### Lifecycle status doesn't show current authorisation
> 
> A claimable sandbox with `status: live` and `owner_details.app_install_status: installed` shows that your user completed the lifecycle and had your app installed at that time. These values don’t confirm that the app remains installed. Use app installation events to track its current authorisation state.

You can also [list App Installs](https://docs.stripe.com/api/apps/installs/list.md) to reconcile the installation state stored by your integration.

## Optional: Test a new app version

Test each new version before you publish it:

1. [Update your app’s test version](https://docs.stripe.com/stripe-apps/test-app.md#update-test-version).
2. [Create a claimable sandbox](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#api) with `channel: testing`. Stripe installs the new app version in the sandbox.

After you verify the version, [submit it for review and publish it](https://docs.stripe.com/sandboxes/claimable-sandboxes.md#review-and-publish) before you launch it to users. Use `channel: public` when you create claimable sandboxes in production.

## See also

- [Claimable Sandboxes API](https://docs.stripe.com/api/v2/core/claimable-sandboxes.md)
- [Create a Stripe App](https://docs.stripe.com/stripe-apps/create-app.md)
- [Listen for Stripe Apps events](https://docs.stripe.com/stripe-apps/events.md)
