Get batch detail
curl --request GET \
--url https://api.runflow.io/v1/batches/{id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_type_code": "<string>",
"target_type": "<string>",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_code": "<string>",
"source_code": "<string>",
"items_total": 123,
"items_succeeded": 123,
"items_failed": 123,
"items_cancelled": 123,
"input": [
{}
],
"resolved_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dispatch_provider_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": "<string>",
"output": {},
"metadata": {},
"callback_url": "<string>",
"duration_ms": 123,
"failure_code": "<string>",
"failure_message": "<string>",
"failure_stage_code": "<string>",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"links": {},
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence_index": 123,
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_code": "<string>",
"client_ref": "<string>"
}
]
}Batches
Get batch detail
Get a batch by id with an inline lean items[] for polling.
items[] is always the joined batch_items × runs handle
projection (see :class:models.batch.BatchItemHandle) so customers
don’t need a second request to address each item. For the full
per-item projection (input/output/cost/timestamps), use the
paginated GET /batches/{id}/items endpoint.
GET
/
v1
/
batches
/
{id}
Get batch detail
curl --request GET \
--url https://api.runflow.io/v1/batches/{id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_type_code": "<string>",
"target_type": "<string>",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_code": "<string>",
"source_code": "<string>",
"items_total": 123,
"items_succeeded": 123,
"items_failed": 123,
"items_cancelled": 123,
"input": [
{}
],
"resolved_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dispatch_provider_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": "<string>",
"output": {},
"metadata": {},
"callback_url": "<string>",
"duration_ms": 123,
"failure_code": "<string>",
"failure_message": "<string>",
"failure_stage_code": "<string>",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"links": {},
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence_index": 123,
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_code": "<string>",
"client_ref": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Path Parameters
Response
Successful Response
Response shape.
Pattern:
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Show child attributes
Show child attributes
⌘I