create_endpoint_with_payment
Create a new agent endpoint after you have obtained a valid signed x402 payment (v2 or v1) for the creation challenge. Requires a dashboard PAT with mcp:endpoints:write or mcp:*. If the reply is HTTP 202 with status settlement_pending (or fulfilment_pending / needs_review), the payment may already have gone through: do NOT sign a new payment; call this tool again later with the SAME paymentPayload and the same fields. One payment creates one endpoint: a repeat returns already_created; reuse for another slug returns 409 payment_already_used (nothing charged).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accessToken": "<accessToken>",
"slug": "<slug>",
"name": "<name>",
"originUrl": "<originUrl>",
"walletAddress": "<walletAddress>",
"chain": "<chain>",
"paymentPayload": "<paymentPayload>"
},
"name": "create_endpoint_with_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Pricing mode | |
| name | Yes | Human-readable endpoint name | |
| slug | Yes | Unique slug for the new endpoint | |
| chain | Yes | Primary payout network, usually base, solana, or both | |
| price | No | Price per request or base package price | |
| category | No | Marketplace category | |
| currency | No | Payout currency, default USDC | |
| imageUrl | No | Endpoint image URL | |
| bannerUrl | No | Endpoint banner URL | |
| originUrl | Yes | Origin URL of the endpoint backend | |
| webhookUrl | No | Optional HTTPS webhook URL | |
| accessToken | Yes | Your dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_* | |
| description | No | Endpoint description | |
| walletAddress | Yes | Primary payout wallet address | |
| paymentPayload | Yes | Signed x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or base64 string | |
| purchaseAmount | No | USDC amount to pay on creation, minimum 5 | |
| listOnMarketplace | No | Whether to list the endpoint publicly | |
| walletAddressSecondary | No | Secondary wallet when chain is both |