Serverless Developer Infrastructure

Future HTTP triggers for Next.js, Lambda & Workers. Zero servers.

Serverless execution environments are stateless and ephemeral. You cannot use `setTimeout` or maintain running background queues. Delaypi provides a single REST endpoint to schedule precision callbacks into your API routes.

Sub-Millisecond Egress

Fire your scheduling request within your route handler and return HTTP 200 immediately to the user without serverless cold start penalties.

AES-256 Auth Shield

Forward your internal Bearer secrets safely. Delaypi encrypts them at rest with AES-GCM and injects them only at the moment of dispatch.

Idempotency Guard

Pass an `Idempotency-Key` header to protect against duplicate scheduled jobs on serverless network retries.

Next.js Route Handler Example

// app/api/checkout/route.ts
import { NextResponse } from 'next/server';

export async function POST(req: Request) {
  const { cartId, userEmail } = await req.json();

  // Schedule an abandoned cart webhook in exactly 2 hours
  const runAt = new Date(Date.now() + 1000 * 60 * 60 * 2).toISOString();

  await fetch('https://api.delaypi.com/v1/dispatch', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.DELAYPI_API_KEY}`,
      'Content-Type': 'application/json',
      'Idempotency-Key': `cart_${cartId}`,
    },
    body: JSON.stringify({
      target_url: 'https://mysite.com/api/webhooks/abandoned-cart',
      run_at: runAt,
      payload: { cartId, userEmail },
    }),
  });

  return NextResponse.json({ success: true, cartId });
}

Build serverless timing workflows without limits.

Start building with 25 free dispatches.