cUrl
curl --location --request POST 'https://api.catalogix.ai/v1/assets?store_uuid=67762d4ce590324df813bd8c&channel=SMP' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '[\n {\n "parent_code": "SKU001",\n "asset_type": "image",\n "assets": {\n "Image URL 1": "https://cdn.example.com/img1.jpg"\n }\n }\n]'import requests
import json
url = "https://api.catalogix.ai/v1/assets?store_uuid=67762d4ce590324df813bd8c&channel=SMP"
payload = json.dumps([
{
"parent_code": "SKU001",
"asset_type": "image",
"assets": {
"Image URL 1": "https://cdn.example.com/img1.jpg"
}
}
])
headers = {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
parent_code: 'SKU001',
asset_type: 'image',
assets: {
'Image URL 1': 'https://cdn.example.com/img1.jpg',
'Image URL 2': 'https://cdn.example.com/img2.jpg'
}
}
])
};
fetch('https://api.catalogix.ai/v1/assets', 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.catalogix.ai/v1/assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'parent_code' => 'SKU001',
'asset_type' => 'image',
'assets' => [
'Image URL 1' => 'https://cdn.example.com/img1.jpg',
'Image URL 2' => 'https://cdn.example.com/img2.jpg'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.catalogix.ai/v1/assets"
payload := strings.NewReader("[\n {\n \"parent_code\": \"SKU001\",\n \"asset_type\": \"image\",\n \"assets\": {\n \"Image URL 1\": \"https://cdn.example.com/img1.jpg\",\n \"Image URL 2\": \"https://cdn.example.com/img2.jpg\"\n }\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.catalogix.ai/v1/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"parent_code\": \"SKU001\",\n \"asset_type\": \"image\",\n \"assets\": {\n \"Image URL 1\": \"https://cdn.example.com/img1.jpg\",\n \"Image URL 2\": \"https://cdn.example.com/img2.jpg\"\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.catalogix.ai/v1/assets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"parent_code\": \"SKU001\",\n \"asset_type\": \"image\",\n \"assets\": {\n \"Image URL 1\": \"https://cdn.example.com/img1.jpg\",\n \"Image URL 2\": \"https://cdn.example.com/img2.jpg\"\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"status": {
"code": 0,
"message": "SUCCESS",
"request_id": "8c8b2b7e-23d7-4c2a-91b0-2a7c4dfbb312"
},
"data": {
"created": 1,
"updated": 0,
"failed": 0,
"error_info": [
{}
]
}
}{
"detail": "<string>",
"status": "error"
}{
"status": {
"code": -1,
"message": "Unauthorized – invalid or missing Bearer token"
}
}{
"status": {
"code": -1,
"message": "Internal server error. Please contact support@catalogix.ai"
}
}{
"detail": "<string>",
"status": "error"
}Asset APIs
Create Assets
Create or update asset links with rank assignment. Supports batch input.
POST
/
assets
cUrl
curl --location --request POST 'https://api.catalogix.ai/v1/assets?store_uuid=67762d4ce590324df813bd8c&channel=SMP' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '[\n {\n "parent_code": "SKU001",\n "asset_type": "image",\n "assets": {\n "Image URL 1": "https://cdn.example.com/img1.jpg"\n }\n }\n]'import requests
import json
url = "https://api.catalogix.ai/v1/assets?store_uuid=67762d4ce590324df813bd8c&channel=SMP"
payload = json.dumps([
{
"parent_code": "SKU001",
"asset_type": "image",
"assets": {
"Image URL 1": "https://cdn.example.com/img1.jpg"
}
}
])
headers = {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
parent_code: 'SKU001',
asset_type: 'image',
assets: {
'Image URL 1': 'https://cdn.example.com/img1.jpg',
'Image URL 2': 'https://cdn.example.com/img2.jpg'
}
}
])
};
fetch('https://api.catalogix.ai/v1/assets', 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.catalogix.ai/v1/assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'parent_code' => 'SKU001',
'asset_type' => 'image',
'assets' => [
'Image URL 1' => 'https://cdn.example.com/img1.jpg',
'Image URL 2' => 'https://cdn.example.com/img2.jpg'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.catalogix.ai/v1/assets"
payload := strings.NewReader("[\n {\n \"parent_code\": \"SKU001\",\n \"asset_type\": \"image\",\n \"assets\": {\n \"Image URL 1\": \"https://cdn.example.com/img1.jpg\",\n \"Image URL 2\": \"https://cdn.example.com/img2.jpg\"\n }\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.catalogix.ai/v1/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"parent_code\": \"SKU001\",\n \"asset_type\": \"image\",\n \"assets\": {\n \"Image URL 1\": \"https://cdn.example.com/img1.jpg\",\n \"Image URL 2\": \"https://cdn.example.com/img2.jpg\"\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.catalogix.ai/v1/assets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"parent_code\": \"SKU001\",\n \"asset_type\": \"image\",\n \"assets\": {\n \"Image URL 1\": \"https://cdn.example.com/img1.jpg\",\n \"Image URL 2\": \"https://cdn.example.com/img2.jpg\"\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"status": {
"code": 0,
"message": "SUCCESS",
"request_id": "8c8b2b7e-23d7-4c2a-91b0-2a7c4dfbb312"
},
"data": {
"created": 1,
"updated": 0,
"failed": 0,
"error_info": [
{}
]
}
}{
"detail": "<string>",
"status": "error"
}{
"status": {
"code": -1,
"message": "Unauthorized – invalid or missing Bearer token"
}
}{
"status": {
"code": -1,
"message": "Internal server error. Please contact support@catalogix.ai"
}
}{
"detail": "<string>",
"status": "error"
}Authorizations
Pass the API token as a Bearer token in the Authorization header.
Headers
Optional trace ID
Query Parameters
Store identifier
Channel for all assets in the request
Body
application/json
Parent/product code
Example:
"SKU001"
Defaults to image
Example:
"image"
Map of image attribute name to URL
Show child attributes
Show child attributes
Example:
{ "Image URL 1": "https://cdn.example.com/img1.jpg" }
Optional; resolved via search API if not provided
⌘I