Access a paid product or return an x402 challenge
curl --request GET \
--url https://api.x402layer.cc/p/{slug}{
"x402Version": 123,
"accepts": [
{
"scheme": "<string>",
"network": "<string>",
"maxAmountRequired": "<string>",
"resource": "<string>",
"description": "<string>",
"payTo": "<string>",
"asset": "<string>"
}
],
"api_schema": {
"version": 1,
"baseUrl": "<string>",
"routes": [
{
"path": "/users/{id}",
"summary": "<string>",
"parameters": [
{
"name": "<string>",
"required": true,
"description": "<string>",
"example": "<string>"
}
],
"requestBody": {
"fields": [
{
"name": "<string>",
"required": true,
"description": "<string>",
"example": "<string>"
}
],
"example": "<string>"
},
"responseExample": "<string>"
}
]
}
}Payments
Access paid product
GET
/
p
/
{slug}
Access a paid product or return an x402 challenge
curl --request GET \
--url https://api.x402layer.cc/p/{slug}{
"x402Version": 123,
"accepts": [
{
"scheme": "<string>",
"network": "<string>",
"maxAmountRequired": "<string>",
"resource": "<string>",
"description": "<string>",
"payTo": "<string>",
"asset": "<string>"
}
],
"api_schema": {
"version": 1,
"baseUrl": "<string>",
"routes": [
{
"path": "/users/{id}",
"summary": "<string>",
"parameters": [
{
"name": "<string>",
"required": true,
"description": "<string>",
"example": "<string>"
}
],
"requestBody": {
"fields": [
{
"name": "<string>",
"required": true,
"description": "<string>",
"example": "<string>"
}
],
"example": "<string>"
},
"responseExample": "<string>"
}
]
}
}Path Parameters
Response
Successful paid product response
Was this page helpful?
⌘I
