---
title: "Get the critical path of a Bazel build."
method: GET
path: "/api/builds/{id}/bazel-critical-path"
tags: ["Builds", "GradleEnterprise", "Develocity"]
---

# Get the critical path of a Bazel build.

`GET /api/builds/{id}/bazel-critical-path`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/bazel-critical-path`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/bazel-critical-path/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is Bazel specific and cannot be requested for another build tool.

## Response `200`

The critical path of a Bazel build.

- BazelCriticalPath: The reported actions of the critical path.
  - `actions` object[]: The actions of the critical path. Null when the build failed early, or when the build profile was not available to Develocity.
    - `name` string, required: The name of the action.
    - `category` string, required: The category of the action.
    - `duration` integer, required: The duration of the action, as milliseconds.

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

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