---
title: "Upload File to Communication Center"
source_url: https://docs.rapyd.net/en/upload-file-to-communication-center.html
lang: en
---

# Upload File to Communication Center

Upload document file to the communication center. The maximum number of files that can be uploaded per request is 1. A reference ID is returned that can then be used in [Add Message to Case Communication Thread](https://docs.rapyd.net/en/add-message-to-case-communication-thread.md "Add Message to Case Communication Thread").

> **Important:**
>
> The Content-Type header should be changed to `multipart/form-data`.

### Parameters

### Request Header Parameters

- - access_key (string, required)
  - Unique access key provided by Rapyd for each authorized user.

    See [Developers](https://docs.rapyd.net/en/developers.md "Developers").
- - Content-Type (string, required)
  - Indicates that the data appears as a file. Set to **multipart/form-data**.
- - idempotency (string)
  - A unique key that prevents the platform from creating the same object twice.

    See [Idempotency](https://docs.rapyd.net/en/idempotency.md "Idempotency").
- - salt (string, required)
  - Random string. Recommended length: 8-16 characters.
- - signature (string, required)
  - Signature calculated for each request individually.

    See [Request Signatures](https://docs.rapyd.net/en/request-signatures.md "Request Signatures").
- - timestamp (string, required)
  - Timestamp for the request, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).
- - api_timestamp (string, required)
  - Timestamp for the request, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).

### Request Input File

Use the `-F` or `--form` parameter to define the path to the document file on your local machine. Supported file types include `*.pdf`, `*.doc`, `*.docx`, `*.csv`, `*.jpeg`, `*.jpg`, `*.gif`, `*.png`. Format of input must follow the `multipart/form-data` protocol.

> **Note:**
>
> - **Important:** Wait for the response of an upload request before initiating the next upload request. Do not execute multiple threads of upload document requests concurrently.
> - The maximum number of files that can be uploaded in one request is 1.
> - The maximum file size that can be uploaded in one request is 20 MB.
> - Document file names should be up to 200 characters long.

### 200 Response

- created_at (string)
- The Unix Epoch time when the file was uploaded.

- id (string)
- The identifier of the uploaded file. String starting with **batch_**.

- original_name (string)
- The file name of the uploaded document.

- status (string)
- The status of the file. The default value is **New**.

- type (string)
- The type of the file. Default value is **communication_attachment**.

- /v1/batch_process/files/communication_attachment

- Upload File to Communication Center
- ```curl
  curl -X post 'https://api.rapyd.net/v1/batch_process/files/communication_attachment' \
  -H 'access_key: your-access-key-here' \
  -H 'Content-Type: multipart/form-data' \
  -H 'salt: your-random-string-here' \
  -H 'signature: your-calculated-signature-here' \
  -H 'timestamp: your-unix-timestamp-here' \
  -F files="@/path/of/file.jpg"
  ```
- ```json
  {
      "status": {
          "error_code": "",
          "status": "SUCCESS",
          "message": "",
          "response_code": "",
          "operation_id": "9ad0eca0-5c28-41ea-b79f-cc3ef9ea4dff"
      },
      "data": {
          "id": "batch_3803115081af056171d8d0989002ef87",
          "original_name": "file.jpg",
          "type": "communication_attachment",
          "status": "NEW",
          "created_at": 1751901962
      }
  }
  ```
