---
title: "Get the configuration cache information for a Gradle build."
method: GET
path: "/api/builds/{id}/gradle-configuration-cache"
tags: ["Builds", "GradleEnterprise", "Develocity"]
---

# Get the configuration cache information for a Gradle build.

`GET /api/builds/{id}/gradle-configuration-cache`

## Request

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

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

## Response `200`

The configuration cache result of a Gradle build.

- GradleConfigurationCache: The configuration cache result of a Gradle build. `null` if configuration cache was not used.
  - `result` GradleConfigurationCacheResult: The configuration cache result of a Gradle build.
    - `outcome` 'HIT' | 'MISS' | 'FAILED', required: The outcome of the configuration cache operation: * `HIT` - There was a configuration cache hit. * `MISS` - There was a configuration cache miss. * `FAILED` - There was a configuration cache related failure.
    - `entrySize` integer, nullable: The size of the configuration entry in bytes. `null` in case of certain failures or if the entry size was not captured.
    - `checkFingerprintDuration` integer, nullable: The duration of checking the configuration cache fingerprint. `null` in case no configuration cache fingerprint check was captured.
    - `dependencyResolutionDuration` integer, required: The duration of dependency resolution during configuration caching in seconds.
    - `store` GradleConfigurationCacheStoreResult: The configuration cache store result of a Gradle build.
      - `duration` integer, required: The duration of the configuration cache store operation in milliseconds. Does not include dependency resolution time.
      - `hasFailed` boolean, required: True when the configuration cache store operation fails, false otherwise.
    - `load` GradleConfigurationCacheLoadResult: The configuration cache load result of a Gradle build.
      - `duration` integer, required: The duration of the configuration cache load operation in milliseconds.
      - `hasFailed` boolean, required: True when the configuration cache load operation fails, false otherwise.
    - `missReasons` string[], nullable: The reasons why the configuration cache cannot be reused. `null` if there was no configuration cache hit.

## 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)
