List indexing jobs
const url = 'https://firma.company-gpt.com/companygpt/rag/api/jobs?status=queued';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://firma.company-gpt.com/companygpt/rag/api/jobs?status=queued' \ --header 'Authorization: Bearer <token>'Get paginated list of indexing jobs with optional filtering, scoped to the caller’s accessible collections
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“Page number (default 1)
Items per page (default 20, max 100)
Filter by job status
Comma-separated list of collection UUIDs to filter by (intersected with the caller’s accessible collections)
Responses
Abschnitt betitelt „Responses“List of jobs
Paginated list of jobs (handlers.JobListResponse)
object
Indexing job information (handlers.JobInfo)
object
Unique job identifier
Associated file ID
Name of the file being processed (list endpoint only)
Associated collection ID (list endpoint only)
Associated collection name (list endpoint only)
Job action type (JSON key is “type”; the Go field is named Action)
Current job status
Number of retries attempted
Maximum allowed retries
Error message if job failed
ISO 8601 creation timestamp
ISO 8601 start timestamp
ISO 8601 completion timestamp
1-based position in the global FIFO queue; present only for jobs currently in ‘queued’ status (list endpoint only)
object
Absent when the best-effort queue-stats query fails
object
Write-scoped (admin-role collections only) count of failed jobs — what “Delete/Retry All Failed” can actually act on. Distinct from statusCounts.failed, which is read-scoped for the informational badge.
Example
{ "jobs": [ { "type": "index", "status": "queued" } ]}Unauthorized
object
Error message
Examplegenerated
{ "error": "example"}