---
title: "Get Factory Environment Build Diagnostics"
method: GET
path: "/api/v0/environments/{environmentId}/build-diagnostics"
tags: ["Environments"]
---

# Get Factory Environment Build Diagnostics

`GET /api/v0/environments/{environmentId}/build-diagnostics`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/environments/{environmentId}/build-diagnostics`
- Auth: HTTP bearer

## Path parameters

- `environmentId` string, required: Factory Environment ID. Must not contain "/" and must not be "." or "..".

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- GetEnvironmentBuildDiagnostics200ResponseBody
  - `buildId` string, required
  - `status` 'building' | 'ready' | 'failed', required
  - `excerpt` string
  - `truncated` boolean, required
  - `withheld` boolean, required

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-12** `b6a46c415079`: 4 breaking, 1 warning, 25 info
  - the response's body type changed from `object` to no type for status `400`
  - removed the required property `detail` from the response with the `400` status
  - removed the required property `status` from the response with the `400` status
  - removed the required property `title` from the response with the `400` status
  - …26 more
- **2026-10-13** `dd43fbb08a00`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/environments/:environmentId/build-diagnostics/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
