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

# List files handlers

> **Required scope:** read

**Required scope:** `read`

### Response

`FileListResponse`

**data** `FileObject[]` *required*

**FileObject**

**bytes** `integer` *required*

**content\_type** `string`

**created\_at** `integer (int64)` *required*

**filename** `string` *required*

**id** `string` *required*

**metadata** `object`

**object** `string` *required*

**purpose** `string` *required*

**status** `string` *required*

**object** `string` *required*

### Status codes

| Code | Meaning |
| - | - |
| `200` | Files |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.nsr.stateset.com/v1/files' \
  --header "X-API-Key: $STATESET_NSR_API_KEY"
```

```json 200 theme={null}
{
  "data": [
    {
      "bytes": 1,
      "content_type": "string",
      "created_at": 1,
      "filename": "string",
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "metadata": {},
      "object": "string",
      "purpose": "string",
      "status": "pending"
    }
  ],
  "object": "string"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.