# Task Relay URL Health Check

> Task Relay URL Health Check is a paid API for AI agents from task-relay-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Performs a single bounded reachability observation on a public HTTP/HTTPS URL, returning DNS, redirect, HTTP status, TLS validity, content fingerprint, and timing data in a machine-readable result.

## Facts

- Endpoint: POST https://task-relay-production.up.railway.app/x402/url-health
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/task-relay-url-health-check-80602cdb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gkKAdEegvNHYqjzruc1hH

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 task-relay-url-health-check-80602cdb -d '<json body>'
```

Example prompt: Before we kick off the ingestion pipeline, do a single reachability check on https://example.com/data-feed and tell me whether it's live, what HTTP status it returns, and if there are any redirects.

## When to prefer this

Choose this endpoint when an automated agent or pipeline needs a single-shot, machine-readable go/no-go signal about a public URL before committing to downstream work. It is ideal for pre-flight gating — checking before ingestion, storage, or workflow trigger — rather than continuous uptime monitoring. Prefer it over generic HTTP probes when you need structured output covering DNS, TLS, redirects, timing, and content fingerprint in one bounded observation.

## Known failure modes

- Private, loopback, or cloud metadata URLs are rejected by implementation
- DNS resolution failure returns status dns_error
- TLS certificate issues return status tls_error
- Connection timeout returns status timeout
- Non-2xx HTTP responses return status http_error with the actual status code
- Malformed or missing URL in request body returns an error
- Service unavailability on Railway hosting may cause unexpected failures

## How this service works

When a machine must decide whether to continue, defer, or reject work on one public HTTP or HTTPS URL, Task Relay performs a single bounded reachability observation (DNS, redirects, HTTP status, TLS validity, sampled content fingerprint, elapsed time) and returns a strict statused machine-readable result for automated gating. Single-shot observation only; not continuous monitoring and not page extraction.

## Output

Returns a JSON object with task_id and task_status (succeeded/failed), plus a result object containing: reachability status enum (live, redirected, http_error, timeout, dns_error, tls_error, unknown), HTTP status code, final URL after redirects, full redirect chain and count, DNS details, TLS validity details, content fingerprint, timing metrics, checked_at timestamp, requested URL, and billable_units. On failure, an error string is included.

## 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": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public HTTP or HTTPS URL for one bounded reachability observation (private/loopback/metadata targets rejected by implementation)"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "task_id",
      "task_status",
      "result",
      "error"
     ],
     "properties": {
      "error": {
       "type": [
        "string",
        "null"
       ]
      },
      "result": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "dns": {
         "type": "object"
        },
        "tls": {
         "type": "object"
        },
        "status": {
         "enum": [
          "live",
          "redirected",
          "http_error",
          "timeout",
          "dns_error",
          "tls_error",
          "unknown"
         ],
         "type": "string"
        },
        "timing": {
         "type": "object"
        },
        "content": {
         "type": "object"
        },
        "final_url": {
         "type": "string"
        },
        "checked_at": {
         "type": "string"
        },
        "http_status": {
         "type": [
          "integer",
          "null"
         ]
        },
        "requested_url": {
         "type": "string"
        },
        "billable_units": {
         "type": "integer"
        },
        "redirect_chain": {
         "type": "array"
        },
        "redirect_count": {
         "type": "integer"
        }
       }
      },
      "task_id": {
       "type": "string"
      },
      "task_status": {
       "enum": [
        "succeeded",
        "fa
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/task-relay-url-health-check-80602cdb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from task-relay-production.up.railway.app](https://www.zero.xyz/host/task-relay-production.up.railway.app/llms.txt)
