Health Check
curl --request GET \
--url https://api.fifteenth.com/v1beta/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fifteenth.com/v1beta/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fifteenth.com/v1beta/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fifteenth.com/v1beta/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fifteenth.com/v1beta/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fifteenth.com/v1beta/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fifteenth.com/v1beta/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"timestamp": "<string>"
}Health
Health Check
Check API service health and connectivity
GET
/
v1beta
/
health
Health Check
curl --request GET \
--url https://api.fifteenth.com/v1beta/health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fifteenth.com/v1beta/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fifteenth.com/v1beta/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fifteenth.com/v1beta/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fifteenth.com/v1beta/health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fifteenth.com/v1beta/health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fifteenth.com/v1beta/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"timestamp": "<string>"
}Overview
The Health Check endpoint allows you to verify that the Fifteenth API is operational and accessible from your application. This is useful for service monitoring, debugging connectivity issues, and validating your API configuration.This endpoint does not require authentication and can be called without an API key.
Request
No parameters required.Headers
string
Optional. Can be
application/jsonResponse
Success Response
string
API service status. Always
ok when the service is healthy.string
ISO 8601 timestamp of the health check response.
Examples
import requests
url = "https://api.fifteenth.com/v1beta/health"
response = requests.get(url)
print(f"Status: {response.status_code}")
print(f"Response: {response.json()}")
const url = 'https://api.fifteenth.com/v1beta/health';
const response = await fetch(url, {
method: 'GET'
});
const data = await response.json();
console.log('Status:', response.status);
console.log('Response:', data);
curl -X GET "https://api.fifteenth.com/v1beta/health"
Response Example
Successful Health Check
Response
{
"status": "ok",
"timestamp": "2024-01-15T10:30:00Z"
}
Usage Notes
- Use this endpoint to verify API connectivity before making authenticated requests
- No rate limiting applied to this endpoint
- Returns 200 status code when service is healthy