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
}
'import requests
url = "https://three.arcprize.org/api/cmd/ACTION6"
payload = {
"game_id": "ls20-016295f7601e",
"guid": "2fa5332c-2e55-4825-b5c5-df960d504470",
"x": 12,
"y": 34
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
game_id: 'ls20-016295f7601e',
guid: '2fa5332c-2e55-4825-b5c5-df960d504470',
x: 12,
y: 34
})
};
fetch('https://three.arcprize.org/api/cmd/ACTION6', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://three.arcprize.org/api/cmd/ACTION6",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'game_id' => 'ls20-016295f7601e',
'guid' => '2fa5332c-2e55-4825-b5c5-df960d504470',
'x' => 12,
'y' => 34
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://three.arcprize.org/api/cmd/ACTION6"
payload := strings.NewReader("{\n \"game_id\": \"ls20-016295f7601e\",\n \"guid\": \"2fa5332c-2e55-4825-b5c5-df960d504470\",\n \"x\": 12,\n \"y\": 34\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://three.arcprize.org/api/cmd/ACTION6")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"game_id\": \"ls20-016295f7601e\",\n \"guid\": \"2fa5332c-2e55-4825-b5c5-df960d504470\",\n \"x\": 12,\n \"y\": 34\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://three.arcprize.org/api/cmd/ACTION6")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"game_id\": \"ls20-016295f7601e\",\n \"guid\": \"2fa5332c-2e55-4825-b5c5-df960d504470\",\n \"x\": 12,\n \"y\": 34\n}"
response = http.request(request)
puts response.read_body{
"game_id": "ls20-016295f7601e",
"guid": "2fa5332c-2e55-4825-b5c5-df960d504470",
"frame": [
[
[
"…"
]
]
],
"state": "NOT_FINISHED",
"levels_completed": 17,
"win_levels": 254,
"action_input": {
"id": 6,
"data": {
"x": 12,
"y": 34
}
},
"available_actions": [
1,
2,
3,
4
]
}Execute complex action (requires x,y)
Issues ACTION 6—a two-parameter command that supplies explicit X/Y coordinates—to an active game session. Common use-cases include “click/tap at (x,y)”, “place a tile”, or “shoot a projectile,” depending on the game’s mechanics.
Required fields
• game_id — the game to act in
• guid — session identifier obtained from RESET
• x,y — zero-based grid coordinates (0-63 inclusive)
On success the server applies the action, advances game logic to the next stable frame, and returns that frame together with the updated score, state, and win condition.
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
}
'import requests
url = "https://three.arcprize.org/api/cmd/ACTION6"
payload = {
"game_id": "ls20-016295f7601e",
"guid": "2fa5332c-2e55-4825-b5c5-df960d504470",
"x": 12,
"y": 34
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
game_id: 'ls20-016295f7601e',
guid: '2fa5332c-2e55-4825-b5c5-df960d504470',
x: 12,
y: 34
})
};
fetch('https://three.arcprize.org/api/cmd/ACTION6', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://three.arcprize.org/api/cmd/ACTION6",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'game_id' => 'ls20-016295f7601e',
'guid' => '2fa5332c-2e55-4825-b5c5-df960d504470',
'x' => 12,
'y' => 34
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://three.arcprize.org/api/cmd/ACTION6"
payload := strings.NewReader("{\n \"game_id\": \"ls20-016295f7601e\",\n \"guid\": \"2fa5332c-2e55-4825-b5c5-df960d504470\",\n \"x\": 12,\n \"y\": 34\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://three.arcprize.org/api/cmd/ACTION6")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"game_id\": \"ls20-016295f7601e\",\n \"guid\": \"2fa5332c-2e55-4825-b5c5-df960d504470\",\n \"x\": 12,\n \"y\": 34\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://three.arcprize.org/api/cmd/ACTION6")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"game_id\": \"ls20-016295f7601e\",\n \"guid\": \"2fa5332c-2e55-4825-b5c5-df960d504470\",\n \"x\": 12,\n \"y\": 34\n}"
response = http.request(request)
puts response.read_body{
"game_id": "ls20-016295f7601e",
"guid": "2fa5332c-2e55-4825-b5c5-df960d504470",
"frame": [
[
[
"…"
]
]
],
"state": "NOT_FINISHED",
"levels_completed": 17,
"win_levels": 254,
"action_input": {
"id": 6,
"data": {
"x": 12,
"y": 34
}
},
"available_actions": [
1,
2,
3,
4
]
}Body
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.
Important: Include any cookies (especially AWSALB* cookies) received from previous RESET or ACTION responses to ensure session affinity.
Response
Frame returned after executing the action.
Snapshot returned after every RESET or ACTION command.
Includes the latest visual frame(s), cumulative progress, the
current game state, and an echo of the triggering action.
Was this page helpful?

