Zum Inhalt
HALOWERK

X402werk

offer / validate

Validates a 402 challenge — fetched from a URL without paying, or supplied directly — against PaymentRequiredV1Schema and PaymentRequiredV2Schema of the installed @x402/core reference implementation.

POST https://x402.halowerk.com/offer/validate

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
urlstringNeinAbsolute http or https URL whose 402 challenge should be fetched and validated. Nothing is paid. Private, loopback and link-local targets are rejected.
challengeobjectNeinA 402 challenge object to validate directly, in x402 v1 or v2 form.
timeout_msintegerNeinTime budget for fetching the foreign challenge.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "url"
      ]
    },
    {
      "required": [
        "challenge"
      ]
    }
  ],
  "properties": {
    "url": {
      "type": "string",
      "pattern": "^https?://",
      "maxLength": 2048,
      "description": "Absolute http or https URL whose 402 challenge should be fetched and validated. Nothing is paid. Private, loopback and link-local targets are rejected."
    },
    "challenge": {
      "type": "object",
      "description": "A 402 challenge object to validate directly, in x402 v1 or v2 form."
    },
    "timeout_ms": {
      "type": "integer",
      "minimum": 1000,
      "maximum": 12000,
      "default": 6000,
      "description": "Time budget for fetching the foreign challenge."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "url": "http://",
  "timeout_ms": 6000
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →