boundry.
RegionSydney, Australia
Documentation/supabase edge functions

Boundry with Supabase Edge Functions

Use the npm package in the Deno-based function and store BOUNDRY_API_KEY as a Supabase secret.

Install

This guide uses the official @boundry/sdk package. Its generated source is public on GitHub.

terminalShell
Shell
deno add npm:@boundry/sdk

Add the server-side helper

Store BOUNDRY_API_KEY in the framework’s secret or server environment. Never include a project key in browser code.

supabase/functions/send/index.ts
typescript
import Boundry from '@boundry/sdk';

const client = new Boundry({
  apiKey: Deno.env.get('BOUNDRY_API_KEY'),
});

export async function sendWelcomeEmail(to: string) {
  return client.emails.send({
    from: 'Acme <hello@acme.com>',
    to,
    subject: 'Welcome to Acme',
    html: '<p>It works.</p>',
  });
}

Production checklist

  • Send only from a domain verified in this regional project.
  • Move user-facing sends to the framework’s job system when available.
  • Reuse an idempotency key if you retry after an uncertain response.