---
title: "Get a file"
method: GET
path: "/v1/files/{id}"
tags: ["files"]
---

# Get a file

`GET /v1/files/{id}`

## Request

- Base URL: `https://sandboxapi.givechariot.com`
- URL: `https://sandboxapi.givechariot.com/v1/files/{id}`
- Auth: HTTP bearer

Retrieve a file's metadata.

## Path parameters

- `id` string, required

## Response `200`

The file

- File: Files are objects that represent a file hosted on Chariot's servers. If you need to download a File, create a File Link.
  - `id` string: The unique identifier for the file.
  - `file_name` string: The name of the file.
  - `description` string, nullable: The description of the file.
  - `purpose` 'manual_upload' | 'grant_letter' | 'integration_download' | 'inbound_mail_item' | 'inbound_mail_item_thumbnail' | 'inbound_email' | 'inbound_email_attachment' | 'bank_check_image_front' | 'bank_check_image_back' | 'check_attachment' | 'bank_statement' | 'bank_account_verification_letter' | 'automation_output' | 'export' | 'other': The file's purpose. Note that entries may be added to this list without notice.
  - `content_type` string: The MIME type of the file.
  - `size_bytes` integer: The size of the file in bytes.
  - `created_at` string, date-time: The date and time when the file was created.
  - `updated_at` string, date-time: The date and time when the file was last updated.

## Other responses

- `400`: The request is invalid or contains invalid parameters
- `401`: Unauthorized. The request is missing the security (OAuth2 Bearer token) requirements and the server is unable to verify the identify of the caller.
- `403`: Access denied
- `404`: Resource Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/chariot-giving/apis/chariot-api-5.md) - [All operations](https://skmtc.dev/chariot-giving/apis/chariot-api-5/llms.txt) - [OpenAPI document](https://skmtc.dev/chariot-giving/apis/chariot-api-5/revisions/d2a4ff2fdda5?raw)
