API Reference

Batch Processing endpoints के लिए REST API reference।

त्वरित लिंक:

डेटा ingest करें

Video upload करें

Upload a video

post

Request a signed URL to upload a video file. After receiving the response, PUT the video to the uploadURL with the provided extensionHeaders.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

fileNamestringRequired

Name of the video file (e.g. my_video.mp4).

Responses
chevron-right
200

Signed URL details for uploading the video.

application/json
statusstringOptionalExample: ok
post
/data-staging/v1/external/{workspace}/batches/{batch_id}/upload/video
200

Signed URL details for uploading the video.

Image upload करें

Upload a single image

post

Upload a single image via multipart form data. Best for batches up to 5,000 images.

Note: Single-image and bulk uploads cannot be combined for the same batch.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

fileNamestringRequired

Name of the image file.

Body
filestring · binaryOptional

The image file to upload.

Responses
chevron-right
200

Image uploaded successfully.

application/json
statusstringOptionalExample: ok
post
/data-staging/v1/external/{workspace}/batches/{batch_id}/upload/image
200

Image uploaded successfully.

Bulk में Images upload करें

Bulk upload images

post

Request a signed URL for uploading a .tar archive of images. Recommended for batches exceeding 5,000 images. Bundle up to 500 images per archive.

The response contains a signed URL and extension headers. Pack images into a .tar archive and PUT it to the signed URL.

Note: Bulk and single-image uploads cannot be combined for the same batch.

When performing bulk ingestion, data is indexed in the background. There may be a short delay before all data is available.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

Responses
chevron-right
200

Signed URL details for uploading a tar archive.

application/json
statusstringOptionalExample: ok
post
/data-staging/v1/external/{workspace}/batches/{batch_id}/bulk-upload/image-files
200

Signed URL details for uploading a tar archive.

Batch Status जाँचें

Get batch item count

get

Returns the count of ingested items in a batch. Use this to verify all data has been ingested before starting a job.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

Responses
chevron-right
200

Batch item count.

application/json
statusstringOptionalExample: ok
countintegerOptional

Number of items in the batch.

Example: 42
get
/data-staging/v1/external/{workspace}/batches/{batch_id}/count
200

Batch item count.

Shard Upload Details जाँचें

List batch shards

get

Returns shard details for a bulk-upload batch. Paginated — use nextPageToken from the response to fetch subsequent pages.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

nextPageTokenstringOptional

Pagination token from a previous response.

Responses
chevron-right
200

Paginated list of batch shards.

application/json
statusstringOptionalExample: ok
shardsobject[]Optional

List of shard objects.

nextPageTokenstring · nullableOptional

Token for fetching the next page of results. null if no more pages.

get
/data-staging/v1/external/{workspace}/batches/{batch_id}/shards
200

Paginated list of batch shards.

एक Job शुरू करें

Start a batch processing job

post

Start a batch processing job that runs a Workflow against staged data.

Job ID constraints: Lowercase letters, digits, hyphens, and underscores only. Maximum 20 characters.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

job_idstring · max: 20Required

Job identifier. Lowercase, max 20 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

Body
typestring · enumRequired

Job type.

Possible values:
processingTimeoutSecondsintegerOptional

Maximum cumulative machine runtime in seconds across all parallel workers.

Default: 3600
notificationsURLstring · uriOptional

Webhook URL for job completion notifications. Custom webhook headers are not yet supported. The only header sent is Authorization: Bearer rf_{workspace_id}.

Responses
chevron-right
200

Job started successfully.

application/json
statusstringOptionalExample: ok
post
/batch-processing/v1/external/{workspace}/jobs/{job_id}
200

Job started successfully.

Job प्रगति की निगरानी करें

Job Status प्राप्त करें

Get job status

get

Returns the current status of a batch processing job.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

job_idstring · max: 20Required

Job identifier. Lowercase, max 20 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

Responses
chevron-right
200

Job status details.

application/json
statusstringOptionalExample: ok
jobStatusstringOptional

Current job status (e.g. pending, processing, completed, failed).

progressnumberOptional

Processing progress as a fraction between 0 and 1.

get
/batch-processing/v1/external/{workspace}/jobs/{job_id}
200

Job status details.

Job Stages की सूची देखें

List job stages

get

Returns the list of stages for a job. Each job typically has processing and export stages, each producing an output batch.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

job_idstring · max: 20Required

Job identifier. Lowercase, max 20 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

Responses
chevron-right
200

List of job stages.

application/json
statusstringOptionalExample: ok
stagesobject[]Optional

List of stage objects. Each stage has an ID and an output batch ID.

get
/batch-processing/v1/external/{workspace}/jobs/{job_id}/stages
200

List of job stages.

Stage Tasks की सूची देखें

List tasks for a stage

get

Returns the list of tasks for a specific job stage. Paginated — use nextPageToken from the response to fetch subsequent pages.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

job_idstring · max: 20Required

Job identifier. Lowercase, max 20 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
stage_idstringRequired

The stage identifier.

Query parameters
api_keystringRequired

Your Roboflow API key.

nextPageTokenstringOptional

Pagination token from a previous response.

Responses
chevron-right
200

Paginated list of tasks.

application/json
statusstringOptionalExample: ok
tasksobject[]Optional

List of task objects.

nextPageTokenstring · nullableOptional

Token for fetching the next page of results. null if no more pages.

get
/batch-processing/v1/external/{workspace}/jobs/{job_id}/stages/{stage_id}/tasks
200

Paginated list of tasks.

Results export करें

Output Parts की सूची देखें

List output batch parts

get

Lists the parts of an output batch. Use the export stage output batch for compressed results.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

Responses
chevron-right
200

List of batch parts.

application/json
statusstringOptionalExample: ok
get
/data-staging/v1/external/{workspace}/batches/{batch_id}/parts
200

List of batch parts.

Download URLs की सूची देखें

List download URLs

get

Returns paginated download URLs for files in a batch part.

Path parameters
workspacestringRequired

Your Roboflow workspace identifier.

batch_idstring · max: 64Required

Batch identifier. Lowercase, max 64 chars: letters, digits, hyphens, underscores.

Pattern: ^[a-z0-9_-]+$
Query parameters
api_keystringRequired

Your Roboflow API key.

nextPageTokenstringOptional

Pagination token from a previous response.

partNamestringOptional

Filter by part name (from the list parts response).

Responses
chevron-right
200

Paginated list of download URLs.

application/json
statusstringOptionalExample: ok
nextPageTokenstring · nullableOptional

Token for fetching the next page of results. null if no more pages.

get
/data-staging/v1/external/{workspace}/batches/{batch_id}/list
200

Paginated list of download URLs.

Webhook Notifications

Status के लिए polling करने के बजाय, ingestion या processing पूरा होने पर notified होने के लिए आप webhooks का उपयोग कर सकते हैं। देखें CLI Usage webhook configuration और payload formats के लिए।

Last updated

Was this helpful?