curl --request GET \
--url https://api.trycarhub.com/v1/endpoints \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycarhub.com/v1/endpoints"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trycarhub.com/v1/endpoints', 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.trycarhub.com/v1/endpoints",
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.trycarhub.com/v1/endpoints"
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.trycarhub.com/v1/endpoints")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycarhub.com/v1/endpoints")
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{
"data": [
{
"slug": "vehicle.pose",
"object": "endpoint",
"name": "License Plate Reader",
"path": "/v1/plate/read",
"family": "A",
"price": 1,
"currency": "USD",
"billing_unit": "image",
"metering_strategy": "request",
"max_units": 2,
"status": "planned",
"access": "unavailable",
"preview": true,
"input_kind": "image",
"sync_allowed": true,
"description": "<string>",
"active": true,
"image": "<string>",
"video": "<string>",
"demo": "<string>",
"runnable": true,
"unavailable_reason": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"type": "internal",
"code": "internal_error",
"message": "An unexpected error occurred.",
"param": null,
"doc_url": "https://docs.trycarhub.com/errors/internal_error",
"request_id": "req_2Kd8xQmPvL4T"
}
}List the endpoint catalogue
Every planned or available endpoint, with availability, metering, price and currency, the kind of input
it takes and whether it accepts wait=true. Prices and limits live in configuration, not
in code, so read them here rather than hard-coding them.
Disabled endpoints are omitted; planned endpoints remain visible but cannot accept jobs.
Authentication is optional. With an API key, prices reflect organisation overrides and
runnable explains whether that key can call each endpoint.
curl --request GET \
--url https://api.trycarhub.com/v1/endpoints \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycarhub.com/v1/endpoints"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trycarhub.com/v1/endpoints', 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.trycarhub.com/v1/endpoints",
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.trycarhub.com/v1/endpoints"
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.trycarhub.com/v1/endpoints")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycarhub.com/v1/endpoints")
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{
"data": [
{
"slug": "vehicle.pose",
"object": "endpoint",
"name": "License Plate Reader",
"path": "/v1/plate/read",
"family": "A",
"price": 1,
"currency": "USD",
"billing_unit": "image",
"metering_strategy": "request",
"max_units": 2,
"status": "planned",
"access": "unavailable",
"preview": true,
"input_kind": "image",
"sync_allowed": true,
"description": "<string>",
"active": true,
"image": "<string>",
"video": "<string>",
"demo": "<string>",
"runnable": true,
"unavailable_reason": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"type": "internal",
"code": "internal_error",
"message": "An unexpected error occurred.",
"param": null,
"doc_url": "https://docs.trycarhub.com/errors/internal_error",
"request_id": "req_2Kd8xQmPvL4T"
}
}Authorizations
Organisation API key, sent as Authorization: Bearer chk_live_….
chk_live_…— production inference, live credits,livemode: true,is_staging: false.chk_stg_…— real inference classified as staging, the same live credits,livemode: true,is_staging: true.chk_test_…— identical pipeline against the fixture backend, test credits,livemode: false.
Keys are stored hashed; only the prefix (chk_live_a1b2…) is ever displayed again. A key
may be scoped to a subset of endpoint families — calling outside its scopes is a 403.
Response
The catalogue.
Cursor pagination, used by every list in this API. Ask for the next page by passing
next_cursor back as cursor; stop when has_more is false. Cursors are opaque and
stable across inserts — never build one yourself.