jobs

Create Job

Create a new background job.

Returns immediately with job ID. Poll GET /api/jobs/{job_id} for status.

Args: job_data: Job type and payload ctx: Advisor context with RLS-scoped Supabase client

Returns: Created job with status 'pending'

post/api/jobs

Request

  • Base URL
    https://api.flagpost.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

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.

payloadobject

Response

Successful Response

idstring 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.

payloadobject
resultobject nullable
errorstring nullable
created_atstring date-time required
started_atstring date-time nullable
completed_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.