List the endpoint catalog
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,
"extras": [
{
"code": "<string>",
"label": "<string>",
"price_minor": 1,
"billing_unit": "request",
"conditions": [
{
"parameter": "<string>",
"operator": "equals",
"value": "<string>"
}
],
"requires_paid_organization": false
}
],
"extra_parameters": [
{
"parameter": "<string>",
"type": "string",
"enum": [
"<string>"
],
"default": "<string>"
}
],
"category": {
"id": "documents-and-data",
"name": "Documents & data extraction",
"order": 1
},
"tags": [
"License plate",
"Identification"
],
"image": "<string>",
"video": "<string>",
"demo": "<string>",
"runnable": true,
"unavailable_reason": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"is_paid_organization": true
}{
"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",
"retryable": true
}
}Catalog
List the endpoint catalog
List endpoint availability, price, currency, billing unit, and input kind. No API key is required.
Unauthenticated requests return public prices. With an API key, prices can reflect organization overrides and runnable reports access. Planned endpoints cannot accept jobs; disabled endpoints are omitted.
GET
/
v1
/
endpoints
List the endpoint catalog
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,
"extras": [
{
"code": "<string>",
"label": "<string>",
"price_minor": 1,
"billing_unit": "request",
"conditions": [
{
"parameter": "<string>",
"operator": "equals",
"value": "<string>"
}
],
"requires_paid_organization": false
}
],
"extra_parameters": [
{
"parameter": "<string>",
"type": "string",
"enum": [
"<string>"
],
"default": "<string>"
}
],
"category": {
"id": "documents-and-data",
"name": "Documents & data extraction",
"order": 1
},
"tags": [
"License plate",
"Identification"
],
"image": "<string>",
"video": "<string>",
"demo": "<string>",
"runnable": true,
"unavailable_reason": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"is_paid_organization": true
}{
"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",
"retryable": true
}
}Authorizations
Response
The catalog.
Pass next_cursor as cursor for the next page. Stop when has_more is false. Cursors are opaque and stable across inserts. Do not construct them.