> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leapfinancial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart flow

> When to use the smart multi-corridor send flow and how to mint a minimal magic link

## When to use smart

Use **`smart`** when you want the lowest partner create payload and a full in-widget experience for corridor, amount, funding, and payout. It is the recommended starting point for new send integrations.

| You need…                | Prefer                                   |
| ------------------------ | ---------------------------------------- |
| Minimal create body      | `smart`                                  |
| Rich CIP/payout prefills | [`m2m`](/raas-widgets/flows/m2m)         |
| Ask someone else to pay  | [`request`](/raas-widgets/flows/request) |

Ensure `smart` is in your partner `allowedFlows`. Discover with `GET /partner/flows`.

## Minimal create

```bash theme={null}
curl -X POST https://raas-widgets-backend-sandbox.up.railway.app/partner/links \
  -H "X-API-Key: raas_sandbox_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "referenceId": "user_12345",
    "flow": "smart",
    "expiresInMinutes": 60,
    "language": "es"
  }'
```

```json theme={null}
{
  "success": true,
  "data": {
    "linkId": "link_yourpartner_a1b2c3d4e5f6",
    "referenceId": "user_12345",
    "url": "https://<smart-flow-host>/link_yourpartner_a1b2c3d4e5f6",
    "expiresAt": "2026-07-23T15:30:00.000Z"
  }
}
```

<Check>
  Deliver `data.url` to your user (SMS, email, or in-app WebView).
</Check>

## Optional envelope fields

You can still pass shared fields such as `externalId`, `metadata`, `theme`, `callbackUrl`, and `presentation` — see [Create links](/raas-widgets/guides/create-links).

## Next steps

<CardGroup cols={2}>
  <Card title="Quick start" icon="rocket" href="/raas-widgets/quickstart">
    End-to-end sandbox walkthrough with smart.
  </Card>

  <Card title="Create links" icon="link" href="/raas-widgets/guides/create-links">
    Discriminated union and shared envelope.
  </Card>
</CardGroup>
