Job Management
Operations for tracking and managing generation jobs
Retrieves detailed information about a specific job including status and progress
JWT token for user session authentication.
ID of the job to retrieve
Job status retrieved successfully
Represents a content generation job with comprehensive tracking information
The unique identifier for the job
987fcdeb-51a2-43d7-8f9e-123456789abcThe ID of the user who owns the job
The ID of the project associated with the job
The current status of the job
The completion progress of the job (0 to 100)
75.5A textual description of the current processing stage
generating_workPercentage completion of the job
The title of the job/project
Whether the job uses Bring Your Own Key (user's API key)
falseThe AI model used for reasoning tasks
google/gemini-2.5-flash-001The AI model used for writing tasks
google/gemini-2.5-flash-001The AI model used for function calling
google/gemini-2.5-flash-001Error message if the job failed
Whether the job is starred by the user
falseTimestamp when the job was created
Timestamp when the job was last updated
Unauthorized
Job not found
Internal Server Error
GET /api/getJobStatus?jobId=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "987fcdeb-51a2-43d7-8f9e-123456789abc",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "draft",
"progress": 75.5,
"progress_stage": "generating_work",
"percent_complete": 1,
"title": "text",
"is_byok": false,
"reasoning_model": "google/gemini-2.5-flash-001",
"writing_model": "google/gemini-2.5-flash-001",
"function_model": "google/gemini-2.5-flash-001",
"error_message": "text",
"is_starred": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}Cancels a job that is currently in progress or queued
JWT token for user session authentication.
ID of the job to cancel
Job cancelled successfully
Job cancelled successfullyBad Request
Unauthorized
Job not found
Internal Server Error
POST /api/cancelJob HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"jobId": "123e4567-e89b-12d3-a456-426614174000"
}{
"message": "Job cancelled successfully"
}Last updated
