Links

Bulk job status

get
https://api.imagekit.io
/v1/bulkJobs/:jobId
Bulk job status API

Response structure and status code (application/JSON)

In case of an error, you will get an error code along with the error message. On success, you will receive a 200 status code with a JSON-encoded body.

Understanding the response

The JSON-encoded response will have the following properties:
Property name
Description
jobId
The jobId you get in the response of bulk job API e.g. copy folder or move folder API.
type
The type of operation, it could be either COPY_FOLDER or MOVE_FOLDER.
status
The current status of the job. It can be either:
  • Pending - The job has been successfully submitted and is in progress.
  • Completed - The job has been completed.
cURL
Node.js
Python
PHP
Java
Ruby
Go
.Net
curl -X GET "https://api.imagekit.io/v1/bulkJobs/job_id" \
-u your_private_api_key:
var ImageKit = require("imagekit");
var imagekit = new ImageKit({
publicKey : "your_public_api_key",
privateKey : "your_private_api_key",
urlEndpoint : "https://ik.imagekit.io/your_imagekit_id/"
});
var jobId = "job_id";
imagekit.getBulkJobStatus(jobId, function(error, result) {
if(error) console.log(error);
else console.log(result);
});
from imagekitio import ImageKit
imagekit = ImageKit(
public_key='your_public_api_key',
private_key='your_private_api_key',
url_endpoint = 'https://ik.imagekit.io/your_imagekit_id/'
)
job_status = imagekit.get_bulk_job_status(job_id="job_id")
print("Bulk job status-", job_status, end="\n\n")
# Raw Response
print(job_status.response_metadata.raw)
# print the job's id
print(job_status.job_id)
# print the status
print(job_status.status)
use ImageKit\ImageKit;
$public_key = "your_public_api_key";
$your_private_key = "your_private_api_key";
$url_end_point = "https://ik.imagekit.io/your_imagekit_id";
$imageKit = new ImageKit(
$public_key,
$your_private_key,
$url_end_point
);
$jobId = 'job_id';
// The jobId you get in the response of bulk job API e.g. copy folder or move folder API.
$bulkJobStatus = $imageKit->getBulkJobStatus($jobId);
echo("Bulk Job Status : " . json_encode($bulkJobStatus));
String jobId = "job_id";
ResultBulkJobStatus resultBulkJobStatus = ImageKit.getInstance().getBulkJobStatus(jobId);
imagekitio = ImageKitIo::Client.new("your_private_key", "your_public_key", "your_url_endpoint")
imagekitio.bulk_job_status(job_id: 'job_id')
resp, err := ik.BulkJobStatus(ctx, "job_id")
var imagekit = new ImageKit({
publicKey : "your_public_api_key",
privateKey : "your_private_api_key",
urlEndpoint : "https://ik.imagekit.io/your_imagekit_id/"
});
var jobId = "job_id";
ResultBulkJobStatus resultBulkJobStatus = imagekit.GetBulkJobStatus(jobId);