Browse Documentation
POST Upload attachment

Upload a new attachment to the inbox

POST /inbox

To upload a file to the inbox of an organisation you need to pass the file as a bit64 encoded string.


Parameters

Parameter
Type
Description
file | required
String
Bit64 encoded file
file_name | required
String
Name of the file. The file name cannot contain special characters or dashes.

Request

      
{
    "attachment": {
        "file": "bit64encodedfile",
        "file_name":"filename.jpg"
    }
}
      

Response

      
{
    "id": "b6d6a83c053b7612639622676ff2445c3bc74605",
    "file_url": "https://f.accounteer.com/b6d6a83c053b7612639622676ff2445c3bc74605/daa71f0644647c0d82dd2d03d0b29779644b1a48/filename.jpg",
    "file_name": "filename.jpg",
    "file_size": 1099,
    "file_type": "image/jpeg",
    "created_date": "2017-07-23"
}