# x402 API Health Checker

> x402 API Health Checker is a paid API for AI agents from x402-secure-api.t54.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Checks the health of an x402 server by measuring response latency, availability, protocol compliance, and payment endpoint functionality.

## Facts

- Endpoint: POST https://x402-secure-api.t54.ai/x402/tools/get_api_health
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-secure-api-t54-ai-8affd1c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GpYAqsl5_Z_3CIdaWaq2b

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 x402-secure-api-t54-ai-8affd1c3 -d '<json body>'
```

Example prompt: Can you check whether the x402 server at https://mesh.heurist.xyz is healthy — I want to know if it's online, how fast it responds, and whether its payment endpoint is working properly?

## When to prefer this

Use this endpoint when you need to verify that a specific x402 server is live, protocol-compliant, and capable of processing payments before integrating with it or sending transactions. Ideal for pre-integration validation, uptime monitoring, and debugging x402 connectivity issues.

## Known failure modes

- Target server is unreachable or offline — status returns 'failed' with an error_message
- Target URL is malformed or not an x402 server — returns error status
- Payment endpoint on the target server is non-compliant — reflected in validation_details
- Network timeout causes no_data or pending status
- x402-secure-api.t54.ai itself is unavailable — request fails

## How this service works

Check x402 server API health: response latency, availability, protocol compliance, and payment endpoint test. Essential for monitoring service reliability and integration validation. Price: $0.01 USDC

## Output

Returns the server URL, status (success/failed/pending/no_data/error), server name, last validated timestamp, and validation details including response time in milliseconds, any error message, and the payment amount in USDC required by that server.

## Example request

```json
{
 "url": "https://mesh.heurist.xyz"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "The URL of the x402 server to check (e.g., https://mesh.heurist.xyz). If unsure what to input, first call get_available_resources to discover valid servers."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "url": "string",
 "status": {
  "enum": [
   "success",
   "failed",
   "pending",
   "no_data",
   "error"
  ],
  "type": "string"
 },
 "server_name": "string",
 "last_validated": "string|null",
 "validation_details": {
  "type": "object",
  "properties": {
   "result_data": "object|null",
   "error_message": "string|null",
   "response_time_ms": "number|null",
   "payment_amount_usdc": "number|null"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-secure-api-t54-ai-8affd1c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-secure-api.t54.ai](https://www.zero.xyz/host/x402-secure-api.t54.ai/llms.txt)
