Dealt exposes simple URL endpoints that return JSON, making it easy to build Apple Shortcuts or integrate with other automation tools.
In Apple Shortcuts, use the "Get Contents of URL" action with these endpoints.
Use Dealt with Apple Shortcuts, HTTP requests, or any automation tool
Dealt exposes simple URL endpoints that return JSON, making it easy to build Apple Shortcuts or integrate with other automation tools.
In Apple Shortcuts, use the "Get Contents of URL" action with these endpoints.
Check the current scores and status of any game.
GET /shortcuts/game-status?game=GAME_ID
Parameters:
game — The game session ID (required)Returns: Game type, status, players with scores, hand count, winner (if completed)
{
"id": 42,
"game_type": "Rummy",
"status": "in_progress",
"players": [
{ "id": 1, "name": "Sam", "total_score": 150, "final_rank": null },
{ "id": 2, "name": "Alex", "total_score": 120, "final_rank": null }
],
"hands": 5
}
Add a score to an active game (creates a new hand).
GET /shortcuts/add-score?game=GAME_ID&player=PLAYER_ID&score=N
Parameters:
game — The game session ID (required)player — The player ID (required)score — The score to add (required)Returns: { "success": true, "hand_number": 6, "score": 25 }
Start a new game with specified players.
GET /shortcuts/start-game?game_type=TYPE_ID&players=ID1,ID2,ID3
Parameters:
game_type — The game type ID (required)players — Comma-separated player IDs (required, minimum 2)Returns: { "success": true, "game_id": 43, "url": "/games/43/play" }