---
title: "List a template’s source files"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a template’s source files

Path: CloudRaker Paperwork API › Compose

`GET /v1/compose/configs/{idOrSlug}/files`

Lists the files in this template's bundle, in manifest order — the editor's file pane.

Download one with [GET /v1/compose/configs/{id}/files/{fileId}/content](https://docs.cloudraker.com/paperwork/capabilities/compose).

> **Note:** A file removed from your template library is dropped from this list instead of failing it, so a template with a stale entry stays repairable.

**Learn more:** [Compose](https://docs.cloudraker.com/paperwork/capabilities/compose)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `idOrSlug` (`listComposeTemplateFiles.path.idOrSlug`; string, required)
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/v1/compose/configs/<idOrSlug>/files' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/compose/configs/<idOrSlug>/files';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/compose/configs/<idOrSlug>/files"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The bundle files.

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "object": "file",
      "id": "string",
      "name": "invoice.typ",
      "mimeType": "text/plain",
      "size": 0,
      "uploadUrl": "string",
      "uploadExpiresAt": "string"
    }
  ]
}
```

- `object` (`listComposeTemplateFiles.response.200.object`; string, required)
- `data` (`listComposeTemplateFiles.response.200.data`; array<object>, required)
  - `object` (`listComposeTemplateFiles.response.200.data.object`; string, required)
  - `id` (`listComposeTemplateFiles.response.200.data.id`; string, required)
  - `name` (`listComposeTemplateFiles.response.200.data.name`; string, required)
    - example `"invoice.typ"`
  - `mimeType` (`listComposeTemplateFiles.response.200.data.mimeType`; string, required)
    - example `"text/plain"`
  - `size` (`listComposeTemplateFiles.response.200.data.size`; number | null, required)
  - `uploadUrl` (`listComposeTemplateFiles.response.200.data.uploadUrl`; string, optional)
  - `uploadExpiresAt` (`listComposeTemplateFiles.response.200.data.uploadExpiresAt`; string, optional)

### 400

Not a compose template (`capability_mismatch`).

### 404

Unknown template.

### 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`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`listComposeTemplateFiles.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`listComposeTemplateFiles.response.429.message`; string, required)
- `retryable` (`listComposeTemplateFiles.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`listComposeTemplateFiles.response.429.requestId`; string, required)
- `docUrl` (`listComposeTemplateFiles.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/compose/list-compose-template-files/index.md
