After a batch is ready, fetch task IDs for completed tasks so you can retrieve final task results.
GET https://api.openmart.ai/api/v1/task/batch/:batch_id/task_ids?status=COMPLETEDUse this endpoint after batch_ready is true. Replace <batch_id> with your batch ID.
batch_idstatus| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
batch_id | string | Yes | "183219bc..." | The batch ID returned when you submit a batch request. |
status | string | No | "COMPLETED" | Optional status filter for returned task IDs (for example COMPLETED). |
curl --request GET \
--url https://api.openmart.ai/api/v1/task/batch/<batch_id>/task_ids?status=COMPLETED \
--header 'Accept: application/json' \
--header 'X-API-Key: <your_api_key>'[
"2fc8b627-1111-2222-3333-123456789abc"
]# Get Task IDs in a Batch ## Endpoint GET https://api.openmart.ai/api/v1/task/batch/:batch_id/task_ids?status=COMPLETED ## Description After a batch is ready, fetch task IDs for completed tasks so you can retrieve final task results. ## Authentication Header: `X-API-Key: <your_api_key>` ## Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | batch_id | string (path) | Yes | The batch ID returned when you submit a batch request. | | status | string (query) | No | Optional status filter (e.g. COMPLETED). | ## Example Request ```bash curl -X GET "https://api.openmart.ai/api/v1/task/batch/<batch_id>/task_ids?status=COMPLETED" \ -H "Accept: application/json" \ -H "X-API-Key: <your_api_key>" ``` ## Example Response ```json [ "2fc8b627-1111-2222-3333-123456789abc" ] ```