Create batch tasks - cloro

Documentation Index

Fetch the complete documentation index at: /docs/llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content

Assistant

Responses are generated using AI and may contain mistakes.

Create batch async tasks

cURL

curl --request POST \
  --url https://api.cloro.dev/v1/async/task/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[\
  {\
    "taskType": "CHATGPT",\
    "priority": 5,\
    "idempotencyKey": "batch-chatgpt-001",\
    "webhook": {\
      "url": "https://your-app.com/webhook-handler"\
    },\
    "payload": {\
      "prompt": "What do you know about Acme Corp?",\
      "country": "US"\
    }\
  },\
  {\
    "taskType": "AIMODE",\
    "priority": 3,\
    "idempotencyKey": "batch-aimode-001",\
    "payload": {\
      "prompt": "Latest news about Acme Corp",\
      "country": "US"\
    }\
  }\
]
'
import requests

url = "https://api.cloro.dev/v1/async/task/batch"

payload = [\
    {\
        "taskType": "CHATGPT",\
        "priority": 5,\
        "idempotencyKey": "batch-chatgpt-001",\
        "webhook": { "url": "https://your-app.com/webhook-handler" },\
        "payload": {\
            "prompt": "What do you know about Acme Corp?",\
            "country": "US"\
        }\
    },\
    {\
        "taskType": "AIMODE",\
        "priority": 3,\
        "idempotencyKey": "batch-aimode-001",\
        "payload": {\
            "prompt": "Latest news about Acme Corp",\
            "country": "US"\
        }\
    }\
]
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([\
    {\
      taskType: 'CHATGPT',\
      priority: 5,\
      idempotencyKey: 'batch-chatgpt-001',\
      webhook: {url: 'https://your-app.com/webhook-handler'},\
      payload: {prompt: 'What do you know about Acme Corp?', country: 'US'}\
    },\
    {\
      taskType: 'AIMODE',\
      priority: 3,\
      idempotencyKey: 'batch-aimode-001',\
      payload: {prompt: 'Latest news about Acme Corp', country: 'US'}\
    }\
  ])
};

fetch('https://api.cloro.dev/v1/async/task/batch', 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.cloro.dev/v1/async/task/batch",\
  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([\
    [\
        'taskType' => 'CHATGPT',\
        'priority' => 5,\
        'idempotencyKey' => 'batch-chatgpt-001',\
        'webhook' => [\
                'url' => 'https://your-app.com/webhook-handler'\
        ],\
        'payload' => [\
                'prompt' => 'What do you know about Acme Corp?',\
                'country' => 'US'\
        ]\
    ],\
    [\
        'taskType' => 'AIMODE',\
        'priority' => 3,\
        'idempotencyKey' => 'batch-aimode-001',\
        'payload' => [\
                'prompt' => 'Latest news about Acme Corp',\
                'country' => 'US'\
        ]\
    ]\
  ]),\
  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.cloro.dev/v1/async/task/batch"

payload := strings.NewReader("[\n  {\n    \"taskType\": \"CHATGPT\",\n    \"priority\": 5,\n    \"idempotencyKey\": \"batch-chatgpt-001\",\n    \"webhook\": {\n      \"url\": \"https://your-app.com/webhook-handler\"\n    },\n    \"payload\": {\n      \"prompt\": \"What do you know about Acme Corp?\",\n      \"country\": \"US\"\n    }\n  },\n  {\n    \"taskType\": \"AIMODE\",\n    \"priority\": 3,\n    \"idempotencyKey\": \"batch-aimode-001\",\n    \"payload\": {\n      \"prompt\": \"Latest news about Acme Corp\",\n      \"country\": \"US\"\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.cloro.dev/v1/async/task/batch")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"taskType\": \"CHATGPT\",\n    \"priority\": 5,\n    \"idempotencyKey\": \"batch-chatgpt-001\",\n    \"webhook\": {\n      \"url\": \"https://your-app.com/webhook-handler\"\n    },\n    \"payload\": {\n      \"prompt\": \"What do you know about Acme Corp?\",\n      \"country\": \"US\"\n    }\n  },\n  {\n    \"taskType\": \"AIMODE\",\n    \"priority\": 3,\n    \"idempotencyKey\": \"batch-aimode-001\",\n    \"payload\": {\n      \"prompt\": \"Latest news about Acme Corp\",\n      \"country\": \"US\"\n    }\n  }\n]")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.cloro.dev/v1/async/task/batch")

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    \"taskType\": \"CHATGPT\",\n    \"priority\": 5,\n    \"idempotencyKey\": \"batch-chatgpt-001\",\n    \"webhook\": {\n      \"url\": \"https://your-app.com/webhook-handler\"\n    },\n    \"payload\": {\n      \"prompt\": \"What do you know about Acme Corp?\",\n      \"country\": \"US\"\n    }\n  },\n  {\n    \"taskType\": \"AIMODE\",\n    \"priority\": 3,\n    \"idempotencyKey\": \"batch-aimode-001\",\n    \"payload\": {\n      \"prompt\": \"Latest news about Acme Corp\",\n      \"country\": \"US\"\n    }\n  }\n]"

response = http.request(request)
puts response.read_body

200

400

401

429

500

{
  "success": true,
  "summary": {
    "total": 3,
    "succeeded": 2,
    "failed": 1
  },
  "results": [\
    {\
      "success": true,\
      "index": 0,\
      "task": {\
        "id": "b27a21e1-7c39-4aa2-a347-23e828c426f9",\
        "taskType": "CHATGPT",\
        "status": "QUEUED",\
        "priority": 1,\
        "createdAt": "2026-04-09T15:00:00.000Z",\
        "latencyMs": null,\
        "idempotencyKey": "batch-chatgpt-001"\
      },\
      "credits": {\
        "creditsToCharge": 5,\
        "creditsCharged": null\
      }\
    }\
  ]
}
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Request validation failed",
    "details": [\
      {\
        "field": "prompt",\
        "message": "Prompt cannot be empty"\
      }\
    ],
    "timestamp": "2025-01-15T12:00:00.000Z"
  }
}
{
  "success": false,
  "error": {
    "code": "MISSING_API_KEY",
    "message": "Missing or invalid API key",
    "timestamp": "2025-01-15T12:00:00.000Z"
  }
}
{
  "success": false,
  "error": {
    "code": "QUEUE_LIMIT_EXCEEDED",
    "message": "Queue limit exceeded. Maximum 100000 queued tasks allowed per organization",
    "timestamp": "2026-04-09T15:00:00.000Z",
    "details": {
      "limit": 100000
    }
  }
}
{
  "success": false,
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "message": "Maximum retries exceeded",
    "timestamp": "2025-01-15T12:00:00.000Z"
  }
}

POST

/

v1

/

async

/

task

/

batch

Try it

Create batch async tasks

cURL

import requests

url = "https://api.cloro.dev/v1/async/task/batch"

response = requests.post(url, json=payload, headers=headers)

print(response.text)

fetch('https://api.cloro.dev/v1/async/task/batch', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));


") 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)) } ``` ``` require 'uri' require 'net/http' url = URI("https://api.cloro.dev/v1/async/task/batch") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true response = http.request(request) puts response.read_body ``` 200 400 401 429 500 ``` { "success": false, "error": { "code": "MISSING_API_KEY", "message": "Missing or invalid API key", "timestamp": "2025-01-15T12:00:00.000Z" } } ``` ``` { "success": false, "error": { "code": "INTERNAL_SERVER_ERROR", "message": "Maximum retries exceeded", "timestamp": "2025-01-15T12:00:00.000Z" } } ``` Submit up to **500 async tasks in a single HTTP request** instead of one API call per task. Each task accepts the same fields as a single async task: `taskType`, `payload`, and optionally `priority`, `idempotencyKey`, and `webhook`. - **Partial success**: each task is validated independently, so one invalid task does not block the others. - **Per-task results**: the response includes a `results` array with success or failure details for each task, preserving the original input order by `index`. - **Per-task webhook delivery**: each task fires its own webhook as soon as it completes — you don’t wait for the full batch. Webhooks arrive in completion order, not submission order. For submitting a single task, see the [async requests guide](/content/docs/guides/making-requests/async/index.html). ## [Navigate to header: Request constraints](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#request-constraints) Request constraints | Constraint | Value | | --- | --- | | Minimum tasks per request | 1 | | Maximum tasks per request | 500 | The queue check is **all-or-nothing** and runs before any task is processed: if the batch would push your organization past its [queue limit](/content/docs/guides/making-requests/async/index.html#task-submission-limits), the whole batch is rejected with `429 QUEUE_LIMIT_EXCEEDED`. A body that is not a JSON array of 1-500 tasks gets `400 VALIDATION_ERROR` instead, also before any task is processed. ## [Navigate to header: Per-task error codes](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#per-task-error-codes) Per-task error codes When a task fails validation within a batch, its result includes one of these error codes: | Code | Description | | --- | --- | | `VALIDATION_ERROR` | The task failed schema validation. `details` includes field-level errors. | | `RESOURCE_ALREADY_EXISTS` | The `idempotencyKey` was already used (either in a previous request or earlier in the same batch). When a previous request used it, `details.taskId` is the ID of that task. | | `INSUFFICIENT_CREDITS` | Not enough credits remaining for this task. Credits are tracked per task within the batch. | | `MODEL_UNAVAILABLE` | The `taskType` is not available, for example `GROK`, `PERPLEXITY` or `COPILOT`, which are [discontinued](/content/docs/guides/providers/index.html#unsupported-providers). The task was not created. | ## [Navigate to header: Example usage](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#example-usage) Example usage ### [Navigate to header: Submit a batch of tasks](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#submit-a-batch-of-tasks) Submit a batch of tasks cURL Node.js (axios) Python (requests) ``` curl -X POST "https://api.cloro.dev/v1/async/task/batch" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '[\ {\ "taskType": "CHATGPT",\ "priority": 5,\ "idempotencyKey": "batch-chatgpt-001",\ "webhook": {\ "url": "https://your-app.com/webhook-handler"\ },\ "payload": {\ "prompt": "What do you know about Acme Corp?",\ "country": "US"\ }\ },\ {\ "taskType": "AIMODE",\ "priority": 3,\ "idempotencyKey": "batch-aimode-001",\ "payload": {\ "prompt": "Latest news about Acme Corp",\ "country": "US"\ }\ },\ {\ "taskType": "GEMINI",\ "payload": {\ "prompt": "Summarize Acme Corp recent announcements",\ "country": "US"\ }\ }\ ]' ``` ``` import axios from 'axios'; const apiKey = 'YOUR_API_KEY'; const url = 'https://api.cloro.dev/v1/async/task/batch'; const tasks = [\ {\ taskType: 'CHATGPT',\ priority: 5,\ idempotencyKey: 'batch-chatgpt-001',\ webhook: { url: 'https://your-app.com/webhook-handler' },\ payload: { prompt: 'What do you know about Acme Corp?', country: 'US' },\ },\ {\ taskType: 'AIMODE',\ priority: 3,\ idempotencyKey: 'batch-aimode-001',\ payload: { prompt: 'Latest news about Acme Corp', country: 'US' },\ },\ {\ taskType: 'GEMINI',\ payload: { prompt: 'Summarize Acme Corp recent announcements', country: 'US' },\ },\ ]; try { const response = await axios.post(url, tasks, { headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json', }, }); const { summary, results } = response.data; console.log(`Batch complete: ${summary.succeeded} succeeded, ${summary.failed} failed`); for (const result of results) { if (result.success) { console.log(`Task ${result.index}: ${result.task.id} (${result.task.taskType})`); } else { console.error(`Task ${result.index} failed: ${result.error.code} - ${result.error.message}`); } } } catch (error) { console.error('Batch request failed:', error.response?.data || error.message); } ``` ``` import requests api_key = 'YOUR_API_KEY' url = 'https://api.cloro.dev/v1/async/task/batch' tasks = [\ {\ "taskType": "CHATGPT",\ "priority": 5,\ "idempotencyKey": "batch-chatgpt-001",\ "webhook": {"url": "https://your-app.com/webhook-handler"},\ "payload": {"prompt": "What do you know about Acme Corp?", "country": "US"},\ },\ {\ "taskType": "AIMODE",\ "priority": 3,\ "idempotencyKey": "batch-aimode-001",\ "payload": {"prompt": "Latest news about Acme Corp", "country": "US"},\ },\ {\ "taskType": "GEMINI",\ "payload": {"prompt": "Summarize Acme Corp recent announcements", "country": "US"},\ },\ ] response = requests.post( url, json=tasks, headers={ "Authorization": f"Bearer {api_key}", "Content-Type": "application/json", }, ) data = response.json() summary = data["summary"] print(f"Batch complete: {summary['succeeded']} succeeded, {summary['failed']} failed") for result in data["results"]: if result["success"]: task = result["task"] print(f"Task {result['index']}: {task['id']} ({task['taskType']})") else: error = result["error"] print(f"Task {result['index']} failed: {error['code']} - {error['message']}") ``` ### [Navigate to header: Response with partial success](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#response-with-partial-success) Response with partial success Response ``` { "success": true, "summary": { "total": 3, "succeeded": 2, "failed": 1 }, "results": [\ {\ "success": true,\ "index": 0,\ "task": {\ "id": "a16f10d0-6b28-4991-9236-12d717b315e8",\ "taskType": "CHATGPT",\ "status": "QUEUED",\ "priority": 5,\ "createdAt": "2026-04-09T15:00:00.000Z",\ "latencyMs": null,\ "idempotencyKey": "batch-chatgpt-001"\ },\ "credits": {\ "creditsToCharge": 5,\ "creditsCharged": null\ }\ },\ {\ "success": true,\ "index": 1,\ "task": {\ "id": "c38b32f2-8d40-5bb3-b458-34f939d537e0",\ "taskType": "AIMODE",\ "status": "QUEUED",\ "priority": 3,\ "createdAt": "2026-04-09T15:00:00.000Z",\ "latencyMs": null,\ "idempotencyKey": "batch-aimode-001"\ },\ "credits": {\ "creditsToCharge": 4,\ "creditsCharged": null\ }\ },\ {\ "success": false,\ "index": 2,\ "error": {\ "code": "INSUFFICIENT_CREDITS",\ "message": "Insufficient credits",\ "timestamp": "2026-04-09T15:00:00.000Z"\ }\ }\ ] } ``` ### [Navigate to header: Handling partial failures](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#handling-partial-failures) Handling partial failures Resubmit only `INSUFFICIENT_CREDITS` tasks, after you top up: they were never created, so their original `idempotencyKey` is still free. A `VALIDATION_ERROR` task fails again until you fix its payload, and giving a `RESOURCE_ALREADY_EXISTS` task a new key creates a duplicate that is charged again. ``` const retry = results .filter((r) => !r.success && r.error.code === 'INSUFFICIENT_CREDITS') .map((r) => tasks[r.index]); if (retry.length > 0) { await axios.post(url, retry, { headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json', }, }); } ``` #### Authorizations [Navigate to header: Authorization](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#authorization-authorization) Authorization string header required cloro API key as a bearer token. One key grants every endpoint in this spec; per-key scopes are not available, so a client cannot request a narrower permission. Keys are created and revoked in the [dashboard](https://dashboard.cloro.dev/api-keys). #### Body application/json Required array length: `1 - 500` elements [Navigate to header: taskType](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#body-items-task-type) taskType enum required The AI provider to use for this task. Available options: `AIMODE`, `BING_AIMODE`, `GOOGLE`, `GOOGLE_NEWS`, `GOOGLE_PRODUCT`, `GEMINI`, `CHATGPT` Example: `"CHATGPT"` [Navigate to header: payload](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#body-items-payload) payload object required The provider's request body, validated against the same schema as its sync endpoint (for example `ChatGPTMonitorRequest`). That makes `country` required here too, or `gl` on the Google endpoints. For `GOOGLE_PRODUCT`, send only `productResultToken`. Example: ``` { "prompt": "What do you know about Acme Corp?", "country": "US" } ``` [Navigate to header: priority](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#body-items-priority) priority integer default:1 Task priority level (1-10). Higher numbers are processed first. Defaults to 1. Required range: `1 <= x <= 10` Example: `5` [Navigate to header: idempotencyKey](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#body-items-idempotency-key) idempotencyKey string Unique string to prevent duplicate task creation. Must be unique across your account. Example: `"batch-chatgpt-001"` [Navigate to header: webhook](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#body-items-webhook) webhook object Webhook configuration for task completion notification. Showchild attributes #### Response 200 application/json Batch processed. Check the summary and individual results for per-task success or failure. [Navigate to header: success](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#response-success) success boolean required Always true for a successfully processed batch (individual tasks may still fail). Example: `true` [Navigate to header: summary](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#response-summary) summary object required Aggregate counts for the batch. Showchild attributes [Navigate to header: results](/content/docs/api-reference/endpoint/create-batch-tasks/index.html#response-results) results object\[\] required Per-task results preserving the original input order by index. - Option 1 - Option 2 Showchild attributes Was this page helpful? YesNo {"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"cloro","colors":{"primary":"#60A5FA","light":"#93C5FD","dark":"#3B82F6"},"logo":{"light":"https://mintcdn.com/cloro/31REGvIJOWq8\_kV2/logo/light.svg?fit=max\\u0026auto=format\\u0026n=31REGvIJOWq8\_kV2\\u0026q=85\\u0026s=9649c139f2768786bbd491a86c1a9dd9","dark":"https://mintcdn.com/cloro/31REGvIJOWq8\_kV2/logo/dark.svg?fit=max\\u0026auto=format\\u0026n=31REGvIJOWq8\_kV2\\u0026q=85\\u0026s=8b254a805d19d5a08a152025628fc518","href":"https://cloro.dev/"},"favicon":"https://mintcdn.com/cloro/JJLSAXWoRDaE6XhQ/favicon.ico?fit=max\\u0026auto=format\\u0026n=JJLSAXWoRDaE6XhQ\\u0026q=85\\u0026s=fb070a58a43d3a399505f112fcb2cf5b","api":{"playground":{"proxy":false}},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.cloro.dev/"}},"footer":{"socials":{"github":"https://github.com/cloro-dev","website":"https://cloro.dev/"}},"seo":{"metatags":{"canonical":"https://cloro.dev/docs"}},"integrations":{"posthog":{"apiKey":"phc\_O2d3bu6YrOXrcUYH9E1Dx6zc4kkW8eez5qXOFbBWii3","apiHost":"https://reverseproxy.cloro.dev"}},"banner":{"content":"The AI Assistant is here to help — ask it anything instead of browsing through the pages.","dismissible":true},"contextual":{"options":\["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"\],"display":"header"},"styling":{"latex":false},"navigation":{"pages":\[\]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cloro","hasAudioNarration":false,"actualSubdomain":"cloro","customDomains":\["cloro.dev"\],"gitSource":{"type":"github","owner":"cloro-dev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI\_CHAT":{"status":"ENABLED"}},"buildId":"6afee69d0b27e3d5820b1225","clientVersion":"0.0.4227","searchFilterCounts":\[{"language":"default","tag":"API Reference","count":76},{"language":"default","tag":"Google","count":37},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Google AI Mode","count":10},{"language":"default","tag":"ChatGPT","count":10},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"AI Overview","count":7},{"language":"default","tag":"Async tasks","count":5},{"language":"default","tag":"Gemini","count":5}\]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@cloro.dev"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":false,"toggles":\[\],"googleFontsInlined":false},"customCss":\[\]} {"page":{"pagePath":"api-reference/endpoint/create-batch-tasks","slug":"/api-reference/endpoint/create-batch-tasks","pageMetadata":{"title":"Create batch tasks","openapi":"api-reference/openapi.json POST /v1/async/task/batch","description":"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.","href":"/api-reference/endpoint/create-batch-tasks"},"description":{"compiledSource":"\\"use strict\\";\\nconst {jsx: \_jsx} = arguments\[0\];\\nconst {useMDXComponents: \_provideComponents} = arguments\[0\];\\nfunction \_createMdxContent(props) {\\n const \_components = {\\n p: \\"p\\",\\n ...\_provideComponents(),\\n ...props.components\\n };\\n return \_jsx(\_components.p, {\\n children: \\"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.\\"\\n });\\n}\\nfunction MDXContent(props = {}) {\\n const {wrapper: MDXLayout} = {\\n ...\_provideComponents(),\\n ...props.components\\n };\\n return MDXLayout ? \_jsx(MDXLayout, {\\n ...props,\\n children: \_jsx(\_createMdxContent, {\\n ...props\\n })\\n }) : \_createMdxContent(props);\\n}\\nreturn {\\n default: MDXContent\\n};\\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\\"use strict\\";const{Fragment:\_Fragment,jsx:\_jsx,jsxs:\_jsxs}=arguments\[0\];const{useMDXComponents:\_provideComponents}=arguments\[0\];function \_createMdxContent(props){const \_components={a:\`a\`,code:\`code\`,li:\`li\`,p:\`p\`,pre:\`pre\`,span:\`span\`,strong:\`strong\`,tbody:\`tbody\`,td:\`td\`,th:\`th\`,thead:\`thead\`,tr:\`tr\`,ul:\`ul\`,...\_provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Info,Table,Warning}=\_components;if(!CodeBlock)\_missingMdxReference(\`CodeBlock\`,true);if(!CodeGroup)\_missingMdxReference(\`CodeGroup\`,true);if(!Heading)\_missingMdxReference(\`Heading\`,true);if(!Info)\_missingMdxReference(\`Info\`,true);if(!Table)\_missingMdxReference(\`Table\`,true);if(!Warning)\_missingMdxReference(\`Warning\`,true);return \_jsxs(\_Fragment,{children:\[\_jsxs(\_components.p,{children:\[\`Submit up to \`,\_jsx(\_components.strong,{children:\`500 async tasks in a single HTTP request\`}),\` instead of one API call per task. Each task accepts the same fields as a single async task: \`,\_jsx(\_components.code,{children:\`taskType\`}),\`, \`,\_jsx(\_components.code,{children:\`payload\`}),\`, and optionally \`,\_jsx(\_components.code,{children:\`priority\`}),\`, \`,\_jsx(\_components.code,{children:\`idempotencyKey\`}),\`, and \`,\_jsx(\_components.code,{children:\`webhook\`}),\`.\`\]}),\`\\n\`,\_jsxs(\_components.ul,{children:\[\`\\n\`,\_jsxs(\_components.li,{children:\[\_jsx(\_components.strong,{children:\`Partial success\`}),\`: each task is validated independently, so one invalid task does not block the others.\`\]}),\`\\n\`,\_jsxs(\_components.li,{children:\[\_jsx(\_components.strong,{children:\`Per-task results\`}),\`: the response includes a \`,\_jsx(\_components.code,{children:\`results\`}),\` array with success or failure details for each task, preserving the original input order by \`,\_jsx(\_components.code,{children:\`index\`}),\`.\`\]}),\`\\n\`,\_jsxs(\_components.li,{children:\[\_jsx(\_components.strong,{children:\`Per-task webhook delivery\`}),\`: each task fires its own webhook as soon as it completes — you don’t wait for the full batch. Webhooks arrive in completion order, not submission order.\`\]}),\`\\n\`\]}),\`\\n\`,\_jsx(Info,{children:\_jsxs(\_components.p,{children:\[\`For submitting a single task, see the \`,\_jsx(\_components.a,{href:\`/guides/making-requests/async\`,children:\`async requests guide\`}),\`.\`\]})}),\`\\n\`,\_jsx(Heading,{level:\`2\`,id:\`request-constraints\`,children:\`Request constraints\`}),\`\\n\`,\_jsxs(Table,{children:\[\_jsx(\_components.thead,{children:\_jsxs(\_components.tr,{children:\[\_jsx(\_components.th,{children:\`Constraint\`}),\_jsx(\_components.th,{children:\`Value\`})\]})}),\_jsxs(\_components.tbody,{children:\[\_jsxs(\_components.tr,{children:\[\_jsx(\_components.td,{children:\`Minimum tasks per request\`}),\_jsx(\_components.td,{\\"data-numeric\\":\`true\`,children:\`1\`})\]}),\_jsxs(\_components.tr,{children:\[\_jsx(\_components.td,{children:\`Maximum tasks per request\`}),\_jsx(\_components.td,{\\"data-numeric\\":\`true\`,children:\`500\`})\]})\]})\]}),\`\\n\`,\_jsx(Warning,{children:\_jsxs(\_components.p,{children:\[\`The queue check is \`,\_jsx(\_components.strong,{children:\`all-or-nothing\`}),\` and runs before any task is processed: if the batch would push your organization past its \`,\_jsx(\_components.a,{href:\`/guides/making-requests/async#task-submission-limits\`,children:\`queue limit\`}),\`, the whole batch is rejected with \`,\_jsx(\_components.code,{children:\`429 QUEUE\_LIMIT\_EXCEEDED\`}),\`. A body that is not a JSON array of 1-500 tasks gets \`,\_jsx(\_components.code,{children:\`400 VALIDATION\_ERROR\`}),\` instead, also before any task is processed.\`\]})}),\`\\n\`,\_jsx(Heading,{level:\`2\`,id:\`per-task-error-codes\`,children:\`Per-task error codes\`}),\`\\n\`,\_jsx(\_components.p,{children:\`When a task fails validation within a batch, its result includes one of these error codes:\`}),\`\\n\`,\_jsxs(Table,{children:\[\_jsx(\_components.thead,{children:\_jsxs(\_components.tr,{children:\[\_jsx(\_components.th,{children:\`Code\`}),\_jsx(\_components.th,{children:\`Description\`})\]})}),\_jsxs(\_components.tbody,{children:\[\_jsxs(\_components.tr,{children:\[\_jsx(\_components.td,{children:\_jsx(\_components.code,{children:\`VALIDATION\_ERROR\`})}),\_jsxs(\_components.td,{children:\[\`The task failed schema validation. \`,\_jsx(\_components.code,{children:\`details\`}),\` includes field-level errors.\`\]})\]}),\_jsxs(\_components.tr,{children:\[\_jsx(\_components.td,{children:\_jsx(\_components.code,{children:\`RESOURCE\_ALREADY\_EXISTS\`})}),\_jsxs(\_components.td,{children:\[\`The \`,\_jsx(\_components.code,{children:\`idempotencyKey\`}),\` was already used (either in a previous request or earlier in the same batch). When a previous request used it, \`,\_jsx(\_components.code,{children:\`details.taskId\`}),\` is the ID of that task.\`\]})\]}),\_jsxs(\_components.tr,{children:\[\_jsx(\_components.td,{children:\_jsx(\_components.code,{children:\`INSUFFICIENT\_CREDITS\`})}),\_jsx(\_components.td,{children:\`Not enough credits remaining for this task. Credits are tracked per task within the batch.\`})\]}),\_jsxs(\_components.tr,{children:\[\_jsx(\_components.td,{children:\_jsx(\_components.code,{children:\`MODEL\_UNAVAILABLE\`})}),\_jsxs(\_components.td,{children:\[\`The \`,\_jsx(\_components.code,{children:\`taskType\`}),\` is not available, for example \`,\_jsx(\_components.code,{children:\`GROK\`}),\`, \`,\_jsx(\_components.code,{children:\`PERPLEXITY\`}),\` or \`,\_jsx(\_components.code,{children:\`COPILOT\`}),\`, which are \`,\_jsx(\_components.a,{href:\`/guides/providers#unsupported-providers\`,children:\`discontinued\`}),\`. The task was not created.\`\]})\]})\]})\]}),\`\\n\`,\_jsx(Heading,{level:\`2\`,id:\`example-usage\`,children:\`Example usage\`}),\`\\n\`,\_jsx(Heading,{level:\`3\`,id:\`submit-a-batch-of-tasks\`,children:\`Submit a batch of tasks\`}),\`\\n\`,\_jsxs(CodeGroup,{children:\[\_jsx(CodeBlock,{filename:\`cURL\`,numberOfLines:\`33\`,language:\`shellscript\`,children:\_jsx(\_components.pre,{className:\`shiki shiki-themes github-light-default dark-plus\`,style:{backgroundColor:\`#ffffff\`,\\"--shiki-dark-bg\\":\`#0B0C0E\`,color:\`#1f2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},language:\`shellscript\`,children:\_jsxs(\_components.code,{language:\`shellscript\`,numberOfLines:\`33\`,children:\[\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#953800\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`curl\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` -X\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` POST\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"https://api.cloro.dev/v1/async/task/batch\\"\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D7BA7D\`},children:\` \\\\\\\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` -H\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"Authorization: Bearer YOUR\_API\_KEY\\"\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D7BA7D\`},children:\` \\\\\\\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` -H\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"Content-Type: application/json\\"\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D7BA7D\`},children:\` \\\\\\\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` -d\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` '\[\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"taskType\\": \\"CHATGPT\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"priority\\": 5,\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"idempotencyKey\\": \\"batch-chatgpt-001\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"webhook\\": {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"url\\": \\"https://your-app.com/webhook-handler\\"\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"payload\\": {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"prompt\\": \\"What do you know about Acme Corp?\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"country\\": \\"US\\"\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"taskType\\": \\"AIMODE\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"priority\\": 3,\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"idempotencyKey\\": \\"batch-aimode-001\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"payload\\": {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"prompt\\": \\"Latest news about Acme Corp\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"country\\": \\"US\\"\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"taskType\\": \\"GEMINI\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"payload\\": {\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"prompt\\": \\"Summarize Acme Corp recent announcements\\",\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"country\\": \\"US\\"\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \]'\`})}),\`\\n\`\]})})}),\_jsx(CodeBlock,{filename:\`Node.js (axios)\`,numberOfLines:\`46\`,language:\`javascript\`,children:\_jsx(\_components.pre,{className:\`shiki shiki-themes github-light-default dark-plus\`,style:{backgroundColor:\`#ffffff\`,\\"--shiki-dark-bg\\":\`#0B0C0E\`,color:\`#1f2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},language:\`javascript\`,children:\_jsxs(\_components.code,{language:\`javascript\`,numberOfLines:\`46\`,children:\[\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`import\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` axios\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` from\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'axios'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`;\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`const\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\` apiKey\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` =\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'YOUR\_API\_KEY'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`;\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`const\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\` url\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` =\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'https://api.cloro.dev/v1/async/task/batch'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`;\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`const\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\` tasks\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` =\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` \[\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` taskType:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'CHATGPT'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` priority:\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\` 5\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` idempotencyKey:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'batch-chatgpt-001'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` webhook:\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` { \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`url:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'https://your-app.com/webhook-handler'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` payload:\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` { \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`prompt:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'What do you know about Acme Corp?'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`country:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'US'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` taskType:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'AIMODE'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` priority:\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\` 3\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` idempotencyKey:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'batch-aimode-001'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` payload:\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` { \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`prompt:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'Latest news about Acme Corp'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`country:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'US'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` taskType:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'GEMINI'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` payload:\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` { \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`prompt:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'Summarize Acme Corp recent announcements'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`country:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'US'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\];\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`try\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` const\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\` response\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` =\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` await\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` axios\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`post\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`url\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`tasks\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` headers:\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'Authorization'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\" \`Bearer \\"}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`apiKey\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\"\`\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'Content-Type'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'application/json'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` });\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` const\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` { \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\`summary\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\`results\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` } \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` response\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`data\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`;\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` console\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`log\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\"\`Batch complete: \\"}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`summary\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`succeeded\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` succeeded, \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`summary\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`failed\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\" failed\`\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`);\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` for\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` (\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`const\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\` result\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\` of\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` results\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`) {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` if\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` (\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`success\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`) {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` console\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`log\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\"\`Task \\"}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`index\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`task\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`id\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` (\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`task\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`taskType\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\")\`\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`);\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` } \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`else\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` console\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\"\`Task \\"}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`index\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` failed: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`code\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` - \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`result\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`message\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\"\`\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`);\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` }\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`} \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`catch\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` (\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`) {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` console\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'Batch request failed:'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`response\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`?.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`data\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` \|\|\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` error\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`message\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`);\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`}\`})}),\`\\n\`\]})})}),\_jsx(CodeBlock,{filename:\`Python (requests)\`,numberOfLines:\`45\`,language:\`python\`,children:\_jsx(\_components.pre,{className:\`shiki shiki-themes github-light-default dark-plus\`,style:{backgroundColor:\`#ffffff\`,\\"--shiki-dark-bg\\":\`#0B0C0E\`,color:\`#1f2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},language:\`python\`,children:\_jsxs(\_components.code,{language:\`python\`,numberOfLines:\`45\`,children:\[\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`import\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` requests\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`api\_key \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'YOUR\_API\_KEY'\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`url \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'https://api.cloro.dev/v1/async/task/batch'\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`tasks \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` \[\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"taskType\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"CHATGPT\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"priority\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`5\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"idempotencyKey\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"batch-chatgpt-001\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"webhook\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"url\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"https://your-app.com/webhook-handler\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`},\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"payload\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"prompt\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"What do you know about Acme Corp?\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"country\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"US\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`},\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"taskType\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"AIMODE\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"priority\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`3\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"idempotencyKey\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"batch-aimode-001\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"payload\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"prompt\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Latest news about Acme Corp\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"country\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"US\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`},\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"taskType\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"GEMINI\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"payload\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"prompt\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Summarize Acme Corp recent announcements\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"country\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"US\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`},\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`response \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` requests.post(\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` url,\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#953800\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` json\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`tasks,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#953800\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` headers\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`{\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"Authorization\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`f\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Bearer \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`api\_key\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` \\"Content-Type\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"application/json\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`)\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`data \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` response.json()\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`summary \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` data\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"summary\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`print\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`f\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Batch complete: \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`summary\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'succeeded'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` succeeded, \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`summary\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'failed'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` failed\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`)\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`for\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` result \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`in\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` data\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"results\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]:\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` if\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` result\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"success\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]:\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` task \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` result\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"task\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\` print\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`f\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Task \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`result\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'index'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`task\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'id'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` (\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`task\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'taskType'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`)\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`)\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` else\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`:\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` error \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`=\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` result\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"error\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\` print\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`f\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Task \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`result\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'index'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` failed: \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`error\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'code'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` - \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`{\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`error\[\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`'message'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`)\`})\]}),\`\\n\`\]})})})\]}),\`\\n\`,\_jsx(Heading,{level:\`3\`,id:\`response-with-partial-success\`,children:\`Response with partial success\`}),\`\\n\`,\_jsx(CodeGroup,{children:\_jsx(CodeBlock,{filename:\`Response\`,numberOfLines:\`53\`,language:\`json\`,children:\_jsx(\_components.pre,{className:\`shiki shiki-themes github-light-default dark-plus\`,style:{backgroundColor:\`#ffffff\`,\\"--shiki-dark-bg\\":\`#0B0C0E\`,color:\`#1f2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},language:\`json\`,children:\_jsxs(\_components.code,{language:\`json\`,numberOfLines:\`53\`,children:\[\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`{\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"success\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`true\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"summary\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"total\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`3\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"succeeded\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`2\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"failed\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`1\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"results\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \[\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"success\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`true\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"index\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`0\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"task\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"id\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"a16f10d0-6b28-4991-9236-12d717b315e8\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"taskType\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"CHATGPT\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"status\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"QUEUED\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"priority\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`5\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"createdAt\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"2026-04-09T15:00:00.000Z\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"latencyMs\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`null\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"idempotencyKey\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"batch-chatgpt-001\\"\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"credits\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"creditsToCharge\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`5\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"creditsCharged\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`null\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"success\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`true\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"index\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`1\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"task\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"id\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"c38b32f2-8d40-5bb3-b458-34f939d537e0\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"taskType\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"AIMODE\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"status\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"QUEUED\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"priority\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`3\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"createdAt\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"2026-04-09T15:00:00.000Z\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"latencyMs\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`null\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"idempotencyKey\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"batch-aimode-001\\"\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"credits\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"creditsToCharge\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`4\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"creditsCharged\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`null\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"success\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`false\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"index\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\`2\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"error\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"code\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"INSUFFICIENT\_CREDITS\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"message\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"Insufficient credits\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#116329\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` \\"timestamp\\"\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`: \`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\`\\"2026-04-09T15:00:00.000Z\\"\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` }\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` \]\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`}\`})}),\`\\n\`\]})})})}),\`\\n\`,\_jsx(Heading,{level:\`3\`,id:\`handling-partial-failures\`,children:\`Handling partial failures\`}),\`\\n\`,\_jsxs(\_components.p,{children:\[\`Resubmit only \`,\_jsx(\_components.code,{children:\`INSUFFICIENT\_CREDITS\`}),\` tasks, after you top up: they were never created, so their original \`,\_jsx(\_components.code,{children:\`idempotencyKey\`}),\` is still free. A \`,\_jsx(\_components.code,{children:\`VALIDATION\_ERROR\`}),\` task fails again until you fix its payload, and giving a \`,\_jsx(\_components.code,{children:\`RESOURCE\_ALREADY\_EXISTS\`}),\` task a new key creates a duplicate that is charged again.\`\]}),\`\\n\`,\_jsx(CodeBlock,{filename:\`\`,numberOfLines:\`12\`,language:\`javascript\`,children:\_jsx(\_components.pre,{className:\`shiki shiki-themes github-light-default dark-plus\`,style:{backgroundColor:\`#ffffff\`,\\"--shiki-dark-bg\\":\`#0B0C0E\`,color:\`#1f2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},language:\`javascript\`,children:\_jsxs(\_components.code,{language:\`javascript\`,numberOfLines:\`12\`,children:\[\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`const\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#4FC1FF\`},children:\` retry\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` =\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` results\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` .\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`filter\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`((\`}),\_jsx(\_components.span,{style:{color:\`#953800\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`r\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`) \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`=>\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` !\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`r\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`success\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` \\u0026\\u0026\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` r\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`error\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`code\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` ===\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'INSUFFICIENT\_CREDITS'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`)\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` .\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`map\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`((\`}),\_jsx(\_components.span,{style:{color:\`#953800\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`r\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`) \`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`=>\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` tasks\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\[\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`r\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`index\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`\]);\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\`if\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` (\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`retry\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`length\`}),\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` >\`}),\_jsx(\_components.span,{style:{color:\`#0550AE\`,\\"--shiki-dark\\":\`#B5CEA8\`},children:\` 0\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`) {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#CF222E\`,\\"--shiki-dark\\":\`#C586C0\`},children:\` await\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` axios\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`.\`}),\_jsx(\_components.span,{style:{color:\`#8250DF\`,\\"--shiki-dark\\":\`#DCDCAA\`},children:\`post\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`(\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`url\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, \`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`retry\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`, {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\` headers:\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` {\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'Authorization'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\" \`Bearer \\"}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\\"${\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`apiKey\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#569CD6\`},children:\`}\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\\"\`\\"}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsxs(\_components.span,{className:\`line\`,children:\[\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'Content-Type'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#9CDCFE\`},children:\`:\`}),\_jsx(\_components.span,{style:{color:\`#0A3069\`,\\"--shiki-dark\\":\`#CE9178\`},children:\` 'application/json'\`}),\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`,\`})\]}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` },\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\` });\`})}),\`\\n\`,\_jsx(\_components.span,{className:\`line\`,children:\_jsx(\_components.span,{style:{color:\`#1F2328\`,\\"--shiki-dark\\":\`#D4D4D4\`},children:\`}\`})}),\`\\n\`\]})})})\]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...\_provideComponents(),...props.components};return MDXLayout?\_jsx(MDXLayout,{...props,children:\_jsx(\_createMdxContent,{...props})}):\_createMdxContent(props)}return{default:MDXContent};function \_missingMdxReference(id,component){throw new Error(\`Expected \`+(component?\`component\`:\`object\`)+\\" \`\\"+id+\\"\` to be defined: you likely forgot to import, pass, or provide it.\\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create batch tasks","openapi":"api-reference/openapi.json POST /v1/async/task/batch","description":"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.","href":"/api-reference/endpoint/create-batch-tasks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":\[{"title":"Request constraints","slug":"request-constraints","depth":2,"children":\[\]},{"title":"Per-task error codes","slug":"per-task-error-codes","depth":2,"children":\[\]},{"title":"Example usage","slug":"example-usage","depth":2,"children":\[{"title":"Submit a batch of tasks","slug":"submit-a-batch-of-tasks","depth":3,"children":\[\]},{"title":"Response with partial success","slug":"response-with-partial-success","depth":3,"children":\[\]},{"title":"Handling partial failures","slug":"handling-partial-failures","depth":3,"children":\[\]}\]}\],"codeExamples":{}},"jsLinks":\[\],"openApiReferenceData":{"operation":{"summary":"Create batch async tasks","description":"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.","operationId":"createBatchAsyncTasks","security":\["3009004c-cf98-490e-a7df-80e306f6fdf8"\],"requestBody":"b4b45a0d-93e3-4280-8c0b-de2389a4b02f","responses":{"200":"e29f4cd7-52cd-4a8c-b098-3b4861223529","400":"14eac76d-ae72-4ebf-9e87-70b3aadf4b58","401":"68a15e70-170b-4c4e-86a0-0e94c76e02fc","429":"57db1dfd-b1f5-44ae-94e3-c0a5d697bdec","500":"1b23b29e-cdee-46d5-a75b-0f46222ff848"},"method":"post","type":"path","servers":\["6c961360-d524-4a5c-b9bc-4fd78048e760"\],"path":"/v1/async/task/batch","baseUrlOptions":\["https://api.cloro.dev"\],"title":"Create batch async tasks","codeSamples":\[\],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","minItems":1,"maxItems":500,"description":"Array of task objects to create.","items":{"type":"object","required":\["taskType","payload"\],"properties":{"taskType":{"type":"string","enum":\["AIMODE","BING\_AIMODE","GOOGLE","GOOGLE\_NEWS","GOOGLE\_PRODUCT","GEMINI","CHATGPT"\],"description":"The AI provider to use for this task.","example":"CHATGPT","isRequired":true,"uniqueKey":"items.\[INDEX\].taskType","typeLabel":"enum\\u003cstring>"},"payload":{"type":"object","description":"The provider's request body, validated against the same schema as its sync endpoint (for example \`ChatGPTMonitorRequest\`). That makes \`country\` required here too, or \`gl\` on the Google endpoints. For \`GOOGLE\_PRODUCT\`, send only \`productResultToken\`.","example":{"prompt":"What do you know about Acme Corp?","country":"US"},"isRequired":true,"uniqueKey":"items.\[INDEX\].payload","typeLabel":"object"},"priority":{"type":"integer","description":"Task priority level (1-10). Higher numbers are processed first. Defaults to 1.","minimum":1,"maximum":10,"default":1,"example":5,"uniqueKey":"items.\[INDEX\].priority","typeLabel":"integer"},"idempotencyKey":{"type":"string","description":"Unique string to prevent duplicate task creation. Must be unique across your account.","example":"batch-chatgpt-001","uniqueKey":"items.\[INDEX\].idempotencyKey","typeLabel":"string"},"webhook":{"type":"object","description":"Webhook configuration for task completion notification.","properties":{"url":{"type":"string","format":"uri","description":"URL to receive the webhook POST request when the task completes.","example":"https://your-app.com/webhook-handler","isRequired":true,"uniqueKey":"items.\[INDEX\].webhook.url","typeLabel":"string\\u003curi>"}},"required":\["url"\],"additionalProperties":false,"uniqueKey":"items.\[INDEX\].webhook","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"items.\[INDEX\]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object\[\]"},"example":\[{"taskType":"CHATGPT","priority":5,"idempotencyKey":"batch-chatgpt-001","webhook":{"url":"https://your-app.com/webhook-handler"},"payload":{"prompt":"What do you know about Acme Corp?","country":"US"}},{"taskType":"AIMODE","priority":3,"idempotencyKey":"batch-aimode-001","payload":{"prompt":"Latest news about Acme Corp","country":"US"}}\],"examples":{"Example":{"title":"Example","value":\[{"taskType":"CHATGPT","priority":5,"idempotencyKey":"batch-chatgpt-001","webhook":{"url":"https://your-app.com/webhook-handler"},"payload":{"prompt":"What do you know about Acme Corp?","country":"US"}},{"taskType":"AIMODE","priority":3,"idempotencyKey":"batch-aimode-001","payload":{"prompt":"Latest news about Acme Corp","country":"US"}}\]}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"e29f4cd7-52cd-4a8c-b098-3b4861223529":{"description":"Batch processed. Check the summary and individual results for per-task success or failure.","content":{"application/json":{"schema":{"type":"object","required":\["success","summary","results"\],"properties":{"success":{"type":"boolean","description":"Always true for a successfully processed batch (individual tasks may still fail).","example":true,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"summary":{"type":"object","required":\["total","succeeded","failed"\],"description":"Aggregate counts for the batch.","properties":{"total":{"type":"integer","description":"Total number of tasks submitted in the batch.","example":3,"isRequired":true,"uniqueKey":"summary.total","typeLabel":"integer"},"succeeded":{"type":"integer","description":"Number of tasks successfully created.","example":2,"isRequired":true,"uniqueKey":"summary.succeeded","typeLabel":"integer"},"failed":{"type":"integer","description":"Number of tasks that failed validation or processing.","example":1,"isRequired":true,"uniqueKey":"summary.failed","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"summary","typeLabel":"object"},"results":{"type":"array","description":"Per-task results preserving the original input order by index.","items":{"oneOf":\[{"type":"object","required":\["success","index","task","credits"\],"properties":{"success":{"type":"boolean","enum":\[true\],"description":"Indicates this task was created successfully.","example":true,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.success","typeLabel":"enum\\u003cboolean>"},"index":{"type":"integer","description":"The zero-based position of this task in the original request array.","example":0,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.index","typeLabel":"integer"},"task":{"type":"object","description":"Common task summary fields shared across async task responses.","required":\["id","taskType","status","priority","createdAt"\],"properties":{"id":{"type":"string","format":"uuid","description":"Unique task identifier.","example":"b27a21e1-7c39-4aa2-a347-23e828c426f9","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.id","typeLabel":"string\\u003cuuid>"},"taskType":{"type":"string","enum":\["AIMODE","BING\_AIMODE","GOOGLE","GOOGLE\_NEWS","GOOGLE\_PRODUCT","GEMINI","CHATGPT"\],"description":"The AI provider for this task.","example":"CHATGPT","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.taskType","typeLabel":"enum\\u003cstring>"},"status":{"type":"string","description":"Initial status of a newly created task.","enum":\["QUEUED"\],"example":"QUEUED","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.status","typeLabel":"enum\\u003cstring>"},"priority":{"type":"integer","description":"Task priority level (1-10). Higher numbers are processed first. Defaults to 1.","minimum":1,"maximum":10,"example":1,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.priority","typeLabel":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the task was created.","example":"2026-04-09T15:00:00.000Z","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.createdAt","typeLabel":"string\\u003cdate-time>"},"latencyMs":{"oneOf":\[{"type":"integer","description":"Processing time in milliseconds, from first pickup to the final outcome. Excludes the initial queue wait, but on a retried task covers every attempt including the backoff between them. Null while the task is \`QUEUED\` or \`PROCESSING\`, and on a task that failed before processing started.","example":null,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.latencyMs.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Processing time in milliseconds, from first pickup to the final outcome. Excludes the initial queue wait, but on a retried task covers every attempt including the backoff between them. Null while the task is \`QUEUED\` or \`PROCESSING\`, and on a task that failed before processing started.","example":null,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.latencyMs.oneOf.1","typeLabel":"null"}\],"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.latencyMs","typeLabel":"integer \| null"},"idempotencyKey":{"oneOf":\[{"type":"string","description":"The idempotency key if one was provided.","example":"batch-chatgpt-001","uniqueKey":"results.items.\[INDEX\].oneOf.0.task.idempotencyKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"The idempotency key if one was provided.","example":"batch-chatgpt-001","uniqueKey":"results.items.\[INDEX\].oneOf.0.task.idempotencyKey.oneOf.1","typeLabel":"null"}\],"uniqueKey":"results.items.\[INDEX\].oneOf.0.task.idempotencyKey","typeLabel":"string \| null"}},"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.task","typeLabel":"object"},"credits":{"type":"object","required":\["creditsToCharge","creditsCharged"\],"description":"Credit information for an async task.","properties":{"creditsToCharge":{"type":"number","description":"Estimated cost, computed when the task is submitted. Nothing is reserved or deducted then; credits are deducted only when the task completes.","example":5,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.credits.creditsToCharge","typeLabel":"number"},"creditsCharged":{"oneOf":\[{"type":"number","description":"Credits actually charged: null until the task finishes, then the amount billed for \`COMPLETED\`, or \`0\` for \`FAILED\` (failed tasks are never charged). Equals \`creditsToCharge\`, except that AI Mode with \`include.expandProducts\` adds +1 credit per product cluster returned.","example":null,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.credits.creditsCharged.oneOf.0","typeLabel":"number"},{"type":"null","description":"Credits actually charged: null until the task finishes, then the amount billed for \`COMPLETED\`, or \`0\` for \`FAILED\` (failed tasks are never charged). Equals \`creditsToCharge\`, except that AI Mode with \`include.expandProducts\` adds +1 credit per product cluster returned.","example":null,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.credits.creditsCharged.oneOf.1","typeLabel":"null"}\],"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.credits.creditsCharged","typeLabel":"number \| null"}},"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.0.credits","typeLabel":"object"}},"uniqueKey":"results.items.\[INDEX\].oneOf.0","typeLabel":"object"},{"type":"object","required":\["success","index","error"\],"properties":{"success":{"type":"boolean","enum":\[false\],"description":"Indicates this task failed.","example":false,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.1.success","typeLabel":"enum\\u003cboolean>"},"index":{"type":"integer","description":"The zero-based position of this task in the original request array.","example":2,"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.1.index","typeLabel":"integer"},"error":{"type":"object","required":\["code","message","timestamp"\],"properties":{"code":{"type":"string","description":"Error code identifying the failure reason.","enum":\["VALIDATION\_ERROR","RESOURCE\_ALREADY\_EXISTS","INSUFFICIENT\_CREDITS","MODEL\_UNAVAILABLE"\],"example":"VALIDATION\_ERROR","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.1.error.code","typeLabel":"enum\\u003cstring>"},"message":{"type":"string","description":"Human-readable error message.","example":"Invalid task at index 2","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.1.error.message","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"Timestamp when the error occurred.","example":"2026-04-09T15:00:00.000Z","isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.1.error.timestamp","typeLabel":"string\\u003cdate-time>"},"details":{"type":"object","description":"Additional context about the error, such as field-level validation failures.","example":{"errors":\[{"field":"payload.country","message":"Invalid input: expected string, received undefined"}\]},"uniqueKey":"results.items.\[INDEX\].oneOf.1.error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.\[INDEX\].oneOf.1.error","typeLabel":"object"}},"uniqueKey":"results.items.\[INDEX\].oneOf.1","typeLabel":"object"}\],"uniqueKey":"results.items.\[INDEX\]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results","typeLabel":"object\[\]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"summary":{"total":3,"succeeded":2,"failed":1},"results":\[{"success":true,"index":0,"task":{"id":"b27a21e1-7c39-4aa2-a347-23e828c426f9","taskType":"CHATGPT","status":"QUEUED","priority":1,"createdAt":"2026-04-09T15:00:00.000Z","latencyMs":null,"idempotencyKey":"batch-chatgpt-001"},"credits":{"creditsToCharge":5,"creditsCharged":null}}\]}}},"exampleType":"generated"}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer","example":1000}},"X-RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer","example":997}},"X-Request-ID":{"description":"Unique ID for this request. Support uses it to find your request.","schema":{"type":"string","format":"uuid","example":"b0864943-5d45-4796-bc64-f052661256f0"}},"X-Latency-Ms":{"description":"Milliseconds the API spent on the request, from arrival to the start of the response. Excludes network transit.","schema":{"type":"integer","example":3420}}},"exampleType":"generated"},"14eac76d-ae72-4ebf-9e87-70b3aadf4b58":{"description":"Bad Request - The body is not an array of 1-500 task objects","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","example":"VALIDATION\_ERROR","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Request validation failed","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"One entry per invalid field. Sent on request-body validation errors.","items":{"type":"object","properties":{"field":{"type":"string","example":"prompt","uniqueKey":"error.details.items.\[INDEX\].field","typeLabel":"string"},"message":{"type":"string","example":"Prompt cannot be empty","uniqueKey":"error.details.items.\[INDEX\].message","typeLabel":"string"}},"uniqueKey":"error.details.items.\[INDEX\]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object\[\]"},"timestamp":{"type":"string","format":"date-time","example":"2025-01-15T12:00:00.000Z","uniqueKey":"error.timestamp","typeLabel":"string\\u003cdate-time>"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"VALIDATION\_ERROR","message":"Request validation failed","details":\[{"field":"prompt","message":"Prompt cannot be empty"}\],"timestamp":"2025-01-15T12:00:00.000Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"68a15e70-170b-4c4e-86a0-0e94c76e02fc":{"description":"Unauthorized - Authentication error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":\["MISSING\_API\_KEY","INVALID\_API\_KEY\_FORMAT","INVALID\_OR\_EXPIRED\_API\_KEY"\],"example":"MISSING\_API\_KEY","uniqueKey":"error.code","typeLabel":"enum\\u003cstring>"},"message":{"type":"string","example":"Missing or invalid API key","uniqueKey":"error.message","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2025-01-15T12:00:00.000Z","uniqueKey":"error.timestamp","typeLabel":"string\\u003cdate-time>"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"MISSING\_API\_KEY","message":"Missing or invalid API key","timestamp":"2025-01-15T12:00:00.000Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"57db1dfd-b1f5-44ae-94e3-c0a5d697bdec":{"description":"Queue Limit Exceeded - The entire batch is rejected because it would exceed your organization's queue capacity","content":{"application/json":{"schema":{"type":"object","required":\["success","error"\],"properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":\["code","message","timestamp"\],"properties":{"code":{"type":"string","enum":\["QUEUE\_LIMIT\_EXCEEDED"\],"example":"QUEUE\_LIMIT\_EXCEEDED","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\\u003cstring>"},"message":{"type":"string","example":"Queue limit exceeded. Maximum 100000 queued tasks allowed per organization","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-04-09T15:00:00.000Z","isRequired":true,"uniqueKey":"error.timestamp","typeLabel":"string\\u003cdate-time>"},"details":{"type":"object","properties":{"limit":{"type":"integer","description":"Maximum number of \`QUEUED\` tasks your organization can hold.","example":100000,"uniqueKey":"error.details.limit","typeLabel":"integer"}},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"QUEUE\_LIMIT\_EXCEEDED","message":"Queue limit exceeded. Maximum 100000 queued tasks allowed per organization","timestamp":"2026-04-09T15:00:00.000Z","details":{"limit":100000}}}}},"exampleType":"generated"}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer","example":1000}},"X-RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer","example":997}},"X-Request-ID":{"description":"Unique ID for this request. Support uses it to find your request.","schema":{"type":"string","format":"uuid","example":"b0864943-5d45-4796-bc64-f052661256f0"}},"X-Latency-Ms":{"description":"Milliseconds the API spent on the request, from arrival to the start of the response. Excludes network transit.","schema":{"type":"integer","example":3420}}},"exampleType":"generated"},"1b23b29e-cdee-46d5-a75b-0f46222ff848":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","example":"INTERNAL\_SERVER\_ERROR","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For example \`Maximum retries exceeded\` when every attempt failed, or \`Internal server error\` for an unexpected failure.","example":"Maximum retries exceeded","uniqueKey":"error.message","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2025-01-15T12:00:00.000Z","uniqueKey":"error.timestamp","typeLabel":"string\\u003cdate-time>"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"INTERNAL\_SERVER\_ERROR","message":"Maximum retries exceeded","timestamp":"2025-01-15T12:00:00.000Z"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3009004c-cf98-490e-a7df-80e306f6fdf8":{"bearerAuth":{"type":"http","scheme":"bearer","description":"cloro API key as a bearer token. One key grants every endpoint in this spec; per-key scopes are not available, so a client cannot request a narrower permission. Keys are created and revoked in the \[dashboard\](https://dashboard.cloro.dev/api-keys).","scopes":\[\],"schemeName":"bearerAuth"}}},"servers":{"6c961360-d524-4a5c-b9bc-4fd78048e760":{"url":"https://api.cloro.dev","description":"Production server"}},"processedSecurityOptions":\[{"schemes":\[{"scheme":{"type":"http","scheme":"bearer","description":"cloro API key as a bearer token. One key grants every endpoint in this spec; per-key scopes are not available, so a client cannot request a narrower permission. Keys are created and revoked in the \[dashboard\](https://dashboard.cloro.dev/api-keys).","scopes":\[\],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"cloro API key as a bearer token. One key grants every endpoint in this spec; per-key scopes are not available, so a client cannot request a narrower permission. Keys are created and revoked in the \[dashboard\](https://dashboard.cloro.dev/api-keys).","format":"bearer","typeLabel":"string\\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}\],"title":"bearerAuth"}\]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cloro","siteName":"cloro","title":"Create batch tasks - cloro","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T17:22:14.695Z","originalFileLocation":"api-reference/endpoint/create-batch-tasks.mdx"},"headHtml":"\\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\\"isDarkMode\\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\\u0026\\u0026p!=='dark'\\u0026\\u0026p!=='system')p=\\"system\\"}var r=p==='system'?(matchMedia(\\"(prefers-color-scheme: dark)\\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\\"data-theme-preference\\",p)})();\\u003c/script>\\u003cmeta data-mint-head name=\\"description\\" content=\\"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.\\">\\u003cmeta data-mint-head name=\\"application-name\\" content=\\"cloro\\">\\u003cmeta data-mint-head name=\\"generator\\" content=\\"Mintlify\\">\\u003clink data-mint-head rel=\\"icon\\" type=\\"image/png\\" sizes=\\"192x192\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon/android-chrome-192x192.png\\" media=\\"(prefers-color-scheme: light)\\">\\u003clink data-mint-head rel=\\"apple-touch-icon\\" type=\\"image/png\\" sizes=\\"180x180\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon/apple-touch-icon.png\\">\\u003clink data-mint-head rel=\\"icon\\" type=\\"image/png\\" sizes=\\"16x16\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon/favicon-16x16.png\\" media=\\"(prefers-color-scheme: light)\\">\\u003clink data-mint-head rel=\\"icon\\" type=\\"image/png\\" sizes=\\"32x32\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon/favicon-32x32.png\\" media=\\"(prefers-color-scheme: light)\\">\\u003clink data-mint-head rel=\\"shortcut icon\\" type=\\"image/x-icon\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon/favicon.ico\\" media=\\"(prefers-color-scheme: light)\\">\\u003clink data-mint-head rel=\\"icon\\" type=\\"image/png\\" sizes=\\"192x192\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon-dark/android-chrome-192x192.png\\" media=\\"(prefers-color-scheme: dark)\\">\\u003clink data-mint-head rel=\\"icon\\" type=\\"image/png\\" sizes=\\"16x16\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon-dark/favicon-16x16.png\\" media=\\"(prefers-color-scheme: dark)\\">\\u003clink data-mint-head rel=\\"icon\\" type=\\"image/png\\" sizes=\\"32x32\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon-dark/favicon-32x32.png\\" media=\\"(prefers-color-scheme: dark)\\">\\u003clink data-mint-head rel=\\"shortcut icon\\" type=\\"image/x-icon\\" href=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon-dark/favicon.ico\\" media=\\"(prefers-color-scheme: dark)\\">\\u003cmeta data-mint-head property=\\"og:title\\" content=\\"Create batch tasks - cloro\\">\\u003cmeta data-mint-head property=\\"og:description\\" content=\\"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.\\">\\u003cmeta data-mint-head property=\\"og:site\_name\\" content=\\"cloro\\">\\u003cmeta data-mint-head property=\\"og:url\\" content=\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks\\">\\u003cmeta data-mint-head property=\\"og:type\\" content=\\"website\\">\\u003cmeta data-mint-head property=\\"og:image\\" content=\\"https://cloro.mintlify.site/docs/\_mintlify/api/og/v2?division=Async+tasks\\u0026amp;title=Create+batch+tasks\\u0026amp;description=Submit+up+to+500+async+tasks+in+one+request.+Each+task+is+validated+independently%2C+so+one+invalid+task+does+not+block+the+rest.+Returns+per-task+results.\\u0026amp;theme=3dd67aad49c38e49a018244e\\u0026amp;signature=c009b9815cb72263d620bebb4cdd2ce8c4344e379cc1275655a2bf204362b8fb\\">\\u003cmeta data-mint-head property=\\"og:image:width\\" content=\\"1200\\">\\u003cmeta data-mint-head property=\\"og:image:height\\" content=\\"630\\">\\u003cmeta data-mint-head name=\\"twitter:card\\" content=\\"summary\_large\_image\\">\\u003cmeta data-mint-head name=\\"twitter:title\\" content=\\"Create batch tasks - cloro\\">\\u003cmeta data-mint-head name=\\"twitter:description\\" content=\\"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.\\">\\u003cmeta data-mint-head name=\\"twitter:image\\" content=\\"https://cloro.mintlify.site/docs/\_mintlify/api/og/v2?division=Async+tasks\\u0026amp;title=Create+batch+tasks\\u0026amp;description=Submit+up+to+500+async+tasks+in+one+request.+Each+task+is+validated+independently%2C+so+one+invalid+task+does+not+block+the+rest.+Returns+per-task+results.\\u0026amp;theme=3dd67aad49c38e49a018244e\\u0026amp;signature=c009b9815cb72263d620bebb4cdd2ce8c4344e379cc1275655a2bf204362b8fb\\">\\u003cmeta data-mint-head name=\\"twitter:image:width\\" content=\\"1200\\">\\u003cmeta data-mint-head name=\\"twitter:image:height\\" content=\\"630\\">\\u003cmeta data-mint-head name=\\"msapplication-config\\" content=\\"/docs/mintlify-assets/\_mintlify/favicons/cloro/4KOv8pRhaY1jvVpr/\_generated/favicon/browserconfig.xml\\">\\u003cmeta data-mint-head name=\\"apple-mobile-web-app-title\\" content=\\"cloro\\">\\u003cmeta data-mint-head name=\\"msapplication-TileColor\\" content=\\"#60A5FA\\">\\u003clink data-mint-head rel=\\"canonical\\" href=\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks\\">\\u003clink data-mint-head rel=\\"alternate\\" type=\\"application/xml\\" href=\\"/docs/sitemap.xml\\">\\u003clink data-mint-head rel=\\"alternate\\" type=\\"text/markdown\\" href=\\"/docs/api-reference/endpoint/create-batch-tasks.md\\">\\u003cscript data-mint-head type=\\"application/ld+json\\">{\\"@context\\":\\"https://schema.org\\",\\"@graph\\":\[{\\"@type\\":\\"Organization\\",\\"@id\\":\\"https://cloro.dev/#organization\\",\\"name\\":\\"cloro\\",\\"url\\":\\"https://cloro.dev\\",\\"logo\\":{\\"@type\\":\\"ImageObject\\",\\"url\\":\\"https://mintcdn.com/cloro/31REGvIJOWq8\_kV2/logo/light.svg?fit=max\\u0026auto=format\\u0026n=31REGvIJOWq8\_kV2\\u0026q=85\\u0026s=9649c139f2768786bbd491a86c1a9dd9\\"}},{\\"@type\\":\\"WebSite\\",\\"@id\\":\\"https://cloro.dev/docs#website\\",\\"name\\":\\"cloro\\",\\"url\\":\\"https://cloro.dev/docs\\",\\"publisher\\":{\\"@id\\":\\"https://cloro.dev/#organization\\"}},{\\"@type\\":\\"WebPage\\",\\"@id\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks#webpage\\",\\"url\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks\\",\\"name\\":\\"Create batch tasks\\",\\"description\\":\\"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.\\",\\"dateModified\\":\\"2026-11-12T17:22:14.695Z\\",\\"isPartOf\\":{\\"@id\\":\\"https://cloro.dev/docs#website\\"},\\"breadcrumb\\":{\\"@id\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks#breadcrumb\\"}},{\\"@type\\":\\"BreadcrumbList\\",\\"@id\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks#breadcrumb\\",\\"itemListElement\\":\[{\\"@type\\":\\"ListItem\\",\\"position\\":1,\\"name\\":\\"Async tasks\\",\\"item\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-async-task\\"},{\\"@type\\":\\"ListItem\\",\\"position\\":2,\\"name\\":\\"Create batch tasks\\",\\"item\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks\\"}\]},{\\"@type\\":\[\\"TechArticle\\",\\"APIReference\\"\],\\"@id\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks#apireference\\",\\"headline\\":\\"Create batch tasks\\",\\"name\\":\\"Create batch tasks\\",\\"description\\":\\"Submit up to 500 async tasks in one request. Each task is validated independently, so one invalid task does not block the rest. Returns per-task results.\\",\\"url\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks\\",\\"mainEntityOfPage\\":{\\"@id\\":\\"https://cloro.dev/docs/api-reference/endpoint/create-batch-tasks#webpage\\"},\\"dateModified\\":\\"2026-11-12T17:22:14.695Z\\",\\"publisher\\":{\\"@id\\":\\"https://cloro.dev/#organization\\"},\\"isPartOf\\":{\\"@id\\":\\"https://cloro.dev/docs#website\\"}}\]}\\u003c/script>\\u003cscript data-mint-head type=\\"application/ld+json\\">{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"cloro\\",\\"publisher\\":{\\"@type\\":\\"Organization\\",\\"name\\":\\"cloro\\"},\\"provider\\":{\\"@type\\":\\"Organization\\",\\"name\\":\\"Mintlify\\",\\"url\\":\\"https://mintlify.com\\"}}\\u003c/script>","agentPointerHref":"/docs/api-reference/endpoint/create-batch-tasks.md","siteName":"cloro","nav":{"global":null,"tabs":\[{"tab":"Documentation","icon":"book-open","pages":\[{"title":"Documentation","href":""}\]},{"tab":"API Reference","icon":"code","groups":\[{"group":"Overview","pages":\[{"title":"API reference","href":"/api-reference/introduction"}\]},{"group":"ChatGPT","pages":\[{"title":"Extract ChatGPT","openapi":"api-reference/openapi.json POST /v1/monitor/chatgpt","href":"/api-reference/endpoint/monitor-chatgpt"},{"title":"ChatGPT sources schema","sidebarTitle":"Sources","href":"/api-reference/endpoint/chatgpt/sources"},{"title":"ChatGPT shopping cards schema","sidebarTitle":"Shopping cards","tag":"Unavailable","href":"/api-reference/endpoint/chatgpt/shopping-cards"},{"title":"ChatGPT inline products schema","sidebarTitle":"Inline products","href":"/api-reference/endpoint/chatgpt/inline-products"},{"title":"ChatGPT product details schema","sidebarTitle":"Product details","href":"/api-reference/endpoint/chatgpt/product-details"},{"title":"ChatGPT entities schema","sidebarTitle":"Entities","href":"/api-reference/endpoint/chatgpt/entities"},{"title":"ChatGPT map entries schema","sidebarTitle":"Map entries","href":"/api-reference/endpoint/chatgpt/map"},{"title":"ChatGPT citation pills schema","sidebarTitle":"Citation pills","href":"/api-reference/endpoint/chatgpt/citation-pills"},{"title":"ChatGPT follow-up form schema","sidebarTitle":"Follow-up form","href":"/api-reference/endpoint/chatgpt/follow-up-form"},{"title":"ChatGPT sponsored ads schema","sidebarTitle":"Ads","href":"/api-reference/endpoint/chatgpt/ads"}\]},{"group":"Google","pages":\[{"title":"Extract Google Search","openapi":"api-reference/openapi.json POST /v1/monitor/google","href":"/api-reference/endpoint/monitor-google"},{"title":"Resolve a Google redirect link","sidebarTitle":"Redirect links","openapi":"api-reference/openapi.json POST /v1/monitor/google/goto","href":"/api-reference/endpoint/google/resolve-goto"},{"title":"Google organic search results schema","sidebarTitle":"Organic results","href":"/api-reference/endpoint/google/organic-results"},{"title":"Google Search sponsored ads schema","sidebarTitle":"Sponsored ads","href":"/api-reference/endpoint/google/sponsored-ads"},{"title":"Google Search shopping cards schema","sidebarTitle":"Shopping cards","href":"/api-reference/endpoint/google/shopping-cards"},{"title":"Get a Google shopping card product","sidebarTitle":"Shopping card product","openapi":"api-reference/openapi.json POST /v1/monitor/google/product","href":"/api-reference/endpoint/google/product"},{"title":"Google Search product results schema","sidebarTitle":"Product results","href":"/api-reference/endpoint/google/product-results"},{"title":"Google People Also Ask schema","sidebarTitle":"People Also Ask","href":"/api-reference/endpoint/google/people-also-ask"},{"title":"Google People Are Saying schema","sidebarTitle":"People Are Saying","href":"/api-reference/endpoint/google/people-are-saying"},{"title":"Google Recipes schema","sidebarTitle":"Recipes","href":"/api-reference/endpoint/google/recipes"},{"title":"Google Local Pack schema","sidebarTitle":"Local Pack","href":"/api-reference/endpoint/google/local-pack"},{"title":"Google Sports results schema","sidebarTitle":"Sports results","href":"/api-reference/endpoint/google/sports-results"},{"title":"Google Related websites schema","sidebarTitle":"Related websites","href":"/api-reference/endpoint/google/related-websites"},{"title":"Google Images schema","sidebarTitle":"Images","href":"/api-reference/endpoint/google/inline-images"},{"title":"Google Videos schema","sidebarTitle":"Videos","href":"/api-reference/endpoint/google/videos"},{"title":"Google Short videos schema","sidebarTitle":"Short videos","href":"/api-reference/endpoint/google/short-videos"},{"title":"Google Weather schema","sidebarTitle":"Weather","href":"/api-reference/endpoint/google/weather"},{"title":"Google Latest posts schema","sidebarTitle":"Latest posts","href":"/api-reference/endpoint/google/latest-posts"},{"title":"Google Finance quote schema","sidebarTitle":"Finance quote","href":"/api-reference/endpoint/google/finance-quote"},{"title":"Google Events schema","sidebarTitle":"Events","href":"/api-reference/endpoint/google/events"},{"title":"Google Discussions and forums schema","sidebarTitle":"Discussions and forums","href":"/api-reference/endpoint/google/discussions-and-forums"},{"title":"Google Things to know schema","sidebarTitle":"Things to know","href":"/api-reference/endpoint/google/things-to-know"},{"title":"Google transit results schema","sidebarTitle":"Transit results","href":"/api-reference/endpoint/google/transit-results"},{"title":"Google Flights schema","sidebarTitle":"Flights","href":"/api-reference/endpoint/google/flights"},{"title":"Google hotel results schema","sidebarTitle":"Hotel results","href":"/api-reference/endpoint/google/hotel-results"},{"title":"Google stores schema","sidebarTitle":"Stores","href":"/api-reference/endpoint/google/stores"},{"title":"Google comparison shopping sites schema","sidebarTitle":"Comparison shopping sites","href":"/api-reference/endpoint/google/comparison-shopping-sites"},{"title":"Google top sights schema","sidebarTitle":"Top sights","href":"/api-reference/endpoint/google/top-sights"},{"title":"Google related searches schema","sidebarTitle":"Related searches","href":"/api-reference/endpoint/google/related-searches"},{"group":"AI Overview","root":{"title":"Google AI Overview schema","sidebarTitle":"AI Overview","href":"/api-reference/endpoint/google/ai-overview"},"pages":\[{"title":"Google AI Overview sources schema","sidebarTitle":"Sources","href":"/api-reference/endpoint/google/ai-overview/sources"},{"title":"Google AI Overview citation pills schema","sidebarTitle":"Citation pills","href":"/api-reference/endpoint/google/ai-overview/citation-pills"},{"title":"Google AI Overview related links schema","sidebarTitle":"Related links","href":"/api-reference/endpoint/google/ai-overview/related-links"},{"title":"Google AI Overview places and map schema","sidebarTitle":"Places and map","href":"/api-reference/endpoint/google/ai-overview/places-and-map"},{"title":"Google AI Overview inline products schema","sidebarTitle":"Inline products","href":"/api-reference/endpoint/google/ai-overview/inline-products"},{"title":"Google AI Overview videos schema","sidebarTitle":"Videos","href":"/api-reference/endpoint/google/ai-overview/videos"},{"title":"Google AI Overview ads schema","sidebarTitle":"Ads","href":"/api-reference/endpoint/google/ai-overview/ads"}\]},{"title":"Google Knowledge Graph schema","sidebarTitle":"Knowledge Graph","href":"/api-reference/endpoint/google/knowledge-graph"}\]},{"group":"Google AI Mode","pages":\[{"title":"Extract Google AI Mode","openapi":"api-reference/openapi.json POST /v1/monitor/aimode","href":"/api-reference/endpoint/monitor-aimode"},{"title":"Google AI Mode sources schema","sidebarTitle":"Sources","href":"/api-reference/endpoint/aimode/sources"},{"title":"Google AI Mode citation pills schema","sidebarTitle":"Citation pills","href":"/api-reference/endpoint/aimode/citation-pills"},{"title":"Google AI Mode places schema","sidebarTitle":"Places","href":"/api-reference/endpoint/aimode/places"},{"title":"Google AI Mode shopping cards schema","sidebarTitle":"Shopping cards","href":"/api-reference/endpoint/aimode/shopping-cards"},{"title":"Google AI Mode product results schema","sidebarTitle":"Product results","href":"/api-reference/endpoint/aimode/product-results"},{"title":"Google AI Mode ads schema","sidebarTitle":"Ads","href":"/api-reference/endpoint/aimode/ads"},{"title":"Google AI Mode inline products schema","sidebarTitle":"Inline products","href":"/api-reference/endpoint/aimode/inline-products"},{"title":"Google AI Mode videos schema","sidebarTitle":"Videos","href":"/api-reference/endpoint/aimode/videos"},{"title":"Google AI Mode map schema","sidebarTitle":"Map","href":"/api-reference/endpoint/aimode/map"}\]},{"group":"Bing AI Mode","pages":\[{"title":"Extract Bing AI Mode","openapi":"api-reference/openapi.json POST /v1/monitor/bing/aimode","href":"/api-reference/endpoint/monitor-bing-aimode"},{"title":"Bing AI Mode sources schema","sidebarTitle":"Sources","href":"/api-reference/endpoint/bing-aimode/sources"},{"title":"Bing AI Mode citation pills schema","sidebarTitle":"Citation pills","href":"/api-reference/endpoint/bing-aimode/citation-pills"}\]},{"group":"Gemini","pages":\[{"title":"Extract Google Gemini","openapi":"api-reference/openapi.json POST /v1/monitor/gemini","href":"/api-reference/endpoint/monitor-gemini"},{"title":"Google Gemini sources schema","sidebarTitle":"Sources","href":"/api-reference/endpoint/gemini/sources"},{"title":"Google Gemini citation pills schema","sidebarTitle":"Citation pills","href":"/api-reference/endpoint/gemini/citation-pills"},{"title":"Google Gemini places schema","sidebarTitle":"Places","href":"/api-reference/endpoint/gemini/places"},{"title":"Google Gemini shopping cards schema","sidebarTitle":"Shopping cards","href":"/api-reference/endpoint/gemini/shopping-cards"}\]},{"group":"Google News","pages":\[{"title":"Extract Google News","openapi":"api-reference/openapi.json POST /v1/monitor/google/news","href":"/api-reference/endpoint/monitor-google-news"},{"title":"Google News articles schema","sidebarTitle":"News articles","href":"/api-reference/endpoint/google-news/news-articles"}\]},{"group":"Async tasks","pages":\[{"title":"Create async task","openapi":"api-reference/openapi.json POST /v1/async/task","href":"/api-reference/endpoint/create-async-task"},{"title":"Get task status","openapi":"api-reference/openapi.json GET /v1/async/task/{taskId}","description":"Poll the status and result of an asynchronous task by ID. Returns the task state and, once complete, the full structured result payload.","href":"/api-reference/endpoint/get-task-status"},{"title":"Create batch tasks","openapi":"api-reference/openapi.json POST /v1/async/task/batch","href":"/api-reference/endpoint/create-batch-tasks"},{"title":"Get async status","openapi":"api-reference/openapi.json GET /v1/async/status","description":"Get organization-wide async queue metrics including queued and processing task counts, and concurrency usage.","href":"/api-reference/endpoint/get-async-status"},{"title":"Clear queue","openapi":"api-reference/openapi.json DELETE /v1/async/queue","href":"/api-reference/endpoint/clear-async-queue"}\]},{"group":"Utilities","pages":\[{"title":"List of countries","openapi":"api-reference/openapi.json GET /v1/countries","href":"/api-reference/endpoint/countries"},{"title":"List of states","openapi":"api-reference/openapi.json GET /v1/states","href":"/api-reference/endpoint/states"},{"title":"Get credit balance","openapi":"api-reference/openapi.json GET /v1/credits","href":"/api-reference/endpoint/get-credits"}\]}\]},{"tab":"Changelog","icon":"newspaper","pages":\[{"title":"Changelog","href":"/changelog"}\]}\]},"basePath":"","title":"Create batch tasks - cloro","deploymentId":"dpl\_2MqcLy8smQrrovUehgcZEsoo1tJX","buildId":"dpl\_2MqcLy8smQrrovUehgcZEsoo1tJX","dynamics":\["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"\],"chunks":\["OpenApiReferenceProvider-DyP0AOE1.js","snippetPresets-CuYPAUIG.js","utils-ez5j6NBT.js","style-to-object-BY3JEAdk.js","utils-DG4aeUOF.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DFhcMUrP.js","conditional-requirements-CFM0id0Q.js","cloneDeep-ByDTqllG.js","\_Uint8Array-CJ2WjX\_H.js","isObject-FP1Yky1u.js","ApiExamples-fyn9sMD9.js","usePlaygroundInputsStore-Bf0N\_Y6L.js","shallow-CnU26VTn.js","isEqual-OWIKZzop.js","CodeSnippets-CZ9-M31v.js","CodeSnippet-CCk6UVRR.js","getApiPlaygroundDisplay-BUw5JwZB.js","Page-CInwEL5w.js","DynamicMarkdown-CU5QIokU.js","SectionHeading-BoT1NwPU.js","icon-MsvNhD56.js","MethodPill-CC7p0-fp.js","getPastedJson-BOWYR2ND.js","DuplicateIcon-DOWJyC1b.js","createIcon-BsNyCaLY.js","axios-CsQoIw0U.js","Markdown-L0uigQE0.js","AssistantPageLink-Cur5OU4v.js","dist-CLdzWocy.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"\]}