Home/Tools/@tpmjs/tools-resend

createDomain

@tpmjs/tools-resend

Add a new sending domain to your Resend account.

Official
ops
v0.1.0
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
Validation error: The domain "test" is invalid. Please try again.

Last checked: 2/27/2026, 4:19:37 AM

Interactive Playground

Test @tpmjs/tools-resend (createDomain) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-resend
pnpm add @tpmjs/tools-resend
yarn add @tpmjs/tools-resend
bun add @tpmjs/tools-resend
deno add npm:@tpmjs/tools-resend

2. Import the tool

import { createDomain } from '@tpmjs/tools-resend';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createDomain } from '@tpmjs/tools-resend';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { createDomain },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Signature

(name: string, tls?: string, region?: string, open_tracking?: boolean, click_tracking?: boolean, custom_return_path?: string) => Promise<unknown>

Tags

account
add
agent
create
domain
email
new
ops
resend
sending
tpmjs
transactional

Parameters

Available configuration options

Auto-extracted
name
Required
Type: string

The domain name to add (e.g. "example.com").

region
Optional
Type: string

Region: us-east-1, eu-west-1, sa-east-1, or ap-northeast-1.

custom_return_path
Optional
Type: string

Subdomain for Return-Path (default: "send").

open_tracking
Optional
Type: boolean

Enable open rate tracking.

click_tracking
Optional
Type: boolean

Enable click tracking in HTML emails.

tls
Optional
Type: string

TLS mode: "opportunistic" or "enforced".

Schema extracted: 2/27/2026, 4:19:36 AM

README

ERROR: No README data found!

Statistics

Downloads/month

110

GitHub Stars

0

Quality Score

78%

Bundle Size

NPM Keywords

tpmjs
resend
email
transactional
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai