Upload a document

Upload a file (e.g. trade license) to TREVEX secure storage. Returns a url that you pass as trade_license in create_claim.

Uses multipart/form-data. Allowed file types: PDF, JPEG, PNG, CSV, XLSX.

Authentication

Authorizationstring

Pass your API key as Api-Key <your_api_key> in the Authorization header. API keys are issued per Project by the TREVEX team.

Request

This endpoint expects a multipart form containing a file.
filefileRequired
File to upload.

Response

File uploaded successfully.
statusCodeinteger
messagestring
urlstring

Path to pass as trade_license in create_claim.

Errors

400
Bad Request Error
500
Internal Server Error