Gen-Endpoint

Free Background Jobs API — Mock REST API for Testing & Development

System
4 Endpoints
Live & Active

Simulates background job processing queues (BullMQ/Celery style): submit a job, check progress percentage, and retrieve artifacts.

Internal API - Hosted by Gen-Endpoint

Interactive Live API Explorer

Explore, configure parameters, and execute live HTTP requests directly in your browser. All routes are active!
POST

/api/jobs

Queue new background job with parameters.

Try it live in browser
GET

/api/jobs/{jobId}

Get job status, progress, and results. Replace {jobId} with an actual ID.

Try it live in browser

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

GET

/api/jobs

List jobs with status filtering and pagination.

Try it live in browser

You can add or change query parameters in the path above (e.g., ?name=User).

DELETE

/api/jobs/{jobId}

Cancel queued or running job. Replace {jobId} with an actual ID.

Try it live in browser

Replace placeholders (e.g., {userId}) with actual values in the path above.

Code Integration Examples

Copy ready-to-use cURL commands and JavaScript Fetch snippets directly into your projects or testing tools.
Standard Fetch API (Browser & Node.js 18+)
// 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

How developers integrate the Background Jobs API during rapid frontend prototyping and automated testing.

Testing progress bar animations for long tasks.

Verifying job completion toasts and polling intervals.

Related Free REST APIs

Explore complementary mock endpoints to chain and test full application workflows.

System Status API

System

Provides the current operational status, version, and timestamp of the application. Ideal for health checks and monitoring.

View API

Data Export API

Data

Export data in various formats (CSV, JSON, XML) with filtering and field selection.

View API

Analytics & Metrics API

Analytics

Track events, generate reports, and provide dashboard data with real-time metrics.

View API

Frequently Asked Questions

Does job progress update?

Yes, polling GET /api/jobs/{jobId} simulates progress increments toward 100%.