curl --request GET \
--url https://api.trycarhub.com/v1/assets/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycarhub.com/v1/assets/{id}"
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/assets/{id}', 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/assets/{id}",
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/assets/{id}"
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/assets/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycarhub.com/v1/assets/{id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "asset",
"category": "background",
"kind": "background",
"name": "<string>",
"content_type": "<string>",
"size_bytes": 1,
"total_size_bytes": 1,
"state": "available",
"created": 1755300000,
"banner_placement": "top",
"background_id": 123,
"link": "<string>",
"download_url": "<string>",
"files": [
{
"path": "<string>",
"size_bytes": 1,
"download_url": "<string>"
}
]
}Retrieve an organization asset
Requires assets:read or assets:write. Returns fresh signed links only for available assets. Completed deletions and assets belonging to other organizations return 404.
curl --request GET \
--url https://api.trycarhub.com/v1/assets/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trycarhub.com/v1/assets/{id}"
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/assets/{id}', 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/assets/{id}",
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/assets/{id}"
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/assets/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycarhub.com/v1/assets/{id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "asset",
"category": "background",
"kind": "background",
"name": "<string>",
"content_type": "<string>",
"size_bytes": 1,
"total_size_bytes": 1,
"state": "available",
"created": 1755300000,
"banner_placement": "top",
"background_id": 123,
"link": "<string>",
"download_url": "<string>",
"files": [
{
"path": "<string>",
"size_bytes": 1,
"download_url": "<string>"
}
]
}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.
Path Parameters
Response
Asset metadata.
Permanent organization asset. Scene size includes all image layers and YAML. Only available assets have signed links and can be selected for new jobs.
Asset UUID, including for custom background scenes.
"asset"background, license_plate, banner, logo, misc Legacy alias of category, retained for existing clients.
background, license_plate, banner, logo, misc Total bytes in the asset package.
x >= 0Total bytes including all scene layers and YAML.
x >= 0available, uploading, deleting, delete_failed, deleted Epoch seconds, UTC.
1755300000
top, bottom, null Historical numeric scene ID used in custom-- selectors.
Short-lived signed preview URL. Empty or omitted for unavailable assets; misc files use attachment downloads.
Short-lived signed download URL. Uses attachment Content-Disposition for misc files. Empty or omitted when unavailable.
Background package files returned by GET for an available scene. Includes all layers and YAML with individual signed download URLs. Omitted when unavailable.
Show child attributes
Show child attributes