getJobStatus method

Future<BulkValidationJob> getJobStatus(
  1. String jobId
)

Gets the current status of a bulk validation job.

jobId The ID of the job to check (obtained from createBulkJob).

Returns a BulkValidationJob with the current status, progress, and statistics.

Throws an ApiException if:

  • The job ID is invalid (404)
  • The API key is invalid (401)
  • Network or server errors occur

Example:

final status = await client.getJobStatus(job.id);
print('Status: ${status.status}');
print('Progress: ${status.processedEmails}/${status.totalEmails}');

Implementation

Future<BulkValidationJob> getJobStatus(String jobId) async {
  return _request<BulkValidationJob>(
    'GET',
    '/api/v1/jobs/$jobId',
    null,
    (json) => BulkValidationJob.fromJson(json),
  );
}