List Ingest Batches
curl --request GET \
--url https://api.example.com/automations/ingest-batchesimport requests
url = "https://api.example.com/automations/ingest-batches"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/automations/ingest-batches', 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.example.com/automations/ingest-batches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/automations/ingest-batches"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/automations/ingest-batches")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/automations/ingest-batches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyAutomations
List Ingest Batches
List storage-trigger ingest batches for a workspace, including uploads still waiting to process and batches that failed before a run was created.
GET
/
automations
/
ingest-batches
List Ingest Batches
curl --request GET \
--url https://api.example.com/automations/ingest-batchesimport requests
url = "https://api.example.com/automations/ingest-batches"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/automations/ingest-batches', 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.example.com/automations/ingest-batches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/automations/ingest-batches"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/automations/ingest-batches")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/automations/ingest-batches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReturns ingest batches (files that arrived through Drive, Dropbox, or S3 storage triggers) across every agent in a workspace. Use it to poll for uploads that are stuck waiting on processing or that failed before a run could be created.
A batch with
Request
curl -X GET "https://api.mosaic.so/automations/ingest-batches?status=failed" \
-H "Authorization: Bearer mk_your_api_key" \
-H "x-workspace-id: [workspace_id]"
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
since | string | No | ISO timestamp lower bound on batch created_at (default: 14 days ago). |
status | string | No | Comma-separated batch statuses (for example open,failed). |
agent_id | string | No | Restrict results to one agent. |
production_id | string | No | Restrict results to one production. |
batch_key | string | No | Restrict results to one batch key. |
limit | number | No | Page size (1-500, default 200). |
offset | number | No | Number of rows to skip for pagination. |
Response
{
"ingest_batches": [
{
"id": "6b1f2c3d-0000-4a00-8f00-000000000001",
"provider": "google_drive",
"agent_id": "123e4567-e89b-12d3-a456-789012345678",
"agent_name": "Transcoding Pipeline",
"status": "failed",
"batch_key": "PROD-001",
"production_id": null,
"asset_count": 3,
"retry_count": 11,
"last_error": "drive_path_unresolved_retry_exhausted",
"error_message": "drive_path_unresolved",
"opened_at": "2026-10-13T18:00:00Z",
"last_event_at": "2026-10-13T18:02:00Z",
"scheduled_flush_at": "2026-10-13T18:10:00Z",
"agent_state_id": null,
"created_at": "2026-10-13T18:00:00Z"
}
],
"next_offset": null
}
status: "open" or "flushing" and an old last_event_at is waiting on processing. A failed batch carries the reason in last_error/error_message. Once flushed, agent_state_id links to the run returned by List Automation Runs.Was this page helpful?