---
title: Outbound fetch
description: "fetch() only reaches hosts explicitly listed in the outbound allowlist."
---

## Configuration

```jsonc
"outbound": ["api.stripe.com", "hooks.slack.com"]
```

## Usage

```js
const res = fetch("https://api.stripe.com/v1/charges", {
  method: "POST",
  headers: { authorization: "Bearer " + env.STRIPE_KEY },
  body,
});
```

:::warning
`fetch()` fails unless the exact host appears in `outbound`. The call runs synchronously through the broker.
:::

## Related

- [Platform limits](/platform/limits) — the 32 MiB response body cap
- [Service bindings](/bindings/service-bindings) — calling another deployment on the same node instead, which does not go through `outbound`
