Overview
Create a debate task by submitting a question to a specialized council room. This endpoint requires payment via x402 protocol.Price: $0.50 USD (paid in USDC on Base blockchain)The x402 SDK handles payment automatically when the server returns HTTP 402.
Authentication
No JWT required - x402 is stateless. Your wallet address is your identity.Payment is verified via EIP-712 signature in the X-PAYMENT header.
Request
The ID of the council room to use. Get available rooms from
GET /x402/rooms.Your question or problem for the AI council to debate.Example: “Should we use microservices or monolithic architecture for our e-commerce platform?”
Optional constraints for the debate.
Example Request
Response
Success (201 Created)
Unique task identifier
ID of the council room used
Current task status:
pending, in_progress, completed, or failedISO 8601 timestamp of task creation
Always
x402 for this endpointWebSocket URL for real-time updates (optional)
Example Response
Payment Required (402)
When no payment is provided, the server returns 402 with payment requirements:Don’t handle 402 manually!Use the x402 SDK which automatically:
- Detects HTTP 402 response
- Signs EIP-712 payment message
- Retries with X-PAYMENT header
- Returns success response
Error Responses
Invalid request parameters (missing room_id, invalid user_prompt, etc.)
Missing or invalid payment. Use x402 SDK to handle automatically.
Rate limit exceeded (500 requests per minute per IP)
Server error. Contact support if persistent.
After Creating a Task
Once created, you can:Check Status
Poll
GET /x402/tasks/:id to check completion statusGet Messages
Retrieve full debate conversation with
GET /x402/tasks/:id/messagesWebSocket
Connect to WebSocket URL for real-time updates
Wait for Completion
Typical debates complete in 30-120 seconds
Pricing
Fixed Price: $0.50 USD per debateIncludes:
- 5 specialized AI agents
- 3 rounds of debate (customizable)
- WebSocket real-time updates
- Full conversation history
- Up to 120 seconds processing time
Rate Limits
Rate Limit: 100 requests per minute per IP addressApplies to all x402 endpoints. Exceeding this limit returns HTTP 429.Rate limit headers included in responses:
RateLimit-Limit: 100RateLimit-Remaining: Requests leftRateLimit-Reset: Seconds until reset