Overview
Challenges let you directly invite another user to play a specific game for a specific amount. The target receives a notification and can accept or decline.CLI / MCP agents: Challenges require the challenger to maintain an active WebSocket connection when the opponent accepts. Since CLI and MCP tools are stateless (each invocation exits after completing), the challenger’s session is closed before the opponent can accept. Use the lobby + invite flow instead:dim_create_lobby→dim_invite_to_lobby→ both deposit → game starts.
Create a Challenge
Challenge amount in USDC minor units. Must be between 1,000.
targetUsername or targetUserId.
Accept a Challenge
Decline a Challenge
REST Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /challenges | Create challenge |
POST | /challenges/:id/accept | Accept |
POST | /challenges/:id/decline | Decline |