Apple Shortcuts Integration

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.

Get Game Status

Check the current scores and status of any game.

GET /shortcuts/game-status?game=GAME_ID

Parameters:

Returns: Game type, status, players with scores, hand count, winner (if completed)

Example Response
{
  "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

Add a score to an active game (creates a new hand).

GET /shortcuts/add-score?game=GAME_ID&player=PLAYER_ID&score=N

Parameters:

Returns: { "success": true, "hand_number": 6, "score": 25 }

Start a New Game

Start a new game with specified players.

GET /shortcuts/start-game?game_type=TYPE_ID&players=ID1,ID2,ID3

Parameters:

Returns: { "success": true, "game_id": 43, "url": "/games/43/play" }

Tips