---
updatedAt: 2025-09-18T22:04:06.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Get Job

Get information about a batch job

> 📘 Jobs Expiration
>
> Completed jobs are retained for 7 days.

Job status can be one of the following:

* `available` - This is the initial status prior to attempting any processing
* `processing` - This is the next state once processing has started for a job that was in the `available` state.
* `completed` - This is the next state after `processing` if the job is processed successfully.
* `failed` - This is the alternate next state after `processing` if the job fails to process.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kevel-management-jobs-service",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co/v1/job"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Kevel-ApiKey"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{job_id}": {
      "get": {
        "summary": "Get Job",
        "description": "Get information about a batch job",
        "operationId": "get-job",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "description": "The ID of the job to return information about",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "completed": {
                    "value": "{\n    \"CompletedTime\": \"2023-02-28T22:04:46.968222\",\n    \"TaskId\": \"create-ads-from-products\",\n    \"NetworkId\": 11245,\n    \"Status\": \"completed\",\n    \"TaskArgs\": {\n        \"ProductUris\": [\n            \"itemdb://11245/100/0193642296013-skechers-13054-n-kengat-valk-40-0193642296013\"\n        ],\n        \"AdTemplateUri\": \"itemdb://11245/101/0e9321b3-1446-47ec-b1d7-705bfb7b3fb5\",\n        \"FlightId\": 332150093\n    },\n    \"AvailableTime\": \"2023-02-28T22:04:45.893803\",\n    \"Output\": {\n        \"AdIds\": [\n            342014259\n        ]\n    },\n    \"Id\": 4757,\n    \"PartitionId\": null\n}"
                  },
                  "failed": {
                    "value": "{\n  \"CompletedTime\": null,\n  \"TaskId\": \"create-ads-from-products\",\n  \"NetworkId\": 11261,\n  \"Status\": \"failed\",\n  \"TaskArgs\": {\n    \"ProductUris\": [\n      \"itemdb://10649/100/10597495\"\n    ],\n    \"AdTemplateUri\": \"itemdb://11261/104/F54977E3-61A0-4B36-B1F6-F691BAD5BD7D\",\n    \"FlightId\": 364699967\n  },\n  \"AvailableTime\": \"2023-06-12T18:18:45.860623\",\n  \"Output\": {\n    \"errors\": [\n      {\n        \"message\": \"At least one of the submitted Products has an invalid NetworkId\"\n      }\n    ]\n  },\n  \"Id\": 9428,\n  \"PartitionId\": null\n}"
                  },
                  "product not found": {
                    "value": "{\n    \"CompletedTime\": \"2023-02-28T22:04:46.968222\",\n    \"TaskId\": \"create-ads-from-products\",\n    \"NetworkId\": 11245,\n    \"Status\": \"completed\",\n    \"TaskArgs\": {\n        \"ProductUris\": [\n            \"itemdb://11245/100/0193642296013-skechers-13054-n-kengat-valk-40-0193642296013\",\n            \"itemdb://11245/100/0193642234098-nonexistent-18923-mistake-11-423412342314\",\n        ],\n        \"AdTemplateUri\": \"itemdb://11245/101/0e9321b3-1446-47ec-b1d7-705bfb7b3fb5\",\n        \"FlightId\": 332150093\n    },\n    \"AvailableTime\": \"2023-02-28T22:04:45.893803\",\n    \"Output\": {\n        \"Warnings\": [\n            {\n                \"ProductsNotFound\": [\n                    \"0193642234098-nonexistent-18923-mistake-11-423412342314\"\n                ],\n                \"Message\": \"1 provided product(s) were not found.\"\n            }\n        ],\n        \"AdIds\": [\n            342014259\n        ]\n    },\n    \"Id\": 4757,\n    \"PartitionId\": null\n}"
                  },
                  "Result": {
                    "value": "{\n    \"CompletedTime\": \"2025-08-15T15:31:12.377164\",\n    \"TaskId\": \"update-ads-from-products\",\n    \"NetworkId\": 456,\n    \"Status\": \"completed\",\n    \"TaskArgs\": {\n        \"ProductTableId\": 100,\n        \"PreviousLsn\": \"3A6/42D633B1\"\n    },\n    \"AvailableTime\": \"2025-08-15T13:32:27.6905\",\n    \"Output\": {\n        \"AdIds\": [\n            48990475,\n            48990476,\n            48990477,\n            48990478,\n            ...],\n        \"Metrics\": {\n            \"DeleteProductCount\": 0,\n            \"CreateAdCount\": 83739,\n            \"DeleteAdCount\": 96903,\n            \"UpdateAdCount\": 3089955,\n            \"UpsertProductCount\": 1057898\n        }\n    },\n    \"Id\": 123456,\n    \"PartitionId\": null\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "completed",
                      "type": "object",
                      "properties": {
                        "CompletedTime": {
                          "type": "string",
                          "example": "2023-02-28T22:04:46.968222"
                        },
                        "TaskId": {
                          "type": "string",
                          "example": "create-ads-from-products"
                        },
                        "NetworkId": {
                          "type": "integer",
                          "example": 11245,
                          "default": 0
                        },
                        "Status": {
                          "type": "string",
                          "example": "completed"
                        },
                        "TaskArgs": {
                          "type": "object",
                          "properties": {
                            "ProductUris": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "example": "itemdb://11245/100/0193642296013-skechers-13054-n-kengat-valk-40-0193642296013"
                              }
                            },
                            "AdTemplateUri": {
                              "type": "string",
                              "example": "itemdb://11245/101/0e9321b3-1446-47ec-b1d7-705bfb7b3fb5"
                            },
                            "FlightId": {
                              "type": "integer",
                              "example": 332150093,
                              "default": 0
                            }
                          }
                        },
                        "AvailableTime": {
                          "type": "string",
                          "example": "2023-02-28T22:04:45.893803"
                        },
                        "Output": {
                          "type": "object",
                          "properties": {
                            "AdIds": {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "example": 342014259,
                                "default": 0
                              }
                            }
                          }
                        },
                        "Id": {
                          "type": "integer",
                          "example": 4757,
                          "default": 0
                        },
                        "PartitionId": {}
                      }
                    },
                    {
                      "title": "failed",
                      "type": "object",
                      "properties": {
                        "CompletedTime": {},
                        "TaskId": {
                          "type": "string",
                          "example": "create-ads-from-products"
                        },
                        "NetworkId": {
                          "type": "integer",
                          "example": 11261,
                          "default": 0
                        },
                        "Status": {
                          "type": "string",
                          "example": "failed"
                        },
                        "TaskArgs": {
                          "type": "object",
                          "properties": {
                            "ProductUris": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "example": "itemdb://10649/100/10597495"
                              }
                            },
                            "AdTemplateUri": {
                              "type": "string",
                              "example": "itemdb://11261/104/F54977E3-61A0-4B36-B1F6-F691BAD5BD7D"
                            },
                            "FlightId": {
                              "type": "integer",
                              "example": 364699967,
                              "default": 0
                            }
                          }
                        },
                        "AvailableTime": {
                          "type": "string",
                          "example": "2023-06-12T18:18:45.860623"
                        },
                        "Output": {
                          "type": "object",
                          "properties": {
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "message": {
                                    "type": "string",
                                    "example": "At least one of the submitted Products has an invalid NetworkId"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "Id": {
                          "type": "integer",
                          "example": 9428,
                          "default": 0
                        },
                        "PartitionId": {}
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```