pinme-email

Generate TypeScript code calling PinMe's send_email API with X-API-Key authentication.

1|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/glitternetwork/pinme-worker-template --skill pinme-email
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pinme-email
Source: https://github.com/glitternetwork/pinme-worker-template/tree/main/skills/pinme-email
Command: npx skills add https://github.com/glitternetwork/pinme-worker-template --skill pinme-email

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of wiring email delivery into a PinMe Worker, so you can trigger transactional messages directly from backend TypeScript code without guessing the API contract.

Core Features & Use Cases

  • Platform Email Integration: Builds the correct request to PinMe's send_email endpoint with the required authentication header.
  • Worker Environment Guidance: Uses the injected Env shape with API_KEY and optional BASE_URL so the implementation matches the runtime setup.
  • Error Handling Pattern: Shows how to read PinMe response codes and surface meaningful failures for retries or user feedback.
  • Use Case: A verification flow can generate a code, send it to a user, and return a structured success or error response from the Worker.

Quick Start

Ask the assistant to add PinMe email sending to my Worker route and return TypeScript code that sends a verification email with env.API_KEY.

Frequently Asked Questions about pinme-email

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send transactional emails from a Cloudflare Worker in TypeScript?

To send transactional emails from a Cloudflare Worker, generate TypeScript code that calls the PinMe send_email API, authenticating via the X-API-Key header using your env.API_KEY and passing a JSON payload with to, subject, and html fields.

What is the required payload format for the PinMe email API?

The PinMe email API requires a JSON payload containing the to, subject, and html fields. You must also include the X-API-Key header for authentication using your injected environment variable.

Can I override the default endpoint URL when sending PinMe emails from a Worker?

Yes, you can override the default endpoint URL when sending PinMe emails by utilizing the optional BASE_URL environment variable in your TypeScript Worker setup.

How should I handle API response codes when integrating email delivery into my Worker?

Handle API response codes by reading the PinMe response status in your Worker code to surface meaningful failures, enabling structured error responses or retry logic for failed email delivery attempts.

What's the best way to trigger a verification email flow using a Cloudflare Worker?

Trigger a verification email flow by generating a code in your Worker, calling the PinMe send_email API with the user's address, and returning a structured success or error response directly from the route.