Skip to content
Navigation

Download one of a template’s source files

Returns the bytes of a file in this template's bundle — the .typ source an editor loads, or an asset it previews.

Only files in THIS template's bundle are reachable; any other id answers 404.

Learn more: Compose

GET
https://api.cloudraker.com/v1/compose/configs/{idOrSlug}/files/{fileId}/content
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • idOrSlug
    string
    required
    minLength: 1
  • fileId
    string
    required
    minLength: 1

Returns

200

The file bytes.

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Unknown template, or a file outside this template’s bundle.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close