---
title: "GET /projects/{project_id}/environments/{environment_id}/workflows/settings"
method: GET
path: "/projects/{project_id}/environments/{environment_id}/workflows/settings"
tags: ["Workflows"]
---

# GET /projects/{project_id}/environments/{environment_id}/workflows/settings

`GET /projects/{project_id}/environments/{environment_id}/workflows/settings`

## 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/{environment_id}/workflows/settings`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Response `200`

Settings in effect (the defaults until changed)

- WorkflowSettings: The settings in effect for an environment: its row, or the defaults.
  - `drain_timeout_secs` integer: Opt-in deploy drain: pause new invocations and wait for running attempts. Zero disables it. Suspended runs resume on the new deployment.
  - `host_service` string, nullable: Compose service hosting the workflow handler; `None`: the main service.
  - `inline_payload_limit_bytes` integer, required
  - `invocation_deadline_secs` integer, required
  - `lease_secs` integer, required
  - `managed_store_service_id` integer, nullable: Managed PostgreSQL journal for new runs; existing runs keep their store.
  - `max_active_runs` integer, required
  - `max_concurrent_runs` integer, required
  - `max_journal_bytes_per_run` integer, required
  - `max_payload_bytes` integer, required
  - `max_steps_per_run` integer, required
  - `retention_days` integer, required
  - `stuck_after_failures` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Environment not found
- `500`: Internal server error

## Changes

- **2026-11-15** `188ea295ffc6`: 1 info
  - endpoint added
- **2026-11-15** `72c32d8dee65`: 1 breaking
  - api path removed without deprecation
- **2026-11-14** `101ef74660bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/workflows/settings/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)
