# Heurist Mesh Debug Sleep Endpoint

> Heurist Mesh Debug Sleep Endpoint is a paid API for AI agents from mesh.heurist.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Sleeps for a random duration between 1 and 20 seconds and returns the elapsed sleep time, used for debugging and latency testing.

## Facts

- Endpoint: POST https://mesh.heurist.xyz/x402/debug
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/heurist-mesh-debug-sleep-endpoint-ae76c5b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yyycEY4U8X3rdBEChbB9c

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 heurist-mesh-debug-sleep-endpoint-ae76c5b9 -d '<json body>'
```

Example prompt: Run a debug call against the Heurist Mesh debug endpoint and tell me how many seconds it slept for.

## When to prefer this

Use this endpoint when you need to verify that the x402 micropayment flow is working end-to-end, test agent timeout handling with variable latency, or confirm basic connectivity to the Heurist Mesh infrastructure. Not useful for any production data retrieval task.

## Known failure modes

- Timeout if the agent has a short timeout and the sleep lands near 20 seconds
- Payment failure if the x402 USDC micropayment of $0.001 is not processed correctly
- Network error if the mesh.heurist.xyz host is unreachable
- Non-200 response if the x402 payment header is missing or malformed

## How this service works

Debug endpoint that sleeps for a random duration (1-20 seconds) and returns the sleep time.

## Output

Returns the number of seconds the server slept, which is a random integer between 1 and 20.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/heurist-mesh-debug-sleep-endpoint-ae76c5b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mesh.heurist.xyz](https://www.zero.xyz/host/mesh.heurist.xyz/llms.txt)
