Skip to main content
POST
/
agent
/
endpoints
Create agent endpoint
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>"
      }
    ]
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.x402layer.cc/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
slug
string
required
name
string
required
origin_url
string<uri>
required
chain
string
required
wallet_address
string
required
price
number
required
api_schema
object

Optional API schema defining routes and parameters. Displayed to consumers on the payment page and in marketplace listings.

Response

Endpoint created