---
title: "read_job_runs"
description: "Generated reference for the management action read_job_runs: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/read-job-runs
order: 76
visibility: public
redirects_from: []
---

# read\_job\_runs

Generated automatically from the [published contract sources](/cloud/reference/about/#contract-sources).

A script calls this action over HTTPS at `POST https://tzcloud.turnzero.ai/v1/read_job_runs`, with a bearer credential and the action's payload as the JSON body. It also accepts `GET`. An MCP connection lists this action as the tool `tzcloud_read_job_runs`.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts ([Sign-in, sessions, and tokens](/cloud/concepts/sign-in-sessions-and-tokens/)).

**Build metadata:** Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

## Contract description

Read your job's runs\. Pass `job` to list recent runs in one environment, or `run` to read one by ID\. The one\-run response includes the latest console lines after the run ends, when available\.

## More about this action

Each run includes its state, who started it, its version, timestamps, exit code and recorded duration\. The states are `starting`, `running`, `succeeded`, `failed`, `cancelled` and `timed_out`\. The platform updates unfinished runs about once a minute\.

A job list includes the newest runs first\. Pass a `limit` from 1 to 50\. The default is 10\. A one\-run response with no console lines gives the reason in `console_reason`\.

For `not_ended`, read the run again after it ends\. For `not_ingested`, read again in a minute while the log service receives the lines\. For `unavailable`, the platform could not read the lines\. Try again later\. For `no_execution`, no provider execution was recorded for this run, so no console lines are available\.

## Access and action metadata

```json
{
  "name": "read_job_runs",
  "resource": "application",
  "tier": "observe",
  "surface": "tzcloud",
  "addresses": [
    "tzcloud"
  ],
  "product": "cloud",
  "summary": "List a job’s recent runs in one environment, newest first, or read one run by ID. The response gives the state, who started the run, the version, timestamps, exit code and seconds run. If you read one ended run, the response also includes its latest console lines when available.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}
```

## MCP catalog entry

```json
{
  "name": "read_job_runs",
  "title": "Read job runs",
  "tier": "observe",
  "scenario": "CHI-L0-09",
  "summary": "Read your job's runs. Pass `job` to list recent runs in one environment, or `run` to read one by ID. The one-run response includes the latest console lines after the run ends, when available.",
  "owners": [
    "JOB-L0-05",
    "MAPI-04"
  ]
}
```

## request

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["application"\] |
| /<wbr>properties/<wbr>application | The application ID from `list_applications`\.<br><br>Type: string |
| /<wbr>properties/<wbr>job | The job whose recent runs to list\. To read one run by ID, pass `run` instead\.<br><br>Type: string |
| /<wbr>properties/<wbr>run | A run ID from `run_job` or an earlier read\. This returns that run and its console lines when available\.<br><br>Type: string |
| /<wbr>properties/<wbr>environment | When listing a job’s runs, choose `development` or `production`\. The default is `production`\.<br><br>Type: string |
| /<wbr>properties/<wbr>limit | The maximum number of runs to list, from 1 to 50\. The default is 10\.<br><br>Type: integer<br>Minimum: 1<br>Maximum: 50 |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["contract\_version","detail"\] |
| /<wbr>properties/<wbr>contract\_version | Required value: 1 |
| /<wbr>properties/<wbr>reference | The ten\-character call reference\. Include it if you report a problem\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{10\}$ |
| /<wbr>properties/<wbr>runs | The job’s recent runs, newest first\.<br><br>Type: array |
| /<wbr>properties/<wbr>runs/<wbr>items | $ref: \#/shapes/job\_run |
| /<wbr>properties/<wbr>run | $ref: \#/shapes/job\_run |
| /<wbr>properties/<wbr>console | For one run, its latest console lines after it ends\. If the lines are unavailable, this is null and `console_reason` explains why\.<br><br>Type: \["object","null"\]<br>Required fields: \["lines","truncated"\]<br>Additional properties: false |
| /<wbr>properties/<wbr>console/<wbr>properties/<wbr>lines | Up to 40 of the newest lines, in chronological order\. The response keeps up to 512 bytes per line and 4,096 bytes in total\.<br><br>Type: array |
| /<wbr>properties/<wbr>console/<wbr>properties/<wbr>lines/<wbr>items | Type: string |
| /<wbr>properties/<wbr>console/<wbr>properties/<wbr>truncated | True if a limit cut a line or left lines out\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>console\_reason | When `console` is null, this tells you whether the run is unfinished, has no recorded provider execution, has no console lines yet, or the platform could not read them\.<br><br>Type: \["string","null"\]<br>Allowed values: \["not\_ended","no\_execution","not\_ingested","unavailable",null\] |
| /<wbr>properties/<wbr>detail | A short explanation of the result\.<br><br>Type: string |

## Complete payload contract

```json
{
  "request": {
    "type": "object",
    "required": [
      "application"
    ],
    "properties": {
      "application": {
        "type": "string",
        "description": "The application ID from `list_applications`."
      },
      "job": {
        "type": "string",
        "description": "The job whose recent runs to list. To read one run by ID, pass `run` instead."
      },
      "run": {
        "type": "string",
        "description": "A run ID from `run_job` or an earlier read. This returns that run and its console lines when available."
      },
      "environment": {
        "type": "string",
        "description": "When listing a job’s runs, choose `development` or `production`. The default is `production`."
      },
      "limit": {
        "type": "integer",
        "minimum": 1,
        "maximum": 50,
        "description": "The maximum number of runs to list, from 1 to 50. The default is 10."
      }
    }
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "detail"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The ten-character call reference. Include it if you report a problem."
      },
      "runs": {
        "type": "array",
        "items": {
          "$ref": "#/shapes/job_run"
        },
        "description": "The job’s recent runs, newest first."
      },
      "run": {
        "$ref": "#/shapes/job_run"
      },
      "console": {
        "type": [
          "object",
          "null"
        ],
        "required": [
          "lines",
          "truncated"
        ],
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Up to 40 of the newest lines, in chronological order. The response keeps up to 512 bytes per line and 4,096 bytes in total."
          },
          "truncated": {
            "type": "boolean",
            "description": "True if a limit cut a line or left lines out."
          }
        },
        "additionalProperties": false,
        "description": "For one run, its latest console lines after it ends. If the lines are unavailable, this is null and `console_reason` explains why."
      },
      "console_reason": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "not_ended",
          "no_execution",
          "not_ingested",
          "unavailable",
          null
        ],
        "description": "When `console` is null, this tells you whether the run is unfinished, has no recorded provider execution, has no console lines yet, or the platform could not read them."
      },
      "detail": {
        "type": "string",
        "description": "A short explanation of the result."
      }
    }
  }
}
```

## Shared contracts

- [Refusals](/cloud/reference/refusals/): every refusal, by surface, with its cause and its remedy
- [schemas/wire\_error\.schema\.json](/cloud/reference/sources/schemas/wire-error-schema/)
- [schemas/wire\_errors\.json](/cloud/reference/sources/schemas/wire-errors/)
- [schemas/action\_payloads\.json](/cloud/reference/sources/schemas/action-payloads/) (includes shared shapes)
- [management\_api\_contract\.md](/cloud/reference/sources/management-api-contract/)
