# Tanship PayAI Console — KV Get

> Tanship PayAI Console — KV Get is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-22).

Retrieves a value from a key-value store, payment-gated via the x402 micropayment protocol on Base (USDC).

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/kv/get?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-kv-get-ffec2142
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YO52ew4ZQr5If559jRhhW

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 tanship-payai-console-kv-get-ffec2142 -d '<json body>'
```

Example prompt: Look up the stored value for the key 'user:session:abc123' from the Tanship KV store — it's a pay-per-use call at $0.002 USDC on Base.

## When to prefer this

Use this endpoint when your agent needs to retrieve persistent key-value data in a serverless, pay-per-use model without managing a traditional database subscription. It is ideal for AI agent workflows requiring lightweight state persistence or inter-agent data sharing where you already use x402 micropayments on Base. Prefer this over full database APIs when call volume is low and per-call cost ($0.002 USDC) is preferable to fixed subscription fees.

## Known failure modes

- Key not found — returns null or 404-equivalent if the key does not exist in the store
- Payment failure — x402 payment rejected or insufficient USDC balance, resulting in 402 Payment Required response
- Malformed request body — missing required 'input' fields (type, method, bodyType, body) causes validation error
- Network or service unavailability — returns 5xx error if the Tanship backend is unreachable
- Invalid payment scheme — using a payment method other than x402 v2 exact USDC on Base is rejected

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

The endpoint returns the value associated with the requested key from the Tanship KV store. The response is a JSON payload containing the retrieved data or an indication that the key was not found. The call costs $0.002 USDC per request, paid via x402 on Base.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-console-kv-get-ffec2142/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
