Get the status and result of a specific async job.
Poll this endpoint after starting an async chat request. Possible statuses: pending, in_progress, awaiting_approval, completed, failed, cancelled.
When status is ‘awaiting_approval’, the metadata.pending_changes array contains the proposed changes (change_id, operation, chunk_id, old_html, new_html, ai_explanation). Call POST /v1/chat//approve to approve or deny them.
When status is ‘completed’, the result field contains the AI response and any document changes.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Status and details of an async job.
Unique job identifier. Use this to poll for status updates.
Session associated with this job.
Type of job: 'chat' or 'attachment_processing'.
Current status: 'pending', 'in_progress', 'awaiting_approval', 'completed', 'failed', or 'cancelled'.
ISO 8601 timestamp when the job was created.
ISO 8601 timestamp of the last status change.
Progress percentage (0-100).
Organization that owns this job (null for user jobs).
User that owns this job (null for organization jobs).
Job output. Present when status is 'completed'. Contains AI response and document changes for chat jobs.
Error message. Present when status is 'failed'.
Job metadata and context. Contains pending_changes when status is 'awaiting_approval'.