Free Background Jobs API — Mock REST API for Testing & Development
Simulates background job processing queues (BullMQ/Celery style): submit a job, check progress percentage, and retrieve artifacts.
Interactive Live API Explorer
/api/jobs
Queue new background job with parameters.
/api/jobs/{jobId}
Get job status, progress, and results. Replace {jobId} with an actual ID.
Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).
/api/jobs
List jobs with status filtering and pagination.
You can add or change query parameters in the path above (e.g., ?name=User).
/api/jobs/{jobId}
Cancel queued or running job. Replace {jobId} with an actual ID.
Replace placeholders (e.g., {userId}) with actual values in the path above.
Code Integration Examples
// Free Background Jobs API - JavaScript Fetch Example
async function fetchBackgroundJobsAPI() {
try {
const response = await fetch('https://gen-endpoint.com/api/jobs', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"type": "data_export",
"parameters": {
"format": "csv",
"entity": "users",
"filters": {"role": "admin"}
},
"priority": "normal",
"scheduledAt": "2024-08-16T13:00:00Z"
}),
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
console.log('Success:', data);
return data;
} catch (error) {
console.error('Fetch error:', error);
}
}
fetchBackgroundJobsAPI();Sample JSON Response
{
"id": "job_789",
"type": "data_export",
"status": "queued",
"priority": "normal",
"queuePosition": 3,
"estimatedStartTime": "2024-08-16T12:05:00Z"
}Common Developer Use Cases
Testing progress bar animations for long tasks.
Verifying job completion toasts and polling intervals.
Related Free REST APIs
System Status API
Provides the current operational status, version, and timestamp of the application. Ideal for health checks and monitoring.
Data Export API
Export data in various formats (CSV, JSON, XML) with filtering and field selection.
Analytics & Metrics API
Track events, generate reports, and provide dashboard data with real-time metrics.
Frequently Asked Questions
Does job progress update?
Yes, polling GET /api/jobs/{jobId} simulates progress increments toward 100%.