Infrastructure primitives as APIs

Functions, queues, schedulers, cron, key-value and object storage. Pay per use. No servers to run.

Compose primitives
JavaScript
// Upload file → Store metadata → Enqueue job → Function processes

// 1. Get upload URL from Storage
const { uploadUrl } = await fetch('/v1/storage/upload-url', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer API_KEY' },
  body: JSON.stringify({ key: 'uploads/report.pdf' })
}).then(r => r.json());

// 2. Store metadata in KV
await fetch('/v1/kv/file:report.pdf', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer API_KEY' },
  body: JSON.stringify({ value: { uploaded: Date.now() } })
});

// 3. Enqueue processing job → triggers Function
await fetch('/v1/queue', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer API_KEY' },
  body: JSON.stringify({
    webhook: 'https://fn.rocketstack.dev/fn_process',
    payload: { file: 'report.pdf' }
  })
});

// 4. Schedule nightly sync via Cron
await fetch('/v1/cron', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer API_KEY' },
  body: JSON.stringify({
    expression: '0 2 * * *',
    webhook: 'https://fn.rocketstack.dev/fn_sync'
  })
});
Storage KV Queue Function
Compose Primitives highlighted: common flow

Primitives that work together

Queues trigger functions. Cron schedules jobs. KV stores state. Compose what you need — no glue code required.

  • Compose primitives:Build workflows without managing infra.
  • Reliable by default:Retries, timeouts, idempotency, audit trails.
  • Any stack:REST + SDKs generated from OpenAPI.

Start with a single API key.

The APIs

Build with powerful primitives

Functions, queues, schedulers, cron, storage — no infrastructure to run.

Functions API
# Deploy functions from an MCP-enabled client.

# Deploy a function via MCP
mcp.call("rocketstack.functions.deploy", {
  "name": "stripe-webhook",
  "runtime": "nodejs",
  "entry": "index.ts",
  "bundlePath": "./dist.zip",
  "triggers": [{ "type": "http" }]
})

# Get the deployed function
mcp.call("rocketstack.functions.get", { "id": "fn_123" })
# → { "id": "fn_123", "url": "https://fn.rocketstack.dev/fn_123", ... }

# List all functions
mcp.call("rocketstack.functions.list", {})

# Invoke a function
mcp.call("rocketstack.functions.invoke", {
  "id": "fn_123",
  "payload": { "event": "payment.success" }
})

SDKs for your stack

Official clients generated from our OpenAPI spec.

Use the same API key. Works across all primitives.

View SDK docs
Quick install:

Integrations

Deploy and manage via API, OpenAPI tooling, and MCP.

Works great for

vibe coded frontendswebhooksbackground jobsfile uploadsbilling events

Get started in 3 steps

Sign up, get your API key, and integrate in minutes.
    Sign up
    Sign upCreate your account at RocketStack.dev. No credit card required to start.
    Create free account
    Create free accountInstant key in your dashboard. Copy it and you're ready.
    Integrate
    IntegrateCall our REST APIs from your app. curl, fetch, or any HTTP client.

Common workflows

Compose primitives into reliable pipelines in minutes.

Webhook processing

WebhookQueueFunction

Absorb spikes, retry safely, and keep handlers fast.

View example

Scheduled jobs

CronFunctionKV

Run nightly syncs, reports, and cleanup without servers.

View example

File processing

StorageQueueFunction

Upload with presigned URLs, then process asynchronously.

View example

Examples use standard HTTP and generated SDKs.

Ready to ship faster?

Get your API key and start integrating in minutes.