Generations

Fetch one file from a generation

Raw file content, for generations whose target was too large to inline (files_omitted true). The generation's files_index lists valid paths.

GET
/generations/{generation_id}/file

Raw file content, for generations whose target was too large to inline (files_omitted true). The generation's files_index lists valid paths.

AuthorizationBearer <token>

Organization API key from the console (ak_...), or an OAuth access token with user:org:read, the organization selected during consent, and the capability required by the operation.

In: header

Path Parameters

generation_id*string

Unique identifier for a generation.

Match^gen_[a-z0-9]{16}$

Query Parameters

path*string

Repo-relative path inside the generated package.

Response Body

text/plain

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/generations/gen_7h2p5d9c3m8w1k6q/file?path=string"
"string"