Jobs

List image results in processing

Returns ImageResult objects that have been in 'pending' or 'processing' status for longer than the specified minimum time. Use minute filters (e.g., 0.0167 hours = 1 minute) for real-time monitoring or hour filters to identify stuck images that need intervention.

GET
/jobs/stuck-images
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Query Parameters

page?Page

Page number.

Default1
per_page?Per Page

Items per page.

Default20
Range1 <= value <= 100
order?Order
Default"asc"
Value in"asc" | "desc"
status?Status

Filter by image status

Defaultnull
min_hours?Min Hours

Minimum hours in current status (supports fractional hours, e.g., 0.0167 for 1 minute, 0.5 for 30 minutes, default: 1 hour)

Default1

Response Body

Examples

curl -X GET "https://v2.api.piktid.com/jobs/stuck-images?page=1&per_page=20&order=asc&min_hours=1"
{
  "images": [
    {
      "id": 0,
      "job_id": "string",
      "image_index": 0,
      "status": "string",
      "original_filename": "string",
      "created_at": "string",
      "updated_at": "string",
      "hours_stuck": 0,
      "job_status": "string",
      "error_message": "string"
    }
  ],
  "pagination": {
    "page": 0,
    "per_page": 0,
    "total": 0,
    "pages": 0,
    "has_next": true,
    "has_prev": true
  }
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty