Get Brand Kit
Returns one brand kit with its colors, logos and fonts and the role each plays. While status is loading these are provisional; poll every 2 to 5 seconds until status is completed.
curl --request GET \
--url https://api.heygen.com/v3/brand-kits/{brand_kit_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.heygen.com/v3/brand-kits/{brand_kit_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.heygen.com/v3/brand-kits/{brand_kit_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.heygen.com/v3/brand-kits/{brand_kit_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 => [
"x-api-key: <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 := "https://api.heygen.com/v3/brand-kits/{brand_kit_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.heygen.com/v3/brand-kits/{brand_kit_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heygen.com/v3/brand-kits/{brand_kit_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"brand_kit_id": "<string>",
"name": "<string>",
"status": "loading",
"colors": [
"<string>"
],
"color_roles": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>",
"accent": "<string>"
},
"logos": [
{
"logo_id": "<string>",
"name": "<string>",
"url": "<string>"
}
],
"logo_roles": {
"primary": "<string>"
},
"fonts": [
{
"font_id": "<string>",
"name": "<string>"
}
],
"font_roles": {
"title_text": {
"font_id": "<string>",
"weight": 123
},
"body_text": {
"font_id": "<string>",
"weight": 123
}
}
}
}{
"error": {
"code": "invalid_parameter",
"message": "Video not found",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "unknown_node_type",
"message": "Unknown node type",
"node_id": "<string>",
"port": "<string>",
"path": "<string>"
}
]
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired API key. Verify your x-api-key header.",
"param": null,
"doc_url": null
}
}{
"error": {
"code": "resource_not_found",
"message": "Brand kit not found.",
"param": null,
"doc_url": null
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the duration specified in the Retry-After header.",
"param": null,
"doc_url": null
}
}Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Path Parameters
Unique brand kit identifier
Response
Successful response
A single brand kit with its colors, logos and fonts.
A brand kit imported from a website is assembled in the background. While status is loading
the collections and role fields are provisional and may be empty or incomplete; the import has
finished contributing to them once status is completed. A kit whose import failed reports
error and keeps whatever was assembled before the failure. A kit can still be edited in the
HeyGen web app afterwards, so completed means the import is done, not that the kit is frozen.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.heygen.com/v3/brand-kits/{brand_kit_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.heygen.com/v3/brand-kits/{brand_kit_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.heygen.com/v3/brand-kits/{brand_kit_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.heygen.com/v3/brand-kits/{brand_kit_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 => [
"x-api-key: <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 := "https://api.heygen.com/v3/brand-kits/{brand_kit_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.heygen.com/v3/brand-kits/{brand_kit_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.heygen.com/v3/brand-kits/{brand_kit_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"brand_kit_id": "<string>",
"name": "<string>",
"status": "loading",
"colors": [
"<string>"
],
"color_roles": {
"primary": "<string>",
"secondary": "<string>",
"tertiary": "<string>",
"accent": "<string>"
},
"logos": [
{
"logo_id": "<string>",
"name": "<string>",
"url": "<string>"
}
],
"logo_roles": {
"primary": "<string>"
},
"fonts": [
{
"font_id": "<string>",
"name": "<string>"
}
],
"font_roles": {
"title_text": {
"font_id": "<string>",
"weight": 123
},
"body_text": {
"font_id": "<string>",
"weight": 123
}
}
}
}{
"error": {
"code": "invalid_parameter",
"message": "Video not found",
"param": "<string>",
"doc_url": "<string>",
"errors": [
{
"code": "unknown_node_type",
"message": "Unknown node type",
"node_id": "<string>",
"port": "<string>",
"path": "<string>"
}
]
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired API key. Verify your x-api-key header.",
"param": null,
"doc_url": null
}
}{
"error": {
"code": "resource_not_found",
"message": "Brand kit not found.",
"param": null,
"doc_url": null
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the duration specified in the Retry-After header.",
"param": null,
"doc_url": null
}
}
