POST
/
api
/
cmd
/
ACTION6
Execute complex action (requires x,y)
curl --request POST \
  --url https://three.arcprize.org/api/cmd/ACTION6 \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "game_id": "ls20-016295f7601e",
  "guid": "2fa5332c-2e55-4825-b5c5-df960d504470",
  "x": 12,
  "y": 34
}'
{
  "game_id": "ls20-016295f7601e",
  "guid": "2fa5332c-2e55-4825-b5c5-df960d504470",
  "frame": [
    [
      [
        "…"
      ]
    ]
  ],
  "state": "NOT_FINISHED",
  "score": 17,
  "win_score": 254,
  "action_input": {
    "id": 6,
    "data": {
      "x": 12,
      "y": 34
    }
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Game/session identifiers plus the coordinate payload.

Payload for coordinate-based actions (e.g. /api/cmd/ACTION6). Supplies an (x, y) location on the 64 × 64 game grid along with the game/session identifiers so the engine can apply the action to the correct running instance.

Response

200
application/json

Frame returned after executing the action.

Snapshot returned after every RESET or ACTION command.
Includes the latest visual frame(s), cumulative score details, the current game state, and an echo of the triggering action.