> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apia1.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Загрузить файл

> Загрузка файла в хранилище

# Загрузить файл

**POST `/v1/storage/upload`**

Загрузка файла в хранилище.

## Авторизация

```http theme={null}
Authorization: Bearer <A1_API_KEY>
```

## Параметры

Multipart `file` или base64 JSON; также `mimeType`, `externalUserId`, `storagePolicy`.

## Пример

```bash theme={null}
curl -X POST "https://apia1.com/api/v1/storage/upload" -H "Authorization: Bearer <A1_API_KEY>" -F "file=@image.png" -F "storagePolicy=PERMANENT"
```

## Ошибки

`400` — неверный запрос; `401` — auth; `403` — права; `404` — объект не найден; `429` — лимит; `5xx` — временная ошибка сервиса/provider.
