# The upload object

## Attributes

- `object` (string, required):
- `id` (string, required): Id of the upload; use it in attachments.
- `filename` (string, required): Cleaned name of the file (display only).
- `content_type` (enum, required): Media type of the stored file (the real type of the content). Values: `image/png`, `image/jpeg`, `image/webp`, `video/mp4`, `video/quicktime`, `video/webm`.
- `bytes` (integer, required): Size in bytes.
- `sha256` (string, required): SHA-256 of the file (hex).
- `created_at` (string (date-time), required): Time of the first upload (UTC).
- `expires_at` (string (date-time), required): Expiry (UTC): 7 days after creation or the last use.

## Example

```json
{
  "object": "upload",
  "id": "upl_3f9a1c7e5b2d4a6c8e0f1a3b5c7d9e1f",
  "filename": "screenshot-scene-4.png",
  "content_type": "image/png",
  "bytes": 284113,
  "sha256": "3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b",
  "created_at": "2026-11-10T08:30:12Z",
  "expires_at": "2026-11-17T08:30:12Z"
}
```
