x402 Discovery
curl --request GET \
--url https://api.wurk.fun/.well-known/x402import requests
url = "https://api.wurk.fun/.well-known/x402"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.wurk.fun/.well-known/x402', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wurk.fun/.well-known/x402",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wurk.fun/.well-known/x402"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wurk.fun/.well-known/x402")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wurk.fun/.well-known/x402")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyCreate and Pay
x402 Discovery
Find advertised resources and distinguish discovery from a payable quote
GET
/
.well-known
/
x402
x402 Discovery
curl --request GET \
--url https://api.wurk.fun/.well-known/x402import requests
url = "https://api.wurk.fun/.well-known/x402"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.wurk.fun/.well-known/x402', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wurk.fun/.well-known/x402",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wurk.fun/.well-known/x402"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wurk.fun/.well-known/x402")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wurk.fun/.well-known/x402")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyThis public, free endpoint returns WURK’s advertised x402 resource URLs and integration guidance.
The list can include free secret-authenticated actions. Listing a URL here does not mean every operation on that URL requires a payment.
curl 'https://api.wurk.fun/.well-known/x402'
| Field | Meaning |
|---|---|
version | Discovery schema version, currently 1; this is separate from the x402 payment protocol version. |
resources | Array of absolute resource URLs, including network routes and shared job actions. |
ownershipProofs | Optional array of registry ownership proofs. |
instructions | Integration guidance as text. |
Schemas and workflows
Use canonical OpenAPI for advertised paid POST operations and shared actions, and x402 OpenAPI for advertised aliases. The public skill links maintained commissioning, payment, store and recovery guides. A bare social or Basic endpoint can return an example/discovery challenge. First provide the intended target, brief, counts and reward settings, then inspect that request’s actual quote. A descriptor price is not authorization to spend.Inspect a payable challenge
An x402 v2 payable response uses HTTP402, a PAYMENT-REQUIRED header and nonempty accepts. Check the selected requirement’s scheme, network, asset, atomic amount, payTo and extra, together with resource and the payment deadline. Preserve all returned metadata when signing.
For account authentication, a 402 with accepts: [] requests a login proof and carries no payable requirement. Follow authentication, then retry with the required credential.
See paid requests for the retry target and saved-checkout rules.