All docs pages
Docs

Outside services

Calls to other services, such as payments, email or maps, limited to the hosts the app lists.

In stackly.json and the CLI it is external-apis. It has no price of its own; see What features cost.

external-apis · optional · needs backend · Workers fetch with Stackly's outbound allowlist

Calls to other services, such as payments, maps or a CRM, limited to the hosts the app lists.

Turn it on

"features": ["backend", "external-apis"],
"outbound": ["api.stripe.com"],
"secrets": [{ "name": "STRIPE_SECRET_KEY", "description": "Stripe secret key" }]

Use it

import { env } from "cloudflare:workers";

const response = await fetch("https://api.stripe.com/v1/customers", {
  headers: { Authorization: `Bearer ${env.STRIPE_SECRET_KEY}` },
});
if (!response.ok) throw new Error(`Stripe answered ${response.status}`);
  • Live sends only over https to a host in "outbound". *.example.com matches only subdomains. Add only the hosts the app needs.
  • Any other request gets a 403 with x-stackly-outbound: blocked. Live does not follow redirects.
  • Read keys from secrets, never from code. Wrap slow or costly answers in cache.
  • Only for jobs no Stackly feature does. Check "Stackly features first" in SKILL.md: email, files, sign-in, jobs, search, cache, realtime and the rest have their own feature. Use an outside service for those only when the owner names it.

Locally

stackly dev and the draft hold outgoing requests and show them in the outbox (stackly outbox); only live sends. The list is part of each release, so a change takes effect when the owner publishes.

All app features