
Pinme Email
If you're building PinMe Workers in TypeScript and need to send emails, this skill walks you through calling the platform's send_email API. It covers the environment variables that get auto-injected (API_KEY, BASE_URL), shows you how to structure the POST request with proper authentication headers, and includes a ready-to-use sendEmail helper function. The sender address is automatically set to your_project@pinme.cloud, which is convenient but might feel limiting if you want custom branding. Error handling gets decent coverage with a unified wrapper pattern for the platform's response format. Most useful when you're wiring up verification codes or transactional emails and want to avoid reinventing the fetch boilerplate.
- skills.sh installs
- 504
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add glitternetwork/pinme --skill pinme-email --agent claude-codeInstalls into .claude/skills of the current project.
Files
PinMe Worker Email API Integration
Guides how to call PinMe platform's email sending API in a PinMe Worker (TypeScript).
Environment Variables
The following environment variables are automatically injected when the Worker is created — no manual configuration needed:
// backend/src/worker.ts
export interface Env {
DB: D1Database;
API_KEY: string; // Project API Key — used for send_email authentication
BASE_URL?: string; // Optional override for PinMe API base URL, defaults to https://pinme.cloud
}
API_KEYis the sole credential for the Worker to call PinMe platform APIs. WhenBASE_URLis not set, it defaults tohttps://pinme.cloud.
Send Email API
Endpoint: POST {BASE_URL}/api/v4/send_email
Authentication: X-API-Key header (using env.API_KEY)
Sender: Automatically set to {project_name}@pinme.cloud
Request Format
{
"to": "user@example.com",
"subject": "Your verification code",
"html": "<p>Your code is <strong>123456</strong></p>"
}
Sponsors
Details
- Repository
- github.com/glitternetwork/pinme
- Category
- Backend & APIs
- License
- MIT
- First seen
- Jun 3, 2026