Skip to main content

GET /generate/:jobId

This endpoint returns the current status of a generation job. Since generation is now synchronous, this is primarily useful for checking the details of a completed job or for debugging failed jobs.

Path Parameters

jobId
string
required
The ID of the generation job to check.

Response

id
string
The ID of the generation job.
status
string
The current status of the job.
progress
number
The progress of the job as a percentage.
url
string
The URL for which the file was generated.
createdAt
string
The timestamp for when the job was created.
completedAt
string
The timestamp for when the job was completed.
fileUrl
string
The URL of the generated file.
error
string
An error message if the job failed.
curl -X GET https://api.llmgenerator.com/api/v1/generate/gen_xxxxxxxxxxxxx \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": "gen_xxxxxxxxxxxxx",
  "status": "completed",
  "progress": 100,
  "url": "https://www.example.com",
  "createdAt": "2023-10-27T10:00:00Z",
  "completedAt": "2023-10-27T10:01:00Z",
  "fileUrl": "https://files.llmgenerator.com/llms-xxxxxxxx.txt",
  "error": null,
  "processedUrls": [
      "https://www.example.com/",
      "https://www.example.com/about"
  ]
}