pinme-email
Use this skill when a PinMe project (Worker TypeScript) needs to integrate email sending (send_email). Guides AI to generate correct Worker TS code.
By glitternetwork · 476 installs
npx skills add glitternetwork/pinme --skill pinme-email
Source repository · Upstream listing
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:
API KEY is the sole credential for the Worker to call PinMe platform APIs. When BASE URL is not set, it defaults to https://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
Field Type Required Description
to string Yes Recipient email address
subject string Yes Email subject
html string Yes HTML body
Response Format
Success (200):
Errors:
HTTP Status Meaning data.error Example
401 API Key missing or invalid "X API Key header is required" / "Invalid API key"
400 Parameter validation failed "Invalid email address" / "Subject is required"
500 Email service error "Failed to send email"
Worker Example Code
Error Handling Pattern
PinMe platform API unified response format:
Recommended Unified Error Handler
Usage Example