# AgentShelf Nanoid Validator

> AgentShelf Nanoid Validator is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-29).

Validates whether a given string is a valid nanoid, returning a boolean result with no network or LLM dependencies.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/id-nanoid?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-nanoid-validator-41d4d5a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Tchu1UIsN8TnTpi88ILp

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 agentshelf-nanoid-validator-41d4d5a5 -d '<json body>'
```

Example prompt: Can you check if the string 'V1StGXR8_Z5jdHi6B-myT' is a valid nanoid?

## When to prefer this

Use this endpoint when you need a quick, deterministic, offline nanoid format validation without any LLM inference cost or network lookup. Prefer the free sandbox POST /v1/sandbox/id-nanoid first; use this paid endpoint when the sandbox is unavailable or for production reliability. Choose this over rolling your own regex when you need a standardized, maintained validation service at minimal cost.

## Known failure modes

- Empty string input returns validation error (minLength:1 required)
- String exceeding 20000 characters rejected by schema
- Malformed request body returns HTTP 4xx error
- Payment failure (non-exact USDC amount) may result in 402 response

## How this service works

Call when an agent needs whether a string is a valid nanoid. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/id-nanoid first.

## Output

A boolean or structured response indicating whether the provided string is a valid nanoid, conforming to nanoid format specifications (URL-safe alphabet, expected length). No external network calls are made; the check is pure computation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "JSON value for schema-check SKUs. Omit it on string checks such as email or IBAN."
  },
  "value": {
   "type": "string",
   "examples": [
    "abcdefghij0123456789_"
   ],
   "maxLength": 20000,
   "minLength": 1,
   "description": "Value to check. The route description names the format: email, phone, IBAN, postal code, VAT, national id, or similar."
  },
  "schema": {
   "description": "JSON Schema document for schema-check SKUs. Omit it on string checks."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-nanoid-validator-41d4d5a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
