pinme-api

Featured

Use this skill when a PinMe project (Worker TypeScript) needs to integrate email sending (send_email) or LLM API calls (chat/completions). Guides AI to generate correct Worker TS code.

API & Backend 3,540 stars 258 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PinMe Worker API Integration Guides how to call PinMe platform's email sending and LLM APIs in a PinMe Worker (TypeScript). ## Environment Variables The following environment variables are automatically injected when the Worker is created — no manual configuration needed: ```typescript // backend/src/worker.ts export interface Env { DB: D1Database; API_KEY: string; // Project API Key — used for send_email and chat/completions authentication BASE_URL?: string; // Optional override for PinMe API base URL, defaults to https://pinme.dev } ``` > `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.dev`. --- ## API 1: Send Email **Endpoint:** `POST {BASE_URL}/api/v4/send_email` **Authentication:** `X-API-Key` header (using `env.API_KEY`) **Sender:** Automatically set to `{project_name}@pinme.dev` ### Request Format ```json { "to": "user@example.com", "subject": "Your verification code", "html": "<p>Your code is <strong>123456</strong></p>" } ``` | Field | Type | Required | Description | |-------|------|----------|-------------| | `to` | string | Yes | Recipient email address | | `subject` | string | Yes | Email subject | | `html` | string | Yes | HTML body | ### Response Format **Success (200):** ```json { "code": 200, "msg": "ok", "data": { "ok": true } } ``` **Errors:** | HTTP Status | Meaning | data.error Example | |-------------|---------|-------------------| |...

Details

Author
glitternetwork
Repository
glitternetwork/pinme
Created
1 years ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category