---
title: "Workspace Doctor"
method: POST
path: "/workspaces/{workspace_id}/doctor"
tags: ["workspaces"]
---

# Workspace Doctor

`POST /workspaces/{workspace_id}/doctor`

Run diagnostics on a workspace and optionally auto-fix issues.

Checks:
- S3 bucket exists (can auto-fix)
- Bucket has proper versioning policy (informational)
- RQ worker pool connectivity (informational)

## Path parameters

- `workspace_id` string, uuid, required

## Query parameters

- `autofix` boolean

## Response `200`

Successful Response

- WorkspaceDoctorResponse
  - `workspace_id` string, uuid, required
  - `workspace_name` string, required
  - `checks` WorkspaceDoctorCheckResult[], required
    - `check_name` string, required
    - `status` string, required
    - `message` string, required
    - `fixed` boolean
  - `overall_status` string, required

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/hf/apis/extralit-v1.md) · [All operations](https://skmtc.net/hf/apis/extralit-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hf/extralit-v1/versions/e9da3a893a88/schema)
