---
title: "Get a database's workload mode (internal, operator-only)"
method: GET
path: "/external-services/{id}/workload-mode"
tags: ["External Services"]
---

# Get a database's workload mode (internal, operator-only)

`GET /external-services/{id}/workload-mode`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/workload-mode`
- Auth: HTTP bearer

An ADR-055 migration control for operators and the CLI; the console does
not show it. Databases default to `legacy` and need no change here.

## Path parameters

- `id` integer, required

## Response `200`

The database's workload mode

- ServiceWorkloadModeResponse: A database's workload mode.
  - `mode` 'legacy' | 'shadow' | 'enforce', required: `legacy`: the engine (or the worker's agent) builds its own container request. `shadow`: the same, and a background pass logs where the running container differs from its workload spec. `enforce`: the container is created from its admitted spec through the Docker driver, the next time it is created or recreated.
  - `node_id` integer, nullable: `None`: the database runs on the control plane.
  - `service_id` integer, required
  - `service_name` string, required
  - `service_type` string, required
  - `support` WorkloadSupport, required: Whether the database can leave `legacy`, and why not.
    - `reason` string, nullable: Why the database stays on its engine's own path, when unsupported.
    - `supported` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Instance administrator required
- `404`: Service not found
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/workload-mode/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)
