---
title: "Get Latest State"
method: GET
path: "/ingestion/latest_state"
tags: ["INGESTION"]
---

# Get Latest State

`GET /ingestion/latest_state`

Retrieves the latest task state (kwargs) that is not in the STARTED status for a given
dataset type and instance_id.

## Query parameters

- `dataset_type` string, required
- `data_store_id` integer, required

## Response `200`

Successful Response

- IngestionStateResponse
  - `state` object, nullable

## Other responses

- `400` — Invalid dataset_type or missing instance_id.
- `403` — This operation is forbidden in the tenant domain.
- `404` — No completed task found for this dataset type and instance
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
