---
title: "Upload a part of the file"
method: POST
path: "/upload/{session_token}"
---

# Upload a part of the file

`POST /upload/{session_token}`

## Request

- Base URL: `https://your-drive.kommo.com`
- URL: `https://your-drive.kommo.com/upload/{session_token}`
- Auth: OAuth 2

The method allows you to upload part of the file. The request must be sent to the file service host. The full link indicating the session_token is returned when the session is opened.

## Path parameters

- `session_token` string, required

## Headers

- `Content-Type` string

## Request body

- object
  - `RAW_BODY` string, binary

## Response `200`

200

- union
  - object
    - `next_url` string
    - `session_id` integer
  - object
    - `_links` object
      - `download` object
        - `href` string
      - `download_version` object
        - `href` string
      - `self` object
        - `href` string
    - `created_at` integer
    - `created_by` object
      - `type` string
      - `id` integer
    - `deleted_at` unknown
    - `deleted_by` unknown
    - `has_multiple_versions` boolean
    - `is_trashed` boolean
    - `metadata` object
      - `extension` string
      - `mime_type` string
    - `name` string
    - `previews` unknown
    - `sanitized_name` string
    - `session_id` integer
    - `size` integer
    - `source_id` unknown
    - `type` string
    - `updated_at` integer
    - `updated_by` object
      - `type` string
      - `id` integer
    - `uuid` string
    - `version_uuid` string

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403

---

[API](https://skmtc.dev/kommo/apis/files-api.md) - [All operations](https://skmtc.dev/kommo/apis/files-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kommo/apis/files-api/revisions/61d4a8f2d8c9?raw)
