编程

Polsia R2 Proxy

试用

Upload and manage files through Polsia's Cloudflare R2 proxy with authenticated API requests.

它能做什么

Upload and manage files through Polsia's Cloudflare R2 proxy with authenticated API requests.

技能文档

R2 Proxy - File Storage

Upload and manage files using Polsia's R2 storage proxy. Files are stored in Cloudflare R2 with automatic CDN delivery.

Base URL

https://polsia.com/api/proxy/r2

Authentication

All requests require the POLSIA_API_KEY header. Use Authorization: Bearer process.env.POLSIA_API_KEY

Upload a File

Endpoint: POST /upload, Content-Type: multipart/form-data

Use node-fetch (not native fetch) for uploads. Use form-data package and pass formData.getHeaders() to avoid missing boundary errors.

Response Format

Returns: success, file.id, file.key, file.url, file.filename, file.mime_type, file.size, file.created_at

Allowed File Types

Images: jpeg, png, gif, webp. Videos: mp4, webm, mov. Audio: mp3, wav, ogg. Documents: pdf, docx, xlsx, txt, csv.

Size Limits

Images: 20MB, Videos: 1GB, Audio: 500MB, Documents: 50MB.

相关技能

Build autonomous AI features using the Polsia Agent API only; never call model providers directly for product AI.

3 次安装

Accept payments via Stripe Connect payment links, then verify server-side — no Stripe SDK, no webhooks, no STRIPE_SECRET_KEY.

Manage PikPak cloud storage via pikpakcli: browse, upload, download, delete, rename, share, offline download.

Cloudflare R2 (cloudflare.com). Use this skill for ANY Cloudflare R2 request — reading, creating, updating, and deleting data. Whenever a task involves Cloudflare R2, use this skill instead of calling the API directly.

9 次安装

Upload image files to PixelVault and get a public CDN URL back. Use when the user says "screenshot this and host it", "upload this image", "host this mockup"...

1 次安装