Create Game
curl --request POST \
--url https://api.uplift.ai/v1/games \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2023-12-25",
"home_team": {
"name": "<string>"
},
"away_team": {
"name": "<string>"
},
"competition": "<string>",
"pitch": {
"length_m": 105,
"width_m": 68
},
"roster": [
{
"shirt_number": 123,
"name": "<string>",
"position": "<string>",
"athlete_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://api.uplift.ai/v1/games"
payload = {
"date": "2023-12-25",
"home_team": { "name": "<string>" },
"away_team": { "name": "<string>" },
"competition": "<string>",
"pitch": {
"length_m": 105,
"width_m": 68
},
"roster": [
{
"shirt_number": 123,
"name": "<string>",
"position": "<string>",
"athlete_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
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({
date: '2023-12-25',
home_team: {name: '<string>'},
away_team: {name: '<string>'},
competition: '<string>',
pitch: {length_m: 105, width_m: 68},
roster: [
{
shirt_number: 123,
name: '<string>',
position: '<string>',
athlete_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.uplift.ai/v1/games', 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.uplift.ai/v1/games",
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([
'date' => '2023-12-25',
'home_team' => [
'name' => '<string>'
],
'away_team' => [
'name' => '<string>'
],
'competition' => '<string>',
'pitch' => [
'length_m' => 105,
'width_m' => 68
],
'roster' => [
[
'shirt_number' => 123,
'name' => '<string>',
'position' => '<string>',
'athlete_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
]),
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://api.uplift.ai/v1/games"
payload := strings.NewReader("{\n \"date\": \"2023-12-25\",\n \"home_team\": {\n \"name\": \"<string>\"\n },\n \"away_team\": {\n \"name\": \"<string>\"\n },\n \"competition\": \"<string>\",\n \"pitch\": {\n \"length_m\": 105,\n \"width_m\": 68\n },\n \"roster\": [\n {\n \"shirt_number\": 123,\n \"name\": \"<string>\",\n \"position\": \"<string>\",\n \"athlete_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\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://api.uplift.ai/v1/games")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2023-12-25\",\n \"home_team\": {\n \"name\": \"<string>\"\n },\n \"away_team\": {\n \"name\": \"<string>\"\n },\n \"competition\": \"<string>\",\n \"pitch\": {\n \"length_m\": 105,\n \"width_m\": 68\n },\n \"roster\": [\n {\n \"shirt_number\": 123,\n \"name\": \"<string>\",\n \"position\": \"<string>\",\n \"athlete_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games")
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 \"date\": \"2023-12-25\",\n \"home_team\": {\n \"name\": \"<string>\"\n },\n \"away_team\": {\n \"name\": \"<string>\"\n },\n \"competition\": \"<string>\",\n \"pitch\": {\n \"length_m\": 105,\n \"width_m\": 68\n },\n \"roster\": [\n {\n \"shirt_number\": 123,\n \"name\": \"<string>\",\n \"position\": \"<string>\",\n \"athlete_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"game": {
"game_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"status": "awaiting_upload",
"run_id": null,
"date": "2026-10-18",
"competition": "Example League",
"home_team": {
"team_id": "t-0451",
"team_side": "home",
"name": "Home FC"
},
"away_team": {
"team_id": "t-0388",
"team_side": "away",
"name": "Away United"
},
"pitch": {
"length_m": 105,
"width_m": 68
},
"periods": [
{
"period": 1,
"duration_s": 2843,
"home_attacking_direction": "left_to_right"
},
{
"period": 2,
"duration_s": 2911,
"home_attacking_direction": "right_to_left"
}
],
"roster": [
{
"player_id": "p07",
"team_id": "t-0451",
"shirt_number": 7,
"name": "Player Seven",
"position": "midfielder",
"athlete_id": "3c9e1f2a-8b7d-4c6e-9a5f-1d2e3b4c5a6f"
}
],
"data_available": []
}
}{
"error": "BadRequest",
"message": "The request parameters are invalid. Please review the request and try again."
}{
"error": "Unauthorized",
"message": "Bearer token is missing or invalid."
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource."
}{
"error": "TooManyRequests",
"message": "The rate limit has been exceeded. Please wait and try again later."
}{
"error": "InternalServerError",
"message": "An unexpected error occurred on the server. Please try again later."
}Games
Create Game
Creates a game: the two teams, date, competition, pitch size and, optionally, the roster. Upload video to it with Create Clip.
POST
/
games
Create Game
curl --request POST \
--url https://api.uplift.ai/v1/games \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2023-12-25",
"home_team": {
"name": "<string>"
},
"away_team": {
"name": "<string>"
},
"competition": "<string>",
"pitch": {
"length_m": 105,
"width_m": 68
},
"roster": [
{
"shirt_number": 123,
"name": "<string>",
"position": "<string>",
"athlete_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://api.uplift.ai/v1/games"
payload = {
"date": "2023-12-25",
"home_team": { "name": "<string>" },
"away_team": { "name": "<string>" },
"competition": "<string>",
"pitch": {
"length_m": 105,
"width_m": 68
},
"roster": [
{
"shirt_number": 123,
"name": "<string>",
"position": "<string>",
"athlete_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
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({
date: '2023-12-25',
home_team: {name: '<string>'},
away_team: {name: '<string>'},
competition: '<string>',
pitch: {length_m: 105, width_m: 68},
roster: [
{
shirt_number: 123,
name: '<string>',
position: '<string>',
athlete_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.uplift.ai/v1/games', 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.uplift.ai/v1/games",
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([
'date' => '2023-12-25',
'home_team' => [
'name' => '<string>'
],
'away_team' => [
'name' => '<string>'
],
'competition' => '<string>',
'pitch' => [
'length_m' => 105,
'width_m' => 68
],
'roster' => [
[
'shirt_number' => 123,
'name' => '<string>',
'position' => '<string>',
'athlete_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
]),
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://api.uplift.ai/v1/games"
payload := strings.NewReader("{\n \"date\": \"2023-12-25\",\n \"home_team\": {\n \"name\": \"<string>\"\n },\n \"away_team\": {\n \"name\": \"<string>\"\n },\n \"competition\": \"<string>\",\n \"pitch\": {\n \"length_m\": 105,\n \"width_m\": 68\n },\n \"roster\": [\n {\n \"shirt_number\": 123,\n \"name\": \"<string>\",\n \"position\": \"<string>\",\n \"athlete_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\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://api.uplift.ai/v1/games")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2023-12-25\",\n \"home_team\": {\n \"name\": \"<string>\"\n },\n \"away_team\": {\n \"name\": \"<string>\"\n },\n \"competition\": \"<string>\",\n \"pitch\": {\n \"length_m\": 105,\n \"width_m\": 68\n },\n \"roster\": [\n {\n \"shirt_number\": 123,\n \"name\": \"<string>\",\n \"position\": \"<string>\",\n \"athlete_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games")
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 \"date\": \"2023-12-25\",\n \"home_team\": {\n \"name\": \"<string>\"\n },\n \"away_team\": {\n \"name\": \"<string>\"\n },\n \"competition\": \"<string>\",\n \"pitch\": {\n \"length_m\": 105,\n \"width_m\": 68\n },\n \"roster\": [\n {\n \"shirt_number\": 123,\n \"name\": \"<string>\",\n \"position\": \"<string>\",\n \"athlete_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"game": {
"game_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"status": "awaiting_upload",
"run_id": null,
"date": "2026-10-18",
"competition": "Example League",
"home_team": {
"team_id": "t-0451",
"team_side": "home",
"name": "Home FC"
},
"away_team": {
"team_id": "t-0388",
"team_side": "away",
"name": "Away United"
},
"pitch": {
"length_m": 105,
"width_m": 68
},
"periods": [
{
"period": 1,
"duration_s": 2843,
"home_attacking_direction": "left_to_right"
},
{
"period": 2,
"duration_s": 2911,
"home_attacking_direction": "right_to_left"
}
],
"roster": [
{
"player_id": "p07",
"team_id": "t-0451",
"shirt_number": 7,
"name": "Player Seven",
"position": "midfielder",
"athlete_id": "3c9e1f2a-8b7d-4c6e-9a5f-1d2e3b4c5a6f"
}
],
"data_available": []
}
}{
"error": "BadRequest",
"message": "The request parameters are invalid. Please review the request and try again."
}{
"error": "Unauthorized",
"message": "Bearer token is missing or invalid."
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource."
}{
"error": "TooManyRequests",
"message": "The rate limit has been exceeded. Please wait and try again later."
}{
"error": "InternalServerError",
"message": "An unexpected error occurred on the server. Please try again later."
}The Game Data API is in preview. Endpoints, fields and limits may change before release, and it is not yet available to call.
Authorizations
Body
application/json