whoami
Tenant identity — granted scopes, sport allowlist, rate limit
GET
/
v1
/
whoami
Tenant identity introspection
curl --request GET \
--url https://ticktock.bet/v1/whoami \
--header 'X-API-Key: <api-key>'import requests
url = "https://ticktock.bet/v1/whoami"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://ticktock.bet/v1/whoami', 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://ticktock.bet/v1/whoami",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://ticktock.bet/v1/whoami"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ticktock.bet/v1/whoami")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ticktock.bet/v1/whoami")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"tenant_id": "0e1f…",
"name": "Acme Sportsbook",
"scopes": [
"cs2:matches:list",
"cs2:matches:read",
"cs2:markets:read",
"cs2:markets:settlements",
"cs2:stream:matches",
"cs2:stream:markets"
],
"sport_allowlist": [
"cs2"
],
"rate_limit_rpm": 600,
"allowed_games": [
"cs2"
]
}
}{
"detail": "Missing X-API-Key or $x$access-token header"
}{
"detail": "Required scope 'cs2:matches:detail' is not granted to this API key. Contact your account manager to extend the key's scopes."
}{
"detail": [
{
"type": "enum",
"loc": [
"query",
"time_filter"
],
"msg": "Input should be one of: 3m, 6m, 1y, all",
"input": "2w"
}
]
}{
"detail": "Rate limit exceeded (600 req/min)"
}What it returns
Introspection on the calling tenant — who you are, what your key can do, and how often you can call. First request you should make on any new key.{
"data": {
"tenant_id": "uuid",
"name": "Acme Sportsbook",
"scopes": ["cs2:matches:list", "cs2:markets:read", ...],
"sport_allowlist": ["cs2"],
"rate_limit_rpm": 600
}
}
scopes is shorter than expected, contact your account manager.
Required scope
Any valid key. No specific scope needed.Example
curl -H "X-API-Key: $TT_KEY" \
https://ticktock.bet/v1/whoami
Last modified on May 10, 2026
⌘I
Tenant identity introspection
curl --request GET \
--url https://ticktock.bet/v1/whoami \
--header 'X-API-Key: <api-key>'import requests
url = "https://ticktock.bet/v1/whoami"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://ticktock.bet/v1/whoami', 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://ticktock.bet/v1/whoami",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://ticktock.bet/v1/whoami"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ticktock.bet/v1/whoami")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ticktock.bet/v1/whoami")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"tenant_id": "0e1f…",
"name": "Acme Sportsbook",
"scopes": [
"cs2:matches:list",
"cs2:matches:read",
"cs2:markets:read",
"cs2:markets:settlements",
"cs2:stream:matches",
"cs2:stream:markets"
],
"sport_allowlist": [
"cs2"
],
"rate_limit_rpm": 600,
"allowed_games": [
"cs2"
]
}
}{
"detail": "Missing X-API-Key or $x$access-token header"
}{
"detail": "Required scope 'cs2:matches:detail' is not granted to this API key. Contact your account manager to extend the key's scopes."
}{
"detail": [
{
"type": "enum",
"loc": [
"query",
"time_filter"
],
"msg": "Input should be one of: 3m, 6m, 1y, all",
"input": "2w"
}
]
}{
"detail": "Rate limit exceeded (600 req/min)"
}