Health check
GET
/healthzResponses
200
Service health
servicestringrequiredstatusstringrequiredversionstringrequiredTry it
Server
Request
curl -X GET 'https://teakvault.com/api/healthz' \
-H 'Accept: application/json'const response = await fetch("https://teakvault.com/api/healthz", {
method: "GET",
headers: {
"Accept": "application/json"
}
});const response: Response = await fetch("https://teakvault.com/api/healthz", {
method: "GET",
headers: {
"Accept": "application/json"
}
});import requests
response = requests.get(
"https://teakvault.com/api/healthz",
headers={
"Accept": "application/json"
},
)package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://teakvault.com/api/healthz", nil)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}require "net/http"
uri = URI("https://teakvault.com/api/healthz")
request = Net::HTTP::Get.new(uri)
request["Accept"] = "application/json"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://teakvault.com/api/healthz',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Accept: application/json',
],
]);
$response = curl_exec($curl);Response
{
"service": "string",
"status": "string",
"version": "string"
}