---
title: "Get pod logs for the most recent failed DuckLake maintenance job"
method: GET
path: "/v4/admin/lake/maintenance/{integration_id}/job-logs/last-failed"
tags: ["v4", "Admin"]
---

# Get pod logs for the most recent failed DuckLake maintenance job

`GET /v4/admin/lake/maintenance/{integration_id}/job-logs/last-failed`

## Request

- Base URL: `https://api.definite.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.definite.app/v4/admin/lake/maintenance/{integration_id}/job-logs/last-failed`
- Auth: none declared
- TypeScript: <https://skmtc.dev/definite/apis/defapi/docs/v4/admin/lake/maintenance/:integration_id/job-logs/last-failed/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `integration_id` union, required
  - string, uuid
  - string

## Response `200`

Success

- SuccessResponseDuckLakeMaintenanceJobLogsResponse
  - `success` true, required: Flag for it request was successful
  - `data` DuckLakeMaintenanceJobLogsResponse, required
    - `jobId` string, required: K8s batch job name
    - `maintenanceId` string, nullable: Maintenance run ID from job labels
    - `logs` string, nullable: Tail of pod logs for the maintenance job
  - `meta` ResponseMeta
    - `requestId` string: Unique request identifier for tracing
    - `timestamp` string, date-time: Response timestamp (UTC)
    - `durationMs` integer, nullable: Request processing time in milliseconds

## Other responses

- `401`: Auth Invalid Token
- `403`: Forbidden Insufficient Permissions
- `404`: Resource Not Found
- `422`: Validation Failed
- `426`: Business Quota Exceeded
- `500`: Internal Error

---

[API](https://skmtc.dev/definite/apis/defapi.md) - [All operations](https://skmtc.dev/definite/apis/defapi/llms.txt) - [OpenAPI document](https://skmtc.dev/definite/apis/defapi/revisions/5ea378187147?raw)
