---
title: "Direct upload an archived file"
method: POST
path: "/archives"
tags: ["Archive"]
---

# Direct upload an archived file

`POST /archives`

Archive a file in a secure digital safe for 10 years

## Response `201`

The upload of the archived file is successful.

- ArchivedFile — ArchivedFile
  - `id` string, uuid, required
  - `sha256` string, required — Sha256 checksum
  - `filename` string, required
  - `created_at` string, date-time, required — Creation date of the file
  - `expired_at` string, date-time, nullable, required — Expiration date of the file
  - `content_type` string, required
  - `size` integer, required
  - `archive_y_identifier` string, nullable, required — Identifier that allows to save the file in an additional storage.
  - `tags` string[], nullable, required — Tags for the file
  - `workspace_id` string, uuid, required

## Other responses

- `400` — Bad request
- `401` — Access unauthorized
- `403` — Access forbidden
- `404` — Resource not found
- `405` — This method is not allowed
- `415` — UnsupportedMediaType
- `429` — Too Many Requests, please try again later.
- `500` — Internal Server Error

---

[API](https://skmtc.net/yousign/apis/public-api-v3.md) · [All operations](https://skmtc.net/yousign/apis/public-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yousign/public-api-v3/revisions/8d258c0b45d6/schema)
