Tooluck logoTooluck
SKILL.md

pinme-email

Agent skill fromglitternetwork/pinme

Use this skill when a PinMe project (Worker TypeScript) needs to integrate email sending (send_email). Guides AI to generate correct Worker TS code.

How to install pinme-email

install pinme-email
# install the pinme pack with the skills CLI
npx skills add glitternetwork/pinme

# or add only this skill to Claude Code: copy the folder

skills/pinme-email/

# into

~/.claude/skills/pinme-email/ (all projects)

.claude/skills/pinme-email/ (one project)

skills/pinme-email/SKILL.md

MITFull file
1# PinMe Worker Email API Integration
2
3Guides how to call PinMe platform's email sending API in a PinMe Worker (TypeScript).
4
5## Environment Variables
6
7The following environment variables are automatically injected when the Worker is created — no manual configuration needed:
8
9```typescript
10// backend/src/worker.ts
11export interface Env {
12 DB: D1Database;
13 API_KEY: string; // Project API Key — used for send_email authentication
14 BASE_URL?: string; // Optional override for PinMe API base URL, defaults to https://pinme.cloud
15}
16```
17
18> `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`.
19
20---
21
22## Send Email API
23
24**Endpoint:** `POST {BASE_URL}/api/v4/send_email`
25**Authentication:** `X-API-Key` header (using `env.API_KEY`)
26**Sender:** Automatically set to `{project_name}@pinme.cloud`
27
28### Request Format
29
30```json
31{
32 "to": "user@example.com",
33 "subject": "Your verification code",
34 "html": "<p>Your code is <strong>123456</strong></p>"
35}
36```
37
38| Field | Type | Required | Description |
39|-------|------|----------|-------------|
40| `to` | string | Yes | Recipient email address |
41| `subject` | string | Yes | Email subject |
42| `html` | string | Yes | HTML body |
43
44### Response Format
45
46**Success (200):**
47```json
48{ "code": 200, "msg": "ok", "data": { "ok": true } }
49```
50
51**Errors:**
52
53| HTTP Status | Meaning | data.error Example |
54|-------------|---------|-------------------|
55…

Excerpt shown under the repository's MIT license.

More skills in pinme

Keep exploring

Similar skill repositories

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates