Upload a file
POST/api/v1/upload
Uploads multiple files and returns the unique identifiers (UUIDs) of the uploaded files. Each file must not exceed 3 MB; allowed formats are PNG, JPG/JPEG and PDF.
warning
The examples provided in the right menu may not be accurate. Please ignore them. The correct cURL example is:
curl -L -X POST 'https://gateway.plerix.com/api/v1/upload' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'Api-Access-Token: ' \
-F 'files[]=@/path/to/file/image.jpg' \
-F 'files[]=@/path/to/file/image2.png'
Request
Responses
- 200
- 400
- 401
- 403
- 429
A successful upload returns the UUIDs of the uploaded files.
Invalid request parameters.
Authentication failed:
- the API key is missing or invalid
- the request was sent from an IP address that is not in the whitelist of the key
Access denied.
Too many requests — the limit is 5 requests per second.