Last updated on 1st April 2026

Listing build cache files via API

This method returns a list of all build cache file paths configured for a project.

Tip: You can explore and test this endpoint interactively using our OpenAPI documentation.

URL

/projects/<project>/build_cache_files

Replace <project> with either the permalink or identifier of the project.

HTTP Method

GET

Supported Parameters

None

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user your-email@example.com:your-api-key \
https://test.deployhq.com/projects/my-project/build_cache_files

Example Response

[
    {
        "identifier": "5c0c7e7c-3c02-4058-b3a8-f3e798754612",
        "path": "vendor/**",
        "created_at": "2026-01-15T10:30:00.000Z",
        "updated_at": "2026-01-15T10:30:00.000Z"
    },
    {
        "identifier": "8d2f4a6b-1e3c-5f7d-9a0b-2c4e6f8a0b2d",
        "path": "node_modules/**",
        "created_at": "2026-02-20T14:15:00.000Z",
        "updated_at": "2026-02-20T14:15:00.000Z"
    }
]