---
title: "FetchCurrentPendingFOTAJobExecution"
method: GET
path: "/fota-job-executions/{deviceId}/current"
tags: ["FOTA Job Executions"]
---

# FetchCurrentPendingFOTAJobExecution

`GET /fota-job-executions/{deviceId}/current`

Fetches the pending (QUEUED or IN_PROGRESS) job execution with the earliest createdAt date. This will allow
consistent FIFO (First In First Out) processing of incoming executions.

## Path parameters

- `deviceId` string, required — This is the canonical device id used in the device certificate, and as the MQTT client id.

## Query parameters

- `firmwareType` 'APP' | 'MODEM' | 'BOOT' | 'SOFTDEVICE' | 'BOOTLOADER' | 'MDM_FULL' | 'SMP' | 'CUSTOM' — Firmware types that can be specified in the device's shadow in reported.device.serviceInfo.fota_v2 and in its Elasticsearch document in the firmware.supports array.

## Response `200`

Ok

- FOTAJobExecution
  - `tenantId` string, required — The UUID of the team owning the device(s)
  - `status` 'QUEUED' | 'IN_PROGRESS' | 'FAILED' | 'SUCCEEDED' | 'TIMED_OUT' | 'CANCELLED' | 'REJECTED' | 'DOWNLOADING', required
  - `executionId` string, required — Universally unique identifier
  - `jobId` string, required — Universally unique identifier
  - `statusDetail` string
  - `jobDocument` FotaV2JobDocumentModel, required
    - `firmwareType` 'APP' | 'MODEM' | 'BOOT' | 'SOFTDEVICE' | 'BOOTLOADER' | 'MDM_FULL' | 'SMP' | 'CUSTOM', required — Firmware types that can be specified in the device's shadow in reported.device.serviceInfo.fota_v2 and in its Elasticsearch document in the firmware.supports array.
    - `fileSize` number, double, required
    - `host` string, required
    - `path` string, required
    - `version` string, required
    - `bundleId` string, required — Unique bundle identifier
  - `createdAt` string, date-time, required
  - `deviceId` string, required — This is the canonical device id used in the device certificate, and as the MQTT client id.
  - `lastUpdatedAt` string, date-time, required

---

[API](https://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api.md) · [All operations](https://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nrfcloud/nrf-cloud-rest-api/revisions/c4e56e458ebf/schema)
