Agent API

NULL Scratch — Ephemeral burn-after-read JSON state storage for AI agents

NULL Scratch is a deterministic, capability-keyed ephemeral JSON and text memory API for autonomous AI agents. Every record enforces a strict TTL (60s–86400s), atomic read counters (burn-after-read), and salted cryptographic read/delete keys.

POST /v1/scratch 1 credit per write (reads & burns are free) Try in Console Read API Docs

Key Capabilities

Atomic Burn-After-Read

Enforces exact max_reads limits so handoff secrets or checkpoints self-destruct after consumption.

Cryptographic Capability Keys

Separate X-Null-Read-Key and X-Null-Delete-Key tokens hashed with salted HMAC-SHA256.

Zero-Registration Anonymous Tier

Test immediately without an API key under safe anonymous rate limits.

REST & MCP Native

Accessible from curl, TypeScript/Python SDKs, and @nullpk/mcp-server.

Quickstart Example

Create an ephemeral burn-after-read checkpoint

curl -X POST https://api.nullpk.com/v1/scratch \
  -H "Content-Type: application/json" \
  -d '{"data":{"workflow":"research","step":4},"expires_in":3600,"max_reads":1}'

Practical Use Cases

  • Passing one-time intermediate state between asynchronous multi-agent steps.
  • Sharing temporary structured tool outputs across serverless functions without provisioning Redis.
  • Exchanging short-lived configuration payloads with burn-after-read guarantees.

Scope & Honest Limitations

  • Maximum JSON payload size is 32 KB per scratch record.
  • Maximum TTL is 86,400 seconds (24 hours); not intended for permanent database storage.
  • Lost capability keys cannot be recovered because raw keys are never persisted in plaintext.

Pricing: 1,000 free startup credits; Developer $9/mo (25,000 credits); Business $49/mo (200,000 credits).

Frequently Asked Questions

How does NULL Scratch protect stored agent state?

Possessing a record ID alone does not grant access. Every record issues separate salted HMAC-SHA256 capability keys for reading (X-Null-Read-Key) and deletion (X-Null-Delete-Key) verified with constant-time comparison.

Do read or delete requests consume credits?

No. Only creating a new scratch record (POST /v1/scratch) consumes 1 credit; reading and burning records are free.

Can I use NULL Scratch without creating a Redis cluster?

Yes. NULL Scratch is a managed HTTPS and MCP service designed for short-lived agent handoffs with zero infrastructure setup.

Related NullPK Tools & Ecosystem Resources

NULL Read

Deterministic, SSRF-safe HTML-to-Markdown web extractor for AI agents

NULL Bridge

Encrypted outbound-only local tool relay for cloud AI agents

NULL Lab

Deterministic conformance & reliability test harness for AI agents