Skip to content

Media Upload

Upload files to the Amili system. For creditors, this endpoint is used to attach original invoices to cases.

Media Upload endpoints

See Case for creating cases.

Example Request

Below is an example of uploading an original invoice to an existing case.

URL: POST /media--upload/6867da7788b9226bb78d716c

Headers:

x-api-key: {your_access_token}
Content-Type: multipart/form-data

Form Data:

file: [binary file data]
domain: "cases"
dotted_path: "original_invoice"

Response Code: 201 Created

Response Body:

json
{
  "url": "https://storage.googleapis.com/stage-ada-vcom-api-files/stage/cases/6867da7788b9226bb78d716c-3109930dcb954308b2e028392a6f3c62?Expires=1751640521&GoogleAccessId=stage-ada-vcom-pod-svc%40stage-ada-vcom.iam.gserviceaccount.com&Signature=RI%2FVtRaYgkNpFnzQYRihVz90PrvHjtUuKRXB13AIt0%2FXkoBqJ6ekhenljhf%2BQaCK2hn09IkCxxN%2Bd9nVuV1PwlbjcA8DBkzNlqS2tmk%2FrYif%2BAbOZG9rgYAyBpnD6tXs0i11F832E7R3MsprOMyPFvs8BMvev9iaM7qzLZqNw%2FEAvt076ImTVECp6wyoc%2Fsw8ilpCAvqCGTJcIY%2FqoHLHpI3iU7dED5eSTShXGv05OmcEHM98IdVfmOBoKYWkPg9TewkX9Gse0DG2PXFa%2F9RWFHt1tMiNZYix1dcX9wHwFWvBVuGDp1ZBBULSldSD749vLUjTlPhhtsERsVxVHwfQg%3D%3D"
}

Parameters

Path Parameters

NameTypeRequiredDescription
reference_idstringYesThe ID of the case to attach the file to

Form Data Parameters

PropertyTypeRequiredDescription
filebinaryYesFile to upload
domainstringYesResource type (e.g. "cases")*
dotted_pathstringYesFile category (e.g. "original_invoice")*

Response Properties

PropertyTypeRequiredDescription
_statusstringYesRequest status (e.g. "OK")*
urlstringYesTemporary URL to access the uploaded file

*) For complete list of values and details, please see Media Upload