Get model battle rankings
const options = {method: 'GET'};
fetch('https://www.ninjachat.ai/api/v1/battles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.ninjachat.ai/api/v1/battles"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://www.ninjachat.ai/api/v1/battles{}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Orchestration
Get model battle rankings
GET
/
battles
Get model battle rankings
const options = {method: 'GET'};
fetch('https://www.ninjachat.ai/api/v1/battles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.ninjachat.ai/api/v1/battles"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://www.ninjachat.ai/api/v1/battles{}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Response
Leaderboard or recent battles.
The response is of type object.