Sit at table
curl --request POST \
--url https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"playerId": "abc123",
"buyInAmount": 500
}
'import requests
url = "https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit"
payload = {
"playerId": "abc123",
"buyInAmount": 500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({playerId: 'abc123', buyInAmount: 500})
};
fetch('https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit', 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://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit",
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([
'playerId' => 'abc123',
'buyInAmount' => 500
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit"
payload := strings.NewReader("{\n \"playerId\": \"abc123\",\n \"buyInAmount\": 500\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"playerId\": \"abc123\",\n \"buyInAmount\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"playerId\": \"abc123\",\n \"buyInAmount\": 500\n}"
response = http.request(request)
puts response.read_body{
"acknowledgement": "ACK",
"seatId": 1,
"seatBalance": 500
}{
"error": "betAmount must be a positive number."
}{
"error": "Missing or invalid Authorization header."
}Tables
Sit at table
Seats a player at a table with a specified buy-in amount.
The buy-in is deducted from the player’s account balance (wallets.balance)
and credited to their seat balance (game_table_state.seat_balance).
Returns NACK with a message if the player’s wallet balance is insufficient.
To reverse this operation (return chips to wallet), call
POST /api/tables/{tableId}/leave.
Equivalent to ws_sit_at_table_new in the legacy C# server.
POST
/
api
/
tables
/
{tableId}
/
sit
Sit at table
curl --request POST \
--url https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"playerId": "abc123",
"buyInAmount": 500
}
'import requests
url = "https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit"
payload = {
"playerId": "abc123",
"buyInAmount": 500
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({playerId: 'abc123', buyInAmount: 500})
};
fetch('https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit', 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://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit",
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([
'playerId' => 'abc123',
'buyInAmount' => 500
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit"
payload := strings.NewReader("{\n \"playerId\": \"abc123\",\n \"buyInAmount\": 500\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"playerId\": \"abc123\",\n \"buyInAmount\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hedgeem-server.qeetoto.com/api/tables/{tableId}/sit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"playerId\": \"abc123\",\n \"buyInAmount\": 500\n}"
response = http.request(request)
puts response.read_body{
"acknowledgement": "ACK",
"seatId": 1,
"seatBalance": 500
}{
"error": "betAmount must be a positive number."
}{
"error": "Missing or invalid Authorization header."
}Authorizations
Supabase Auth JWT. Obtain via Supabase Auth sign-in.
Path Parameters
Unique numeric table identifier
Required range:
x >= 1Example:
1
Body
application/json