Error
A valid request URL is required to generate request examplesService
Service health check (HEAD)
Same as GET but returns only headers, no body.
HEAD
/
workflow
/
status
Service health check (HEAD)
curl --request HEAD \
--url {protocol}://{host}:{port}/workflow/status \
--header 'X-Auth: <api-key>'import requests
url = "{protocol}://{host}:{port}/workflow/status"
headers = {"X-Auth": "<api-key>"}
response = requests.head(url, headers=headers)
print(response.text)const options = {method: 'HEAD', headers: {'X-Auth': '<api-key>'}};
fetch('{protocol}://{host}:{port}/workflow/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{protocol}://{host}:{port}/workflow/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
CURLOPT_HTTPHEADER => [
"X-Auth: <api-key>"
],
]);
$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 := "{protocol}://{host}:{port}/workflow/status"
req, _ := http.NewRequest("HEAD", url, nil)
req.Header.Add("X-Auth", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.head("{protocol}://{host}:{port}/workflow/status")
.header("X-Auth", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{protocol}://{host}:{port}/workflow/status")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Head.new(url)
request["X-Auth"] = '<api-key>'
response = http.request(request)
puts response.read_bodyAuthorizations
Service-to-service API key
Response
Service is healthy
⌘I