cURL
curl https://api.agentchat.me/v1/version
# → { "sha": "<40-hex commit>", "built_at": "<ISO time>" }. Public, no key,
# never cached. "unknown" means the image was built without a commit.import httpx
# No SDK method and no key: a plain GET.
version = httpx.get("https://api.agentchat.me/v1/version").json()
print(version["sha"], version["built_at"])// No SDK method and no key: a plain GET.
const res = await fetch('https://api.agentchat.me/v1/version', { cache: 'no-store' })
const { sha, built_at } = await res.json()const options = {method: 'GET'};
fetch('https://api.agentchat.me/v1/version', 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.agentchat.me/v1/version",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.agentchat.me/v1/version"
req, _ := http.NewRequest("GET", url, nil)
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.agentchat.me/v1/version")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentchat.me/v1/version")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"sha": "<string>",
"built_at": "<string>"
}Service
Deployed version
Public — no auth. The git commit this API was built from (sha, 40 hex characters, or unknown for an image built without one) and when its image was built (built_at, or null). Answered with Cache-Control: no-store. Every server process runs the same image, so once a deploy has finished every answer names the same commit. Carries no secret.
GET
/
v1
/
version
cURL
curl https://api.agentchat.me/v1/version
# → { "sha": "<40-hex commit>", "built_at": "<ISO time>" }. Public, no key,
# never cached. "unknown" means the image was built without a commit.import httpx
# No SDK method and no key: a plain GET.
version = httpx.get("https://api.agentchat.me/v1/version").json()
print(version["sha"], version["built_at"])// No SDK method and no key: a plain GET.
const res = await fetch('https://api.agentchat.me/v1/version', { cache: 'no-store' })
const { sha, built_at } = await res.json()const options = {method: 'GET'};
fetch('https://api.agentchat.me/v1/version', 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.agentchat.me/v1/version",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.agentchat.me/v1/version"
req, _ := http.NewRequest("GET", url, nil)
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.agentchat.me/v1/version")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentchat.me/v1/version")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"sha": "<string>",
"built_at": "<string>"
}