Upload a file
Support API
Upload a file
API for uploading a file. The uploaded file is stored in the system, and a unique file token is returned in response. Use this token when attaching files to tickets or when submitting requested data.
POST
Upload a file
The request must be
multipart/form-data with a single part named file. That part has to be a real file part: its Content-Disposition must include a filename, and it must carry a per-part Content-Type that is in the allowed list below.
Limits and allowed types
- Maximum file size: 6 MB. Larger uploads are rejected with
413 Content Too Large. - Allowed content types:
image/*,video/*,text/*,application/pdf,application/rtf,application/msword,application/vnd.openxmlformats-officedocument.*(.docx,.xlsx,.pptx),application/vnd.ms-*,application/vnd.oasis.opendocument.*(.odt,.ods,.odp),application/xml,application/yaml,application/json. A part whoseContent-Typeis not in this list is rejected with415 Unsupported Media Type. Generic types such asapplication/octet-streamandapplication/zipare not accepted, so make sure your client sends an accurate per-partContent-Type.
400(“filefield is required.”) — there is no part namedfilein the request at all.422(“filefield must contain a file object.”) — a part namedfileis present, but it was sent without afilename, so it is not recognized as a file.
Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Body
multipart/form-data
The file to upload, sent as a multipart/form-data file part. The part must include a filename in its Content-Disposition header and a per-part Content-Type from the allowed list (for example application/pdf). Maximum size is 6 MB.
Response
Created