---
title: Replit + BlindPay
description: 'Add stablecoin payments to a Replit app with Replit Agent: payout, on-ramp, and virtual-account flows via the BlindPay API and Replit Secrets.'
navigation:
  order: 4
faq:
  - q: How do I add stablecoin payments to a Replit app?
    a: Tell Replit Agent to integrate the BlindPay API using the prompt below, then add BLINDPAY_API_KEY and BLINDPAY_INSTANCE_ID in Replit Secrets. The agent scaffolds a backend route that calls BlindPay for quotes and payouts.
  - q: Does Replit Agent support the BlindPay API?
    a: Yes. Replit Agent can call any REST API. Give it the BlindPay prompt and credentials, and it generates the backend route plus UI for stablecoin payouts and on-ramps.
  - q: Where do I put my BlindPay API key in Replit?
    a: Use Replit Secrets (the lock icon / Tools → Secrets). Add BLINDPAY_API_KEY and BLINDPAY_INSTANCE_ID, then read them from the environment in your server code. Never hardcode the key.
howto:
  name: "Add stablecoin payments to a Replit app"
  steps:
    - name: "Get your credentials"
      text: "Copy your API key and instance ID from the BlindPay dashboard."
    - name: "Add Replit Secrets"
      text: "Open Tools → Secrets and add BLINDPAY_API_KEY and BLINDPAY_INSTANCE_ID."
    - name: "Prompt the agent"
      text: "Give Replit Agent the BlindPay prompt. It scaffolds a backend route and UI for stablecoin payouts."
---

[Replit](https://replit.com){target="_blank"} and Replit Agent build and host full-stack apps. This guide adds **stablecoin payments**: payouts, on-ramps, and virtual accounts: with the BlindPay REST API and Replit Secrets.

## Copy-paste prompt

Give this to Replit Agent:

```text [Replit Agent prompt]
Integrate stablecoin payments using the BlindPay API (https://api.blindpay.com).

- Add a backend route that creates a payout quote and executes a payout:
  POST /v1/instances/${BLINDPAY_INSTANCE_ID}/payouts/evm/quote and /payouts/evm.
- Authenticate with Authorization: Bearer ${BLINDPAY_API_KEY}.
- Read BLINDPAY_API_KEY and BLINDPAY_INSTANCE_ID from Replit Secrets (environment).
- Build a UI: enter a USDC amount and destination, show the live quote, send the payout.
- Keep the secret key server-side only.

Docs: https://blindpay.com/docs/getting-started/overview
```

## Setup

::c-steps

### Get your credentials

Copy your API key and instance ID from the [BlindPay dashboard](https://app.blindpay.com/sign-up){target="_blank"}.

### Add Replit Secrets

Open **Tools → Secrets** and add:

```bash [Replit Secrets]
BLINDPAY_API_KEY=your-api-key
BLINDPAY_INSTANCE_ID=your-instance-id
```

### Prompt the agent

Paste the prompt into Replit Agent. Review the generated route against the [API reference](https://api.blindpay.com/reference){target="_blank"}.

::

## Example server call

```ts [server]
const res = await fetch(
  `https://api.blindpay.com/v1/instances/${process.env.BLINDPAY_INSTANCE_ID}/payouts/evm/quote`,
  {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.BLINDPAY_API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ currency_type: 'sender', request_amount: 1000 }),
  },
)
const quote = await res.json()
```

::c-alert{icon="circle-info"}
Always read the key from Replit Secrets in server code. Never commit it or expose it in the client.
::


## Next steps

- [Quick start: stablecoin to fiat](/docs/getting-started/quick-start)
- [All AI builder integrations](/docs/integrations)
- [BlindPay for AI agents](/ai)
