Batch job object.

interface Batch {
    cancelled_at?: null | number;
    cancelling_at?: null | number;
    completed_at?: null | number;
    completion_window?: string;
    created_at?: number;
    endpoint?: string;
    error_file_id?: null | string;
    errors?: null | string[];
    expired_at?: null | number;
    expires_at?: null | number;
    failed_at?: null | number;
    finalizing_at?: null | number;
    id?: string;
    in_progress_at?: null | number;
    input_file_id?: string;
    metadata?: Record<string, string>;
    object?: string;
    output_file_id?: null | string;
    request_counts?: RequestCounts;
    status?: string;
}

Properties

cancelled_at?: null | number

Unix timestamp when the batch job was cancelled.

cancelling_at?: null | number

Unix timestamp when the batch job started cancelling.

completed_at?: null | number

Unix timestamp when the batch job completed.

completion_window?: string

Time window for completion of the batch job.

created_at?: number

Unix timestamp when the batch job was created.

endpoint?: string

API endpoint used for processing each batch item.

error_file_id?: null | string

ID of the error file, if available.

errors?: null | string[]

Array of error messages, if any.

expired_at?: null | number

Unix timestamp when the batch job expired.

expires_at?: null | number

Unix timestamp when the batch job expires.

failed_at?: null | number

Unix timestamp when the batch job failed.

finalizing_at?: null | number

Unix timestamp when the batch job started finalizing.

id?: string

The unique identifier for the batch job.

in_progress_at?: null | number

Unix timestamp when the batch job started processing.

input_file_id?: string

ID of the uploaded input file for the batch job.

metadata?: Record<string, string>

Additional metadata for the batch job.

object?: string

The object type, which is always "batch".

output_file_id?: null | string

ID of the output file, if available.

request_counts?: RequestCounts

Request counts for the batch job.

status?: string

Current status of the batch job.