Healthcheck
curl --request GET \
--url https://api.kynasmith.dev/healthz \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kynasmith.dev/healthz"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kynasmith.dev/healthz', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"environment": "<string>",
"role": "<string>",
"status": "ok"
}health
Healthcheck
Report the API health for bootstrap validation.
GET
/
healthz
Healthcheck
curl --request GET \
--url https://api.kynasmith.dev/healthz \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kynasmith.dev/healthz"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kynasmith.dev/healthz', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"environment": "<string>",
"role": "<string>",
"status": "ok"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.