---
title: "Get Active Jobs"
method: GET
path: "/api/jobs/active/{business_id}"
tags: ["jobs"]
---

# Get Active Jobs

`GET /api/jobs/active/{business_id}`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/jobs/active/{business_id}`
- Auth: HTTP bearer

Get active (pending/processing) jobs for a business.

Use this on page load to resume polling for in-progress jobs.

Args:
    business_id: Business UUID
    ctx: Advisor context

Returns:
    List of active jobs (may be empty)

## Path parameters

- `business_id` string, required

## Response `200`

Successful Response

- JobResponse[]
  - `id` string, uuid, required
  - `status` 'pending' | 'processing' | 'completed' | 'failed', required: Job status enum - must match database enum job_status.
  - `job_type` 'report_generation' | 'custom_report_analysis' | 'report_section_generation' | 'zip_extraction' | 'reminder_processing' | 'document_processing' | 'rag_engine_upload' | 'file_search_index' | 'manifest_generation' | 'vdr_classification' | 'insight_extraction' | 'red_flag_extraction' | 'advisor_insight_fill' | 'research_generation' | 'summary_generation' | 'insight_answer' | 'request_matching' | 'adjustment_generation' | 'adjustment_quantification' | 'data_cleaning' | 'coa_remapping' | 'anonymization_scan' | 'anonymization_run' | 'markdown_extraction' | 'document_indexing' | 'table_extraction' | 'markdown_batch_poll' | 'inbound_email', required: Job type enum - must match database enum job_type.
  - `payload` object
  - `result` object, nullable
  - `error` string, nullable
  - `created_at` string, date-time, required
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
