Async Jobs
Endpoint
/api/generation/jobs
/api/generation/jobs
This endpoint allows you to retrieve a list of generation jobs. You can optionally apply filters to narrow down the results by status or tags. The endpoint supports a GET request method.
Headers
The request should include the following header:
Endpoint
Example Request
Example Response
Parameters
The endpoint accepts the following optional query parameters:
status
string
Filters the jobs by their status. Possible values: "pending", "complete".
tags
string
Filters the jobs by user-defined tags.
Response
The API will respond with a JSON object containing the following properties:
isSuccess
boolean
Indicates whether the request was successful or not.
storeList
array
An array of objects representing the generation jobs.
totalPages
number
The total number of pages available for the job list.
currentPage
number
The current page of the returned results.
totalStores
number
The total number of generation jobs available.
storeList Object Properties
Each object in the storeList
array represents a generation job and has the following properties:
_id
string
The unique identifier for the job.
file_url
string
The URL of the generated file.
tags
array
An array of tags associated with the job (empty if no tags are provided).
generations
string
A description of the generation or generated content associated with the job.
Note: The
tags
andgenerations
properties might not be present for all jobs in thestoreList
.
Last updated