pinme-api

Generate Worker TypeScript code for authenticated PinMe email and LLM API calls.

3.7k|272|Updated Apr 13, 2025
One-click install
npx skills add https://github.com/glitternetwork/pinme --skill pinme-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pinme-api
Source: https://github.com/glitternetwork/pinme/tree/main/skills/pinme-api
Command: npx skills add https://github.com/glitternetwork/pinme --skill pinme-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PinMe projects often need to securely integrate email sending and LLM API calls in Workers. This skill guides AI to generate correct Worker TS code and ensures authenticated, rules-compliant usage of PinMe platform APIs.

Core Features & Use Cases

  • Provides templates and patterns for calling the PinMe email sending API (send_email) from a Worker.
  • Provides templates and patterns for calling the PinMe LLM chat/completions API from a Worker.
  • Demonstrates how to configure and use environment variables (API_KEY, BASE_URL) safely within Worker code.

Quick Start

Create or adapt a PinMe Worker to use the provided email and LLM templates and run locally to generate the integration code.

Frequently Asked Questions about pinme-api

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

FAQPage Schema
How do I send emails from a Worker using the PinMe API?

To send emails from a Worker, use the PinMe API by configuring your environment with an API_KEY and applying the provided TypeScript templates for the send_email endpoint to ensure secure, authenticated calls.

How do I call LLM chat completions from a PinMe Worker?

You can call LLM chat completions from a PinMe Worker by using the provided TypeScript templates that securely pass your project API_KEY to the PinMe platform LLM API endpoints.

Do I need an API_KEY environment variable to use PinMe platform APIs in Workers?

Yes, you need an API_KEY environment variable. The skill enforces an Env interface requiring API_KEY for authenticated API usage, along with an optional BASE_URL override for endpoint customization.

How do I securely configure environment variables for PinMe Workers?

Securely configure environment variables by defining an Env interface in your TypeScript Worker code that includes API_KEY and optionally BASE_URL, ensuring safe access to PinMe platform APIs.

Can I override the PinMe API endpoint URL in my Worker code?

Yes, you can override the PinMe API endpoint URL by setting the optional BASE_URL environment variable in your Worker configuration, allowing flexible API routing alongside your API_KEY.

What TypeScript patterns are recommended for PinMe Worker API integration?

The recommended TypeScript patterns involve enforcing an Env interface for API_KEY and BASE_URL, and using provided templates for authenticated email sending and LLM chat completions API calls.