curl "https://api.destined.ai/v1/jobs?status=completed&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"
const jobs = await client.jobs.listJobsV1JobsGet({
status: "completed",
limit: 10,
});
{
"items": [
{
"job_id": "job_abc123",
"status": "completed",
"progress": 100,
"total_items": 3,
"created_at": "2024-01-15T10:30:00Z"
},
{
"job_id": "job_def456",
"status": "completed",
"progress": 100,
"total_items": 5,
"created_at": "2024-01-14T09:00:00Z"
}
],
"total": 25,
"limit": 10,
"offset": 0,
"has_more": true
}
Jobs
List Jobs
List all batch jobs for the current user
GET
/
v1
/
jobs
curl "https://api.destined.ai/v1/jobs?status=completed&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"
const jobs = await client.jobs.listJobsV1JobsGet({
status: "completed",
limit: 10,
});
{
"items": [
{
"job_id": "job_abc123",
"status": "completed",
"progress": 100,
"total_items": 3,
"created_at": "2024-01-15T10:30:00Z"
},
{
"job_id": "job_def456",
"status": "completed",
"progress": 100,
"total_items": 5,
"created_at": "2024-01-14T09:00:00Z"
}
],
"total": 25,
"limit": 10,
"offset": 0,
"has_more": true
}
Query Parameters
string
Filter by status:
pending, processing, completed, failedinteger
default:"20"
Number of results (max 100)
integer
default:"0"
Number of results to skip
Response
array
required
Array of job objects
integer
required
Total number of jobs
curl "https://api.destined.ai/v1/jobs?status=completed&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"
const jobs = await client.jobs.listJobsV1JobsGet({
status: "completed",
limit: 10,
});
{
"items": [
{
"job_id": "job_abc123",
"status": "completed",
"progress": 100,
"total_items": 3,
"created_at": "2024-01-15T10:30:00Z"
},
{
"job_id": "job_def456",
"status": "completed",
"progress": 100,
"total_items": 5,
"created_at": "2024-01-14T09:00:00Z"
}
],
"total": 25,
"limit": 10,
"offset": 0,
"has_more": true
}