Get reference data
curl --request GET \
--url https://api.kintra.io/api/v1/system/masterdataconst options = {method: 'GET'};
fetch('https://api.kintra.io/api/v1/system/masterdata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kintra.io/api/v1/system/masterdata"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"clubs": [
{
"country_id": "<string>",
"icon_url": "<string>",
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"sport_id": "<string>"
}
],
"countries": [
{
"code": "<string>",
"icon_url": "<string>",
"id": "<string>",
"name": "<string>"
}
]
},
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}Reference data
Get reference data
Returns the reference data the other routes take ids from: clubs and countries. Read it once and cache it rather than resolving an id per request.
GET
/
system
/
masterdata
Get reference data
curl --request GET \
--url https://api.kintra.io/api/v1/system/masterdataconst options = {method: 'GET'};
fetch('https://api.kintra.io/api/v1/system/masterdata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kintra.io/api/v1/system/masterdata"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"clubs": [
{
"country_id": "<string>",
"icon_url": "<string>",
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"sport_id": "<string>"
}
],
"countries": [
{
"code": "<string>",
"icon_url": "<string>",
"id": "<string>",
"name": "<string>"
}
]
},
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}{
"success": true,
"data": null,
"errors": [
{
"message": "<string>",
"path": "<string>"
}
],
"message": "<string>"
}⌘I

