# Pastebin Encrypted Secret Storage

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

Stores an AES-256-GCM encrypted secret (up to 100 KB) for later retrieval using a token and passphrase, for $0.02 USDC per call on Base Mainnet.

## Facts

- Endpoint: POST https://pastebin.0000402.xyz/secret
- Price: $0.02/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-4f582ee3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7u7dfqP_KGGWu32DRD0PO

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-4f582ee3 -d '<json body>'
```

Example prompt: Securely store this secret message 'sk-prod-abc123XYZ' using the passphrase 'sunrise-delta-9' so I can share just the token with my other agent and they can reveal it later — don't burn it after reading.

## When to prefer this

Use this endpoint when you need to securely transmit a sensitive value (API key, password, credential) to another agent or person and want end-to-end encryption where the server never sees the plaintext passphrase. Prefer this over plain pastebin storage when the content is sensitive. Ideal for agent-to-agent secret handoff workflows where token and passphrase are transmitted via separate channels.

## Known failure modes

- Missing or empty content field returns 400 error
- Missing passphrase returns 400 error
- Content exceeds 100 KB limit returns 413 or 400 error
- Payment not included or insufficient USDC causes x402 payment required error
- Network issues on Base Mainnet may cause payment processing failures
- Invalid request body format returns 422 validation error

## How this service works

Pay $0.02 USDC to store an encrypted secret (up to 100 KB). Encrypted with AES-256-GCM; key derived from passphrase via scrypt. The passphrase is never stored — only the ciphertext. Reveal with POST /secret/{token} and the correct passphrase. Network: Base Mainnet. Each request encrypts one secret for later reveal with the token and passphrase, making it useful for API key handoff, credential sharing, and agent-to-agent secret exchange.

## Output

Returns a UUID token identifying the stored encrypted secret, along with a message instructing to share the token and passphrase separately. The ciphertext is stored server-side; the passphrase is never persisted. The token can be used with POST /secret/{token} and the correct passphrase to reveal the original content.

## Example request

```json
{
 "content": "This is a test secret message for secure storage and retrieval validation",
 "passphrase": "testpass123",
 "burn_after_reading": false
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "maxLength": 100000,
   "description": "Secret text to encrypt now and reveal later with the token and passphrase (max 100 KB)"
  },
  "passphrase": {
   "type": "string",
   "description": "Passphrase used to derive the encryption key and required again to reveal the secret. Never stored."
  },
  "burn_after_reading": {
   "type": "boolean",
   "description": "If true, the first successful reveal permanently deletes the secret"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "message": "Secret stored encrypted. Share the token and passphrase separately.",
  "burn_after_reading": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pastebin-0000402-xyz-4f582ee3/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)
