Skip to main content

Documentación

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.

Importante

The Content-Type header should be changed to multipart/form-data.

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.

Nota

  • 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.

  • /v1/batch_process/files/communication_attachment

  • Upload File to Communication Center

  • 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"
    
  • {
        "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
        }
    }