---
title: "List 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 files

Path: CloudRaker Paperwork API › Files

`GET /v1/files`

Lists the files your organization has registered, newest first.

`?limit` caps the page (1–200, default 50). There is no cursor today — paging is by `limit` only.

**Learn more:** [Working with files](https://docs.cloudraker.com/paperwork/developers/files)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `limit` (`listFiles.query.limit`; integer, optional)
  - min 1; max 200

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/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/files"

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

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

print(response.text)
```

## Responses

### 200

The files.

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "object": "file",
      "id": "string",
      "name": "string",
      "mimeType": "string",
      "status": "uploading",
      "createdAt": "string",
      "parentFileId": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "error": "string",
      "uploadUrl": "string",
      "uploadExpiresAt": "string",
      "urls": {
        "content": "string",
        "markdown": "string",
        "json": "string"
      }
    }
  ]
}
```

- `object` (`listFiles.response.200.object`; string, required)
- `data` (`listFiles.response.200.data`; array<object>, required)
  - `object` (`listFiles.response.200.data.object`; string, required)
  - `id` (`listFiles.response.200.data.id`; string, required)
  - `name` (`listFiles.response.200.data.name`; string, required)
  - `mimeType` (`listFiles.response.200.data.mimeType`; string, required)
  - `status` (`listFiles.response.200.data.status`; string, required)
    - one of `"uploading"`, `"processing"`, `"ready"`, `"failed"`
  - `createdAt` (`listFiles.response.200.data.createdAt`; string, required)
  - `parentFileId` (`listFiles.response.200.data.parentFileId`; string, optional)
  - `metadata` (`listFiles.response.200.data.metadata`; map<string>, optional)
  - `error` (`listFiles.response.200.data.error`; string, optional)
  - `uploadUrl` (`listFiles.response.200.data.uploadUrl`; string, optional)
  - `uploadExpiresAt` (`listFiles.response.200.data.uploadExpiresAt`; string, optional)
  - `urls` (`listFiles.response.200.data.urls`; object, optional)
    - `content` (`listFiles.response.200.data.urls.content`; string, optional)
    - `markdown` (`listFiles.response.200.data.urls.markdown`; string, optional)
    - `json` (`listFiles.response.200.data.urls.json`; string, optional)

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`listFiles.response.400.success`; boolean, required)
  - one of `false`
- `error` (`listFiles.response.400.error`; array<unknown>, required)
- `data` (`listFiles.response.400.data`; unknown, required)

### 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` (`listFiles.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`listFiles.response.429.message`; string, required)
- `retryable` (`listFiles.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`listFiles.response.429.requestId`; string, required)
- `docUrl` (`listFiles.response.429.docUrl`; string, optional)


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