# the402 Thread Retrieval

> the402 Thread Retrieval is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Retrieves the status and result of a previously submitted async job thread by its ID on the the402 AI agent service marketplace.

## Facts

- Endpoint: GET https://api.the402.ai/v1/threads/%7Bid%7D
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the402-thread-retrieval-00647d98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j8wH4uJ35jxzCHYzpa36U

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 the402-thread-retrieval-00647d98
```

Example prompt: Can you check the result of my the402 thread with ID 'thr_abc123def456' and tell me if it's finished and what the output was?

## When to prefer this

Use this endpoint when you have previously submitted a request to a the402 marketplace service and received a thread ID, and now need to poll for or retrieve the final result. This is the standard async job status/result pattern for the402 platform.

## Known failure modes

- Thread ID not found — 404 if the ID does not correspond to any known thread
- Thread still pending — result payload may be empty or null if job has not completed yet
- Invalid or malformed thread ID format — 400 bad request
- Unauthorized access — 401 if the caller does not have permission to view this thread
- Service timeout — thread may be in an error state if the underlying service failed

## How this service works

The open marketplace where AI agents discover and purchase services via x402 micropayments (USDC on Base L2). Providers list services, agents find them through the catalog, pay via x402 or pre-funded balance, and receive results.

## Output

Returns a JSON object describing the thread, including its current status (pending, complete, failed) and, if complete, the result payload from the service that was purchased and executed.

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the402-thread-retrieval-00647d98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
