# Pastebin Text/Code Storage

> Pastebin Text/Code Storage is a paid API for AI agents from pastebin.0000402.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Stores up to 100 KB of text or code for $0.01 USDC and returns a token for free retrieval anytime

## Facts

- Endpoint: POST https://pastebin.0000402.xyz/paste
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pastebin-0000402-xyz-f09a9b74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y7aLo9os5HzOD7uo5Sh0f

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 pastebin-0000402-xyz-f09a9b74 -d '<json body>'
```

Example prompt: Store this text as a paste: 'Error log from deployment run #42: NullPointerException at line 88' — use passphrase 'mypass2024' and keep it available for retrieval anytime (don't burn after reading).

## When to prefer this

Use this endpoint when you need to store plain text, code snippets, logs, or debug output cheaply ($0.01 USDC) and retrieve it later via a token. Prefer this over the sibling encrypted-secret endpoint when the content does not need encryption and is not sensitive. Good for sharing notes, code, or logs between agents or sessions.

## Known failure modes

- Content exceeds 100 KB limit — request rejected
- Payment of $0.01 USDC not provided or insufficient — 402 Payment Required
- Invalid or malformed request body — 400 Bad Request
- Service unavailable or network error — 503

## How this service works

Pay $0.01 USDC to store up to 100 KB of text or code. Returns a token for free retrieval anytime via GET /paste/{token}. Network: Base Mainnet. Each request stores one text or code blob and returns a retrieval token, making it useful for notes, code snippets, logs, and debug-output sharing.

## Output

Returns a UUID retrieval token, a confirmation message with the full retrieval URL (GET /paste/{token}), and the size in bytes of the stored content. The token can be used for free retrieval at any time.

## Example request

```json
{
 "content": "Error log from deployment run #42: NullPointerException at line 88",
 "passphrase": "mypass2024",
 "burn_after_reading": false
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "maxLength": 100000,
   "description": "Text or code blob to store and retrieve later by token (max 100 KB)"
  },
  "language": {
   "type": "string",
   "description": "Optional language hint for syntax-aware clients (for example 'python', 'json', or 'bash')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "message": "Paste stored. Use GET /paste/{token} to retrieve anytime for free.",
  "size_bytes": 22
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pastebin-0000402-xyz-f09a9b74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pastebin.0000402.xyz](https://www.zero.xyz/host/pastebin.0000402.xyz/llms.txt)
