跳到正文
TakoAPI
返回技能列表

pinata-api

由 iammatthias 提供

Search & Research
695下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Pinata IPFS API for file storage, groups, gateways, signatures, x402 payments, and file vectorization.

描述

该技能的功能

Provides access to Pinata's IPFS storage API. Covers file uploads, group management, gateway configuration, EIP-712 content signatures, x402 micropayment setup, and AI-powered vector search across stored files.

Combines IPFS pinning, access control, payments, and vector search in one API instead of stitching together separate services.

何时使用

  • Uploading and organizing files on IPFS with metadata tags
  • Generating temporary signed URLs for private file access
  • Setting up pay-per-access IPFS content with USDC on Base
  • Running semantic search over a collection of stored documents
  • Pinning existing IPFS CIDs to a Pinata account

示例工作流

输入

User asks: upload a file to a private IPFS group and return a temporary download link

智能体
  1. 1

    Upload the file via POST to uploads.pinata.cloud/v3/files with network=private and the target group_id

  2. 2

    Retrieve the file's CID from the upload response

  3. 3

    POST to api.pinata.cloud/v3/files/private/download_link with the gateway URL, expiry, and current Unix timestamp

  4. 4

    Return the signed URL to the user

输出

A temporary signed URL valid for the specified duration that grants access to the private file

前置要求

  • PINATA_JWT environment variable (get from app.pinata.cloud/developers/api-keys)
  • PINATA_GATEWAY_URL environment variable (find at app.pinata.cloud/gateway)
  • Pinata account

安装

clawhub install iammatthias/pinata-api

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接