# PayPerWork Box Key-Value Store (PUT)

> PayPerWork Box Key-Value Store (PUT) is a paid API for AI agents from payperwork.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-02).

Stores an arbitrary JSON/form/text payload under a named key within a specified box (wallet box, channel, or 'me'), with a configurable TTL.

## Facts

- Endpoint: PUT https://payperwork.app/box/:box/:key?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payperwork-box-key-value-store-put-6cbe47f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vjf--PNf8xyBPzysm7wqA

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 payperwork-box-key-value-store-put-6cbe47f9 -d '<json body>'
```

Example prompt: Save this JSON payload {"status": "done", "result": 42} under the key 'task-result' in my wallet box ('me'), keeping it for 7200 seconds.

## When to prefer this

Choose this endpoint when an AI agent needs to persist ephemeral state, share data between agent steps or agents via a named box, or cache intermediate results with a TTL. It is purpose-built for agentic workflows where data needs to be readable by key later (via a sibling GET or block-wait endpoint). Prefer this over generic object storage when you need tight TTL control (60s–7 days), per-call micropayment pricing via x402, and native compatibility with the payperwork.app agent ecosystem.

## Known failure modes

- Body exceeds 65536 bytes — request rejected with payload-too-large error
- TTL outside 60–604800 range — rejected with invalid parameter error
- Invalid or inaccessible box ID — returns 404 or authorization error
- Malformed key name — rejected with bad request error
- Payment failure (x402 protocol) — returns 402 Payment Required
- Rate limiting — returns 429 Too Many Requests

## How this service works

Store the request body under {key} in box {box} (a box_ id, a channel name, or "me" for your wallet's box). Query ttl=seconds (60 to 604800, default 3600). Body up to 65536 bytes.

## Output

Returns a confirmation that the payload has been stored, along with metadata such as the box ID, key name, and the sequence number for the write — which can be used with the corresponding GET or block-wait endpoint to retrieve or monitor the value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "PUT"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "box",
      "key"
     ],
     "properties": {
      "box": {
       "type": "string"
      },
      "key": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payperwork-box-key-value-store-put-6cbe47f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payperwork.app](https://www.zero.xyz/host/payperwork.app/llms.txt)
