Project Management
Operations for managing projects and project data
Retrieves a list of documents (jobs and projects) for the authenticated user. Returns job-based data with project information included.
JWT token for user session authentication.
Documents retrieved successfully
Combined job and project data for dashboard display
The job ID (primary identifier)
The associated project ID
The job ID (same as id, for compatibility)
The title of the document/project
The current status of the job
The completion progress
Whether the document is starred
When the job was created
When the job was last updated
Unauthorized
Internal Server Error
GET /api/fetchDocuments HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"jobId": "123e4567-e89b-12d3-a456-426614174000",
"title": "text",
"status": "draft",
"progress": 1,
"is_starred": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
]Creates a copy of an existing project with all its settings and files
JWT token for user session authentication.
ID of the project to duplicate
Project duplicated successfully
ID of the newly created duplicate project
Bad Request
Unauthorized
Project not found
Internal Server Error
POST /api/duplicateProject HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"projectId": "123e4567-e89b-12d3-a456-426614174000"
}{
"id": "123e4567-e89b-12d3-a456-426614174000"
}Toggles the starred status of a document (job)
JWT token for user session authentication.
ID of the job to star/unstar
Document starred/unstarred successfully
Document starred successfullyBad Request
Unauthorized
Job not found
Internal Server Error
POST /api/starDocument HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"jobId": "123e4567-e89b-12d3-a456-426614174000"
}{
"message": "Document starred successfully"
}Last updated
