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

# Get a file handler

> **Required scope:** read

**Required scope:** `read`

### Path parameters

<ParamField path="id" type="string" required>
  File ID
</ParamField>

### Response

`FileObject`

<ResponseField name="bytes" type="integer" required />

<ResponseField name="content_type" type="string" />

<ResponseField name="created_at" type="integer (int64)" required />

<ResponseField name="filename" type="string" required />

<ResponseField name="id" type="string" required />

<ResponseField name="metadata" type="object" />

<ResponseField name="object" type="string" required />

<ResponseField name="purpose" type="string" required />

<ResponseField name="status" type="string" required />

### Status codes

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

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.nsr.stateset.com/v1/files/{id}' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

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