Home/Tools/@tpmjs/tools-resend

createApiKey

@tpmjs/tools-resend

Create a new API key with specified permissions.

Official
ops
v0.1.0
MIT

Interactive Playground

Test @tpmjs/tools-resend (createApiKey) 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 { createApiKey } from '@tpmjs/tools-resend';

3. Use with AI SDK

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

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

console.log(result.text);

Signature

(name: string, domain_id?: string, permission?: string) => Promise<unknown>

Tags

agent
api
create
email
key
new
ops
permissions
resend
specified
tpmjs
transactional

Parameters

Available configuration options

Auto-extracted
name
Required
Type: string

Name for the API key (max 50 characters).

permission
Optional
Type: string

Permission: "full_access" or "sending_access".

domain_id
Optional
Type: string

Restrict to a domain (only for sending_access).

Schema extracted: 3/1/2026, 4:28:16 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