---
title: "GET /projects/{project_id}/environments/{env_id}/crons"
method: GET
path: "/projects/{project_id}/environments/{env_id}/crons"
tags: ["Crons"]
---

# GET /projects/{project_id}/environments/{env_id}/crons

`GET /projects/{project_id}/environments/{env_id}/crons`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{env_id}/crons`
- Auth: none declared

## Path parameters

- `project_id` integer, required
- `env_id` integer, required

## Response `200`

List of cron jobs

- CronInfo[]
  - `command` string[], nullable: The argv a `job` cron runs. Absent for `http`.
  - `concurrency_policy` string, required: `allow | forbid | replace`: what a `job` run does while the previous one is still active.
  - `created_at` string, required
  - `deleted_at` string, nullable
  - `environment_id` integer, required
  - `has_workflow_input` boolean, required: Whether a `workflow` cron gives its runs an input (set in `.temps.yaml`).
  - `id` integer, required
  - `mode` string, required: `http` (a GET to `path` on the running deployment), `job` (`command` run in the environment's image until it exits) or `workflow` (a run of the durable workflow `workflow` started). For a `job`, `path` is the cron's key, `job:<name>`; for a `workflow`, `workflow:<name>`.
  - `next_run` string, nullable
  - `path` string, required
  - `project_id` integer, required
  - `retry_limit` integer, required: Attempts after the first when a `job` run fails.
  - `schedule` string, required
  - `starting_deadline_seconds` integer, nullable: A `job` run that cannot start within this many seconds of its scheduled time is skipped.
  - `timeout_seconds` integer, nullable: Maximum run time of a `job` run; absent takes the default (3600).
  - `ttl_seconds_after_finished` integer, nullable: How long a finished `job` run's container is kept; absent takes the default (600).
  - `updated_at` string, required
  - `workflow` string, nullable: The durable workflow a `workflow` cron starts. Absent otherwise.

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-11-15** `188ea295ffc6`: 2 info
  - added the optional property `items/workflow` to the response with the `200` status
  - added the required property `items/has_workflow_input` to the response with the `200` status
- **2026-11-15** `72c32d8dee65`: 1 breaking, 1 warning
  - removed the required property `items/has_workflow_input` from the response with the `200` status
  - removed the optional property `items/workflow` from the response with the `200` status
- **2026-11-14** `101ef74660bc`: 2 info
  - added the optional property `items/workflow` to the response with the `200` status
  - added the required property `items/has_workflow_input` to the response with the `200` status
- **2026-10-28** `b8d51a990805`: 7 info
  - added the optional property `items/command` to the response with the `200` status
  - added the optional property `items/starting_deadline_seconds` to the response with the `200` status
  - added the optional property `items/timeout_seconds` to the response with the `200` status
  - added the optional property `items/ttl_seconds_after_finished` to the response with the `200` status
  - …3 more

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:env_id/crons/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
