Brand kits
List the brand kits on your account. A brand kit holds your logo watermark, your intro and outro clips, and your brand colours and fonts. Pass a kit's _id as brandId when you generate a video and every video that request creates comes out branded.
Request
GEThttps://api.fliki.ai/v1/brands
Headers
{
"Content-type": "application/json",
"Authorization": "Bearer API_KEY"
}
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | Specifies that the request body format is JSON, allowing the server to parse the data correctly. |
| Authorization | Bearer YOUR_API_KEY | Generate your API Key in the automation section and replace YOUR_API_KEY with your actual key. |
Response
{
"data": [
{
"_id": String,
"name": String
}
]
}
| Key | Type | Description |
|---|---|---|
| _id | string | Unique identifier for the brand kit. This is the brandId you pass to generate/video. |
| name | string | Name of the brand kit, as shown in the app. |
The response lists the kits you own, plus any kit a teammate has shared with your team. Create and edit kits at app.fliki.ai/brand-kits; a kit's ID is also the last part of its URL there. Brand kits are available on Standard plans and above.
Example
- Bash
- TypeScript
- Python
- Go
cURL Request
curl \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-X GET https://api.fliki.ai/v1/brands
TypeScript Request
const apiKey = '<API_KEY>'; // Replace with your actual API key
const url = 'https://api.fliki.ai/v1/brands';
async function getBrands(apiKey: string) {
try {
const response = await fetch(url, {
method: 'GET',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
});
if (!response.ok) {
throw new Error(`Error: ${response.status} - ${response.statusText}`);
}
const { data } = await response.json();
console.log(data);
} catch (error) {
console.error('Error fetching brand kits:', error);
}
}
getBrands(apiKey);
Python Request
import requests
api_key = "<API_KEY>"
url = "https://api.fliki.ai/v1/brands"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json()["data"])
Go Request
package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
apiKey := "<API_KEY>"
url := "https://api.fliki.ai/v1/brands"
req, err := http.NewRequest("GET", url, nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+apiKey)
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result["data"])
}