Finalize a presigned video upload
curl --request POST \
--url https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_id": "<string>",
"upload_id": "<string>",
"parts": [
{
"part_number": 2,
"etag": "<string>"
}
],
"filename": "<string>",
"hint": "<string>"
}
'import requests
url = "https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete"
payload = {
"file_id": "<string>",
"upload_id": "<string>",
"parts": [
{
"part_number": 2,
"etag": "<string>"
}
],
"filename": "<string>",
"hint": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_id: '<string>',
upload_id: '<string>',
parts: [{part_number: 2, etag: '<string>'}],
filename: '<string>',
hint: '<string>'
})
};
fetch('https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete', 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.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete",
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([
'file_id' => '<string>',
'upload_id' => '<string>',
'parts' => [
[
'part_number' => 2,
'etag' => '<string>'
]
],
'filename' => '<string>',
'hint' => '<string>'
]),
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.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete"
payload := strings.NewReader("{\n \"file_id\": \"<string>\",\n \"upload_id\": \"<string>\",\n \"parts\": [\n {\n \"part_number\": 2,\n \"etag\": \"<string>\"\n }\n ],\n \"filename\": \"<string>\",\n \"hint\": \"<string>\"\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.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_id\": \"<string>\",\n \"upload_id\": \"<string>\",\n \"parts\": [\n {\n \"part_number\": 2,\n \"etag\": \"<string>\"\n }\n ],\n \"filename\": \"<string>\",\n \"hint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete")
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 \"file_id\": \"<string>\",\n \"upload_id\": \"<string>\",\n \"parts\": [\n {\n \"part_number\": 2,\n \"etag\": \"<string>\"\n }\n ],\n \"filename\": \"<string>\",\n \"hint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "uploaded",
"key": "<string>",
"size": 123,
"file_id": "<string>"
}{
"error_code": "quota_exceeded",
"message": "Ingest rejected: this workspace is over its plan quota.",
"details": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Ingestion
Finalize a presigned video upload
Finalize the multipart upload, verify the object (true size ≤150MB and
real MP4/MOV magic bytes — never trust the declared values), then publish
a typed video event (VideoRawData contract) that routes the file to
media enrichment. An optional hint rides on event.metadata as
enrichment_hint and is folded into the analysis prompt.
POST
/
v1
/
custom-connectors
/
{connector_id}
/
ingest
/
video
/
complete
Finalize a presigned video upload
curl --request POST \
--url https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_id": "<string>",
"upload_id": "<string>",
"parts": [
{
"part_number": 2,
"etag": "<string>"
}
],
"filename": "<string>",
"hint": "<string>"
}
'import requests
url = "https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete"
payload = {
"file_id": "<string>",
"upload_id": "<string>",
"parts": [
{
"part_number": 2,
"etag": "<string>"
}
],
"filename": "<string>",
"hint": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_id: '<string>',
upload_id: '<string>',
parts: [{part_number: 2, etag: '<string>'}],
filename: '<string>',
hint: '<string>'
})
};
fetch('https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete', 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.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete",
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([
'file_id' => '<string>',
'upload_id' => '<string>',
'parts' => [
[
'part_number' => 2,
'etag' => '<string>'
]
],
'filename' => '<string>',
'hint' => '<string>'
]),
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.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete"
payload := strings.NewReader("{\n \"file_id\": \"<string>\",\n \"upload_id\": \"<string>\",\n \"parts\": [\n {\n \"part_number\": 2,\n \"etag\": \"<string>\"\n }\n ],\n \"filename\": \"<string>\",\n \"hint\": \"<string>\"\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.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_id\": \"<string>\",\n \"upload_id\": \"<string>\",\n \"parts\": [\n {\n \"part_number\": 2,\n \"etag\": \"<string>\"\n }\n ],\n \"filename\": \"<string>\",\n \"hint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/video/complete")
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 \"file_id\": \"<string>\",\n \"upload_id\": \"<string>\",\n \"parts\": [\n {\n \"part_number\": 2,\n \"etag\": \"<string>\"\n }\n ],\n \"filename\": \"<string>\",\n \"hint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "uploaded",
"key": "<string>",
"size": 123,
"file_id": "<string>"
}{
"error_code": "quota_exceeded",
"message": "Ingest rejected: this workspace is over its plan quota.",
"details": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Pass your pk_live_... API key as a Bearer token.
Path Parameters
Body
application/json
file_id from the upload-url response.
upload_id from the upload-url response.
All uploaded parts with their ETags.
Minimum array length:
1Show child attributes
Show child attributes
Original filename, stored on the video evidence.
Free-text hint about the video's content, folded into the enrichment prompt.
Maximum string length:
2000Was this page helpful?