Presign a batch of image assets
curl --request POST \
--url https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-splendor-tenant-id: <x-splendor-tenant-id>' \
--data '
{
"assets": [
{
"content_type": "<string>",
"object_size_bytes": 1,
"filename": "<string>"
}
]
}
'import requests
url = "https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads"
payload = { "assets": [
{
"content_type": "<string>",
"object_size_bytes": 1,
"filename": "<string>"
}
] }
headers = {
"x-splendor-tenant-id": "<x-splendor-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-splendor-tenant-id': '<x-splendor-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
assets: [{content_type: '<string>', object_size_bytes: 1, filename: '<string>'}]
})
};
fetch('https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads', 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.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads",
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([
'assets' => [
[
'content_type' => '<string>',
'object_size_bytes' => 1,
'filename' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-splendor-tenant-id: <x-splendor-tenant-id>"
],
]);
$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.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads"
payload := strings.NewReader("{\n \"assets\": [\n {\n \"content_type\": \"<string>\",\n \"object_size_bytes\": 1,\n \"filename\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-splendor-tenant-id", "<x-splendor-tenant-id>")
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.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads")
.header("x-splendor-tenant-id", "<x-splendor-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assets\": [\n {\n \"content_type\": \"<string>\",\n \"object_size_bytes\": 1,\n \"filename\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-splendor-tenant-id"] = '<x-splendor-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assets\": [\n {\n \"content_type\": \"<string>\",\n \"object_size_bytes\": 1,\n \"filename\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"assets": [
{
"bucket": "acme-uploads",
"expires_at": "2026-01-15T09:30:00Z",
"image_reference": "s3://acme-uploads/sources/catalog/hosted/2026/07/01/abc123.png",
"key": "sources/catalog/hosted/2026/07/01/abc123.png",
"required_headers": {
"content-type": "image/png"
},
"upload_session_id": "ups_01H8Z4",
"upload_url": "https://acme-uploads.s3.amazonaws.com/..."
}
]
}{
"detail": "Dataset not found"
}{
"detail": "Dataset not found"
}{
"detail": "Dataset not found"
}{
"detail": "Dataset not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Sources & ingest
Presign a batch of image assets
Presigns many image objects in one call, returning a single PUT URL and a reusable image_reference per asset. Unlike the per-object upload flow, no ingest run is created per asset — store the images, then point records’ image_embeddings fields at each image_reference. The scalable path for large image corpora.
POST
/
v1
/
ingest
/
sources
/
{source_key}
/
asset-uploads
Presign a batch of image assets
curl --request POST \
--url https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-splendor-tenant-id: <x-splendor-tenant-id>' \
--data '
{
"assets": [
{
"content_type": "<string>",
"object_size_bytes": 1,
"filename": "<string>"
}
]
}
'import requests
url = "https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads"
payload = { "assets": [
{
"content_type": "<string>",
"object_size_bytes": 1,
"filename": "<string>"
}
] }
headers = {
"x-splendor-tenant-id": "<x-splendor-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-splendor-tenant-id': '<x-splendor-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
assets: [{content_type: '<string>', object_size_bytes: 1, filename: '<string>'}]
})
};
fetch('https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads', 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.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads",
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([
'assets' => [
[
'content_type' => '<string>',
'object_size_bytes' => 1,
'filename' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-splendor-tenant-id: <x-splendor-tenant-id>"
],
]);
$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.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads"
payload := strings.NewReader("{\n \"assets\": [\n {\n \"content_type\": \"<string>\",\n \"object_size_bytes\": 1,\n \"filename\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-splendor-tenant-id", "<x-splendor-tenant-id>")
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.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads")
.header("x-splendor-tenant-id", "<x-splendor-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assets\": [\n {\n \"content_type\": \"<string>\",\n \"object_size_bytes\": 1,\n \"filename\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withsplendor.com/v1/ingest/sources/{source_key}/asset-uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-splendor-tenant-id"] = '<x-splendor-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assets\": [\n {\n \"content_type\": \"<string>\",\n \"object_size_bytes\": 1,\n \"filename\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"assets": [
{
"bucket": "acme-uploads",
"expires_at": "2026-01-15T09:30:00Z",
"image_reference": "s3://acme-uploads/sources/catalog/hosted/2026/07/01/abc123.png",
"key": "sources/catalog/hosted/2026/07/01/abc123.png",
"required_headers": {
"content-type": "image/png"
},
"upload_session_id": "ups_01H8Z4",
"upload_url": "https://acme-uploads.s3.amazonaws.com/..."
}
]
}{
"detail": "Dataset not found"
}{
"detail": "Dataset not found"
}{
"detail": "Dataset not found"
}{
"detail": "Dataset not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
API token issued from the Splendor console.
Headers
Selects the tenant (workspace) the request acts within.
Path Parameters
Body
application/json
Required array length:
1 - 256 elementsShow child attributes
Show child attributes
Response
Successful Response
Show child attributes
Show child attributes