Create Tournament API
curl --request POST \
--url https://api.gamezop.com/v2/tournaments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"game_code": "B1MfIa4QCg",
"title": "Friday 1 Hour Challenge",
"starts_at": "2026-06-01T10:00:00Z",
"duration_seconds": 3600,
"max_score_attempts": 3
}
'import requests
url = "https://api.gamezop.com/v2/tournaments"
payload = {
"game_code": "B1MfIa4QCg",
"title": "Friday 1 Hour Challenge",
"starts_at": "2026-06-01T10:00:00Z",
"duration_seconds": 3600,
"max_score_attempts": 3
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
game_code: 'B1MfIa4QCg',
title: 'Friday 1 Hour Challenge',
starts_at: '2026-06-01T10:00:00Z',
duration_seconds: 3600,
max_score_attempts: 3
})
};
fetch('https://api.gamezop.com/v2/tournaments', 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://api.gamezop.com/v2/tournaments",
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_code' => 'B1MfIa4QCg',
'title' => 'Friday 1 Hour Challenge',
'starts_at' => '2026-06-01T10:00:00Z',
'duration_seconds' => 3600,
'max_score_attempts' => 3
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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://api.gamezop.com/v2/tournaments"
payload := strings.NewReader("{\n \"game_code\": \"B1MfIa4QCg\",\n \"title\": \"Friday 1 Hour Challenge\",\n \"starts_at\": \"2026-06-01T10:00:00Z\",\n \"duration_seconds\": 3600,\n \"max_score_attempts\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://api.gamezop.com/v2/tournaments")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"game_code\": \"B1MfIa4QCg\",\n \"title\": \"Friday 1 Hour Challenge\",\n \"starts_at\": \"2026-06-01T10:00:00Z\",\n \"duration_seconds\": 3600,\n \"max_score_attempts\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gamezop.com/v2/tournaments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"game_code\": \"B1MfIa4QCg\",\n \"title\": \"Friday 1 Hour Challenge\",\n \"starts_at\": \"2026-06-01T10:00:00Z\",\n \"duration_seconds\": 3600,\n \"max_score_attempts\": 3\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tournament": {
"tournament_id": "tour_01HZZ2S9GQK6Y3V2S8D7A9F2BC",
"game": {
"code": "B1MfIa4QCg",
"name": "Bubble Shooter",
"url": "https://www.gamezop.com/g/B1MfIa4QCg?lang=en&tournamentId=tour_01HZZ2S9GQK6Y3V2S8D7A9F2BC"
},
"title": "Friday 1 Hour Challenge",
"status": "future",
"starts_at": "2026-06-01T10:00:00Z",
"ends_at": "2026-06-01T11:00:00Z",
"duration_seconds": 3600,
"created_at": "2026-05-26T12:30:00Z"
}
}
}
Integration
Create Tournament API
Create a new tournament on an eligible game.
POST
/
v2
/
tournaments
Create Tournament API
curl --request POST \
--url https://api.gamezop.com/v2/tournaments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"game_code": "B1MfIa4QCg",
"title": "Friday 1 Hour Challenge",
"starts_at": "2026-06-01T10:00:00Z",
"duration_seconds": 3600,
"max_score_attempts": 3
}
'import requests
url = "https://api.gamezop.com/v2/tournaments"
payload = {
"game_code": "B1MfIa4QCg",
"title": "Friday 1 Hour Challenge",
"starts_at": "2026-06-01T10:00:00Z",
"duration_seconds": 3600,
"max_score_attempts": 3
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
game_code: 'B1MfIa4QCg',
title: 'Friday 1 Hour Challenge',
starts_at: '2026-06-01T10:00:00Z',
duration_seconds: 3600,
max_score_attempts: 3
})
};
fetch('https://api.gamezop.com/v2/tournaments', 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://api.gamezop.com/v2/tournaments",
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_code' => 'B1MfIa4QCg',
'title' => 'Friday 1 Hour Challenge',
'starts_at' => '2026-06-01T10:00:00Z',
'duration_seconds' => 3600,
'max_score_attempts' => 3
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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://api.gamezop.com/v2/tournaments"
payload := strings.NewReader("{\n \"game_code\": \"B1MfIa4QCg\",\n \"title\": \"Friday 1 Hour Challenge\",\n \"starts_at\": \"2026-06-01T10:00:00Z\",\n \"duration_seconds\": 3600,\n \"max_score_attempts\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://api.gamezop.com/v2/tournaments")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"game_code\": \"B1MfIa4QCg\",\n \"title\": \"Friday 1 Hour Challenge\",\n \"starts_at\": \"2026-06-01T10:00:00Z\",\n \"duration_seconds\": 3600,\n \"max_score_attempts\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gamezop.com/v2/tournaments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"game_code\": \"B1MfIa4QCg\",\n \"title\": \"Friday 1 Hour Challenge\",\n \"starts_at\": \"2026-06-01T10:00:00Z\",\n \"duration_seconds\": 3600,\n \"max_score_attempts\": 3\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tournament": {
"tournament_id": "tour_01HZZ2S9GQK6Y3V2S8D7A9F2BC",
"game": {
"code": "B1MfIa4QCg",
"name": "Bubble Shooter",
"url": "https://www.gamezop.com/g/B1MfIa4QCg?lang=en&tournamentId=tour_01HZZ2S9GQK6Y3V2S8D7A9F2BC"
},
"title": "Friday 1 Hour Challenge",
"status": "future",
"starts_at": "2026-06-01T10:00:00Z",
"ends_at": "2026-06-01T11:00:00Z",
"duration_seconds": 3600,
"created_at": "2026-05-26T12:30:00Z"
}
}
}
Licensed
The Tournaments module is only available with the licensed model. Contact us to know more.
Idempotency-Key header. Pass a unique string per request: retrying with the same key returns the original response instead of creating a duplicate tournament. Keys are retained for 10 minutes and are scoped per token.
starts_at must be in the future and within the next 15 days. ends_at is computed automatically as starts_at + duration_seconds.Authorizations
You can find the Bearer token for this API under Settings & Admin > API Tokens within the Gamezop Business Dashboard.
Headers
Body
application/json
The game to run the tournament on. Use the code value from the All Games API. Tournaments can only be created on score-based games enabled for your account. Ask your Gamezop Account Manager for your eligible list.
Example:
"B1MfIa4QCg"
Was this page helpful?