APIリファレンス

バッチ処理エンドポイントのREST APIリファレンス。

クイックリンク:

データを取り込む

動画をアップロード

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.

画像をアップロード

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 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.

バッチのステータスを確認

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のアップロード詳細を確認

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.

ジョブを開始

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のステータスを取得

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のステージを一覧表示

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.

ステージのタスクを一覧表示

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.

結果をエクスポート

出力パーツを一覧表示

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.

ダウンロードURLを一覧表示

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通知

ステータスをポーリングする代わりに、webhookを使用して、取り込みまたは処理が完了したときに通知を受け取ることができます。 CLIの使用方法 について、webhookの設定とペイロード形式を参照してください。

Last updated

Was this helpful?