Filter Batch Jobs

POST for filtering (not creation) - delegate to GET.

Authentication

AuthorizationBearer

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

Request

This endpoint expects an object.
idstringRequired1-255 characters

Provider’s batch ID (e.g., batch_…)

provider_idstringRequired1-50 characters

Provider ID matching litellm_provider_id (e.g., ‘openai’, ‘parasail’)

start_log_unique_idstringRequired1-255 characters

unique_id of the start log (log_type=BATCH)

statusenumOptional

Batch job status (OpenAI-compatible)

  • pending - Pending
  • validating - Validating
  • in_progress - In Progress
  • finalizing - Finalizing
  • completed - Completed
  • failed - Failed
  • cancelling - Cancelling
  • cancelled - Cancelled
  • expired - Expired
request_countintegerOptional-2147483648-2147483647
completed_countintegerOptional-2147483648-2147483647
failed_countintegerOptional-2147483648-2147483647
total_costdoubleOptional

Total cost calculated from output (populated on completion)

completed_atdatetime or nullOptional
When batch reached terminal status
last_polled_atdatetime or nullOptional

Last time status was polled (for smart backoff)

completion_log_unique_idstringOptional<=255 characters

unique_id of the completion log (populated when status=completed and logged)

provider_dataanyOptional

Provider metadata (input_file_id, endpoint, etc.)

Response

idstring<=255 characters

Provider’s batch ID (e.g., batch_…)

provider_idstring<=50 characters

Provider ID matching litellm_provider_id (e.g., ‘openai’, ‘parasail’)

is_usage_trackedstringRead-only
is_activestringRead-only
is_terminalstringRead-only
created_atdatetimeRead-only
updated_atdatetimeRead-only
start_log_unique_idstring<=255 characters

unique_id of the start log (log_type=BATCH)

statusenumOptional

Batch job status (OpenAI-compatible)

  • pending - Pending
  • validating - Validating
  • in_progress - In Progress
  • finalizing - Finalizing
  • completed - Completed
  • failed - Failed
  • cancelling - Cancelling
  • cancelled - Cancelled
  • expired - Expired
request_countintegerOptional-2147483648-2147483647
completed_countintegerOptional-2147483648-2147483647
failed_countintegerOptional-2147483648-2147483647
total_costdoubleOptional

Total cost calculated from output (populated on completion)

completed_atdatetime or nullOptional
When batch reached terminal status
last_polled_atdatetime or nullOptional

Last time status was polled (for smart backoff)

completion_log_unique_idstringOptional<=255 characters

unique_id of the completion log (populated when status=completed and logged)

provider_dataanyOptional

Provider metadata (input_file_id, endpoint, etc.)