# Spraay IPFS/Arweave Content Pinning

> Spraay IPFS/Arweave Content Pinning is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Pins arbitrary content to IPFS or Arweave for permanent, decentralized storage.

## Facts

- Endpoint: POST https://gateway.spraay.app/api/v1/storage/pin
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spraay-ipfs-arweave-content-pinning-7e49370d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YtjE7zKkClbNCfdGSbZMo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability spraay-ipfs-arweave-content-pinning-7e49370d -d '<json body>'
```

Example prompt: Pin this JSON metadata string to Arweave so it's permanently stored — the content is '{"name":"My NFT","description":"A rare item"}' and the content type is application/json.

## When to prefer this

Use this endpoint when you need permanent, censorship-resistant storage for content — especially for NFT metadata, documents, or any data that must remain publicly accessible forever. Choose IPFS for content-addressed retrieval and Arweave for guaranteed permanence with a one-time fee model.

## Known failure modes

- Invalid provider value — must be 'ipfs' or 'arweave'
- Content too large for a single pin request
- Malformed or missing data field
- Payment failure (USDC balance insufficient for $0.01 fee)
- Provider network unavailable or congested

## How this service works

Pin content to IPFS or Arweave for permanent storage.

## Output

Returns a storage reference such as a content hash (CID for IPFS) or transaction ID (for Arweave) confirming the content has been pinned to the selected decentralized storage provider.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string"
  },
  "provider": {
   "type": "string"
  },
  "contentType": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spraay-ipfs-arweave-content-pinning-7e49370d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
