# Files API Reference

> Source: https://centric-api-docs.certn.co/#files

Endpoints for uploading and managing files associated with Cases and Checks.


## Endpoints

| Method | Path | Description |
|--------|------|-------------|
| `GET` | `/api/public/files/` |  |
| `GET` | `/api/public/files/{id}/` |  |
| `GET` | `/api/public/files/{id}/content/` |  |
| `POST` | `/api/public/files/upload/` |  |

### GET /api/public/files/

Returns a list of all your Files.

#### Parameters

| Name | In | Type | Required | Description |
|------|-----|------|----------|-------------|
| `page` | query | integer | No | A page number within the paginated result set. |
| `page_size` | query | integer | No | Number of results to return per page. Defaults to 10, maximum 100. |

#### Example Request

```bash
curl -X GET "https://api.sandbox.certn.co/api/public/files/" \
  -H "Authorization: Api-Key YOUR_API_KEY"
```

### GET /api/public/files/{id}/

Retrieve the details of an individual File.

#### Parameters

| Name | In | Type | Required | Description |
|------|-----|------|----------|-------------|
| `id` | path | string | Yes |  |

#### Example Request

```bash
curl -X GET "https://api.sandbox.certn.co/api/public/files/{id}/" \
  -H "Authorization: Api-Key YOUR_API_KEY"
```

### GET /api/public/files/{id}/content/

Redirect to the content of an individual File.

#### Parameters

| Name | In | Type | Required | Description |
|------|-----|------|----------|-------------|
| `id` | path | string | Yes |  |

#### Example Request

```bash
curl -X GET "https://api.sandbox.certn.co/api/public/files/{id}/content/" \
  -H "Authorization: Api-Key YOUR_API_KEY"
```

### POST /api/public/files/upload/

Submit file info to this endpoint and receive a file key and presigned post.
The file bytes should be submitted by POST request to the presigned post
The key can be used to refer to this file in an input claim when creating a case

#### Example Request

```bash
curl -X POST "https://api.sandbox.certn.co/api/public/files/upload/" \
  -H "Authorization: Api-Key YOUR_API_KEY"
```

---

*See the [interactive documentation](https://centric-api-docs.certn.co/#files) for more details.*