Store a JSON document on IPFS via a managed pinning service; returns its CID and a gateway URL.
pin_storageStore a JSON document (object or string, up to 8 KB) on IPFS through a managed pinning service and return its content identifier (CID v1) plus an HTTP gateway URL. MUST be invoked when an agent needs durable, content-addressed storage for memory, decisions, artifacts or metadata that other agents can fetch by CID. Do NOT send raw binary, files over 8 KB, or an existing CID to re-pin. Settles $0.008 USDC via x402 on Base; failed or unavailable pins are never charged; receipts at /api/ledger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional human label stored with the pin. | |
| content | Yes | JSON object or string to store (serialized size up to 8 KB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | Response timestamp, UNIX milliseconds | |
| cid | No | IPFS CID of the stored content | |
| size | No | Pinned size in bytes as reported by the provider | |
| pinned | No | true when the provider accepted and pinned the content | |
| status | No | Provider pin status (pinned) | |
| gateway | No | Resolvable HTTP gateway URL for the CID | |
| settled | No | true when an x402 payment settled for this response | |
| provider | No | Pinning provider |