Ping
curl --request GET \
--url https://api.bonai.io/news/pingimport requests
url = "https://api.bonai.io/news/ping"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bonai.io/news/ping', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bonai.io/news/ping"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.bonai.io/news/ping{
"id": "<string>",
"message": "pong",
"version": "2022-01-01",
"timestamp": 123
}API Reference
Ping
Simple endpoint to test API connectivity. This endpoint is public and does not require an API key.
GET
/
ping
Ping
curl --request GET \
--url https://api.bonai.io/news/pingimport requests
url = "https://api.bonai.io/news/ping"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bonai.io/news/ping', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bonai.io/news/ping"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.bonai.io/news/ping{
"id": "<string>",
"message": "pong",
"version": "2022-01-01",
"timestamp": 123
}Headers
API version to consume. Defaults to the latest version (2026-08-01).
Available options:
2026-08-01, 2024-01-01, 2022-01-01 Was this page helpful?