curl --request POST \
--url https://api.x402layer.cc/agent/endpoints \
--header 'Content-Type: application/json' \
--data '
{
"slug": "<string>",
"name": "<string>",
"origin_url": "<string>",
"chain": "<string>",
"wallet_address": "<string>",
"price": 123,
"api_schema": {
"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>"
}
]
}
}
'